commit
ca3ea3c8b4
BIN
aenum-2.2.3.tar.gz
Normal file
BIN
aenum-2.2.3.tar.gz
Normal file
Binary file not shown.
73
python-aenum.spec
Normal file
73
python-aenum.spec
Normal file
@ -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 <Python_Bot@openeuler.org>
|
||||
- Package Spec generated
|
||||
Loading…
x
Reference in New Issue
Block a user