diff options
Diffstat (limited to 'python-p4python.spec')
-rw-r--r-- | python-p4python.spec | 95 |
1 files changed, 95 insertions, 0 deletions
diff --git a/python-p4python.spec b/python-p4python.spec new file mode 100644 index 0000000..2ae5aa7 --- /dev/null +++ b/python-p4python.spec @@ -0,0 +1,95 @@ +%global _empty_manifest_terminate_build 0 +Name: python-p4python +Version: 2022.2.2425690 +Release: 1 +Summary: P4Python - Python interface to Perforce API +License: LICENSE.txt +URL: http://www.perforce.com +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/27/be/d14e702959104d3e9e73d8f375e41018973948c227621c0330e2faab02ac/p4python-2022.2.2425690.tar.gz + + +%description +Perforce is the fast SCM system at www.perforce.com. +This package provides a simple interface from Python wrapping the +Perforce C++ API to gain performance and ease of coding. +Similar to interfaces available for Ruby and Perl. + + + + + +%package -n python3-p4python +Summary: P4Python - Python interface to Perforce API +Provides: python-p4python +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +BuildRequires: python3-cffi +BuildRequires: gcc +BuildRequires: gdb +%description -n python3-p4python +Perforce is the fast SCM system at www.perforce.com. +This package provides a simple interface from Python wrapping the +Perforce C++ API to gain performance and ease of coding. +Similar to interfaces available for Ruby and Perl. + + + + + +%package help +Summary: Development documents and examples for p4python +Provides: python3-p4python-doc +%description help +Perforce is the fast SCM system at www.perforce.com. +This package provides a simple interface from Python wrapping the +Perforce C++ API to gain performance and ease of coding. +Similar to interfaces available for Ruby and Perl. + + + + + +%prep +%autosetup -n p4python-2022.2.2425690 + +%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-p4python -f filelist.lst +%dir %{python3_sitearch}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon Apr 10 2023 Python_Bot <Python_Bot@openeuler.org> - 2022.2.2425690-1 +- Package Spec generated |