summaryrefslogtreecommitdiff
path: root/python-bsdiff4.spec
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-04-11 21:34:35 +0000
committerCoprDistGit <infra@openeuler.org>2023-04-11 21:34:35 +0000
commit03910f0ec75882622546c165c79d41e79d566cb1 (patch)
treeee1f4dc5bd1379565b9ce7cc9fa95d7e37024de2 /python-bsdiff4.spec
parent06c7abfefe8edc4129667456a1ea58f1b08a9ed8 (diff)
automatic import of python-bsdiff4
Diffstat (limited to 'python-bsdiff4.spec')
-rw-r--r--python-bsdiff4.spec74
1 files changed, 74 insertions, 0 deletions
diff --git a/python-bsdiff4.spec b/python-bsdiff4.spec
new file mode 100644
index 0000000..6597db5
--- /dev/null
+++ b/python-bsdiff4.spec
@@ -0,0 +1,74 @@
+%global _empty_manifest_terminate_build 0
+Name: python-bsdiff4
+Version: 1.2.3
+Release: 1
+Summary: binary diff and patch using the BSDIFF4-format
+License: BSD
+URL: https://github.com/ilanschnell/bsdiff4
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/a8/0e/a677b62d35e3a9d074eafb5b16b569d5d6870a6ead02e8c830e4d4e73db7/bsdiff4-1.2.3.tar.gz
+
+
+%description
+
+
+%package -n python3-bsdiff4
+Summary: binary diff and patch using the BSDIFF4-format
+Provides: python-bsdiff4
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+BuildRequires: python3-cffi
+BuildRequires: gcc
+BuildRequires: gdb
+%description -n python3-bsdiff4
+
+
+%package help
+Summary: Development documents and examples for bsdiff4
+Provides: python3-bsdiff4-doc
+%description help
+
+
+%prep
+%autosetup -n bsdiff4-1.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-bsdiff4 -f filelist.lst
+%dir %{python3_sitearch}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Tue Apr 11 2023 Python_Bot <Python_Bot@openeuler.org> - 1.2.3-1
+- Package Spec generated