diff --git a/aenum-2.2.3.tar.gz b/aenum-2.2.3.tar.gz new file mode 100644 index 0000000..7e364fe Binary files /dev/null and b/aenum-2.2.3.tar.gz differ diff --git a/python-aenum.spec b/python-aenum.spec new file mode 100644 index 0000000..89a4de0 --- /dev/null +++ b/python-aenum.spec @@ -0,0 +1,73 @@ +%global _empty_manifest_terminate_build 0 +Name: python-aenum +Version: 2.2.3 +Release: 1 +Summary: Advanced Enumerations (compatible with Python's stdlib Enum), NamedTuples, and NamedConstants +License: BSD License +URL: https://bitbucket.org/stoneleaf/aenum +Source0: https://files.pythonhosted.org/packages/6f/6a/8ed729e0add885d7a559ebb06133029b1f8c4bd66cbf1bdee1ec969fb310/aenum-2.2.3.tar.gz +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 +Provides: python-aenum +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 +%autosetup -n aenum-2.2.3 + +%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 +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 +* Fri Jul 10 2020 Python_Bot +- Package Spec generated