python-aenum/python-aenum.spec

83 lines
2.8 KiB
RPMSpec
Raw Permalink Normal View History

2020-07-10 16:17:20 +08:00
%global _empty_manifest_terminate_build 0
Name: python-aenum
2023-07-04 09:30:19 +08:00
Version: 3.1.15
2020-07-10 16:17:20 +08:00
Release: 1
Summary: Advanced Enumerations (compatible with Python's stdlib Enum), NamedTuples, and NamedConstants
License: BSD License
URL: https://bitbucket.org/stoneleaf/aenum
2023-07-04 09:30:19 +08:00
Source0: https://files.pythonhosted.org/packages/d0/f8/33e75863394f42e429bb553e05fda7c59763f0fd6848de847a25b3fbccf6/aenum-3.1.15.tar.gz
Patch0: 0001-fix-syntax-error.patch
2020-07-10 16:17:20 +08:00
BuildArch: noarch
%description
Advanced Enumerations (compatible with Python's stdlib Enum), NamedTuples, and NamedConstants
aenum includes a Python stdlib Enum-compatible data type, as well as a metaclass-based NamedTuple implementation and a NamedConstant class.
%package -n python3-aenum
Summary: Advanced Enumerations (compatible with Python's stdlib Enum), NamedTuples, and NamedConstants
2023-07-04 09:30:19 +08:00
Provides: python-aenum = %{version}-%{release}
2020-07-10 16:17:20 +08:00
BuildRequires: python3-devel
BuildRequires: python3-setuptools
%description -n python3-aenum
Advanced Enumerations (compatible with Python's stdlib Enum), NamedTuples, and NamedConstants
%package help
Summary: Development documents and examples for aenum
Provides: python3-aenum-doc
%description help
Advanced Enumerations (compatible with Python's stdlib Enum), NamedTuples, and NamedConstants
%prep
2023-04-06 16:50:34 +08:00
%autosetup -n aenum-%{version} -p1
2020-07-10 16:17:20 +08:00
%build
%py3_build
%install
%py3_install
install -d -m755 %{buildroot}/%{_pkgdocdir}
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
2023-07-04 09:30:19 +08:00
if [ -f README.rst ]; then cp -af README.rst %{buildroot}/%{_pkgdocdir}; fi
if [ -f README.md ]; then cp -af README.md %{buildroot}/%{_pkgdocdir}; fi
if [ -f README.txt ]; then cp -af README.txt %{buildroot}/%{_pkgdocdir}; fi
2020-07-10 16:17:20 +08:00
pushd %{buildroot}
if [ -d usr/lib ]; then
find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/lib64 ]; then
find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/bin ]; then
find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/sbin ]; then
find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
fi
touch doclist.lst
if [ -d usr/share/man ]; then
find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
fi
popd
mv %{buildroot}/filelist.lst .
mv %{buildroot}/doclist.lst .
%files -n python3-aenum -f filelist.lst
%dir %{python3_sitelib}/*
%files help -f doclist.lst
%{_docdir}/*
%changelog
2023-07-04 09:30:19 +08:00
* Tue Jul 04 2023 zhangchenglin <zhangchenglin@kylinos.cn> - 3.1.15-1
- Update package to version 3.1.15
2023-04-06 16:50:34 +08:00
* Thu Apr 06 2023 Ge Wang <wangge20@h-partners.com> - 3.1.11-1
- Update to version 3.1.11
2020-07-10 16:17:20 +08:00
* Fri Jul 10 2020 Python_Bot <Python_Bot@openeuler.org>
- Package Spec generated