diff options
author | CoprDistGit <infra@openeuler.org> | 2023-05-15 04:56:11 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-05-15 04:56:11 +0000 |
commit | 09636b6eca89e36e577f301c7e1091b4956c4caf (patch) | |
tree | 813463365d44677f324facaf8bdf161d868fc594 | |
parent | 2fd0065fd4212aac11e4fb24a6350c5c41e68d35 (diff) |
automatic import of python-class-property
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-class-property.spec | 72 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 74 insertions, 0 deletions
@@ -0,0 +1 @@ +/class_property-1.0.0.tar.gz diff --git a/python-class-property.spec b/python-class-property.spec new file mode 100644 index 0000000..930f2ef --- /dev/null +++ b/python-class-property.spec @@ -0,0 +1,72 @@ +%global _empty_manifest_terminate_build 0 +Name: python-class-property +Version: 1.0.0 +Release: 1 +Summary: Class property that shares the same value with the class and any instance. +License: Proprietary +URL: https://github.com/justengel/class_property +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/44/72/33137436b56a1bbd0451d6ac219662545b9190c97d01a4e4768de4348e18/class_property-1.0.0.tar.gz +BuildArch: noarch + + +%description + + +%package -n python3-class-property +Summary: Class property that shares the same value with the class and any instance. +Provides: python-class-property +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-class-property + + +%package help +Summary: Development documents and examples for class-property +Provides: python3-class-property-doc +%description help + + +%prep +%autosetup -n class-property-1.0.0 + +%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-class-property -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon May 15 2023 Python_Bot <Python_Bot@openeuler.org> - 1.0.0-1 +- Package Spec generated @@ -0,0 +1 @@ +0546d7f9b8cb416ca48a350fa3845d52 class_property-1.0.0.tar.gz |