diff --git a/add-setup.py.patch b/add-setup.py.patch deleted file mode 100644 index 03b3eac7763404d21bcccee4c932c75c22f23fa7..0000000000000000000000000000000000000000 --- a/add-setup.py.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- c/setup.py 1970-01-01 08:00:00.000000000 +0800 -+++ a/setup.py 2022-12-15 15:38:39.095326150 +0800 -@@ -0,0 +1,8 @@ -+#!/usr/bin/env python -+from setuptools import setup -+ -+ -+setup( -+ name = "bitstring", -+ version = "4.0.1" -+ ) diff --git a/bitstring-4.0.2.tar.gz b/bitstring-4.0.2.tar.gz deleted file mode 100644 index 9e0e76923aa1de8ce6a1fda3f3f746689b73d0b4..0000000000000000000000000000000000000000 Binary files a/bitstring-4.0.2.tar.gz and /dev/null differ diff --git a/bitstring-4.3.1.tar.gz b/bitstring-4.3.1.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..eabc7469711c764248be6e98f7d4f8bd643670ce Binary files /dev/null and b/bitstring-4.3.1.tar.gz differ diff --git a/python-bitstring.spec b/python-bitstring.spec index 091af70c1e6e22a44f03f600be3572b69a3b2712..0d5bde42dcae0bc85b90f6be0fc62f903c78ce3a 100644 --- a/python-bitstring.spec +++ b/python-bitstring.spec @@ -1,12 +1,12 @@ +%global pypi_name bitstring %global _empty_manifest_terminate_build 0 - -Name: python-bitstring -Version: 4.0.2 +Name: python-%{pypi_name} +Version: 4.3.1 Release: 1 Summary: Simple construction, analysis and modification of binary data License: MIT -URL: https://github.com/scott-griffiths/%{srcname} -Source0: https://files.pythonhosted.org/packages/b5/f1/f55f568ef587fe7a74f46a9ae869dbbda10575b2a404c831d2bc0567b7de/bitstring-4.0.2.tar.gz +URL: https://github.com/scott-griffiths/bitstring +Source0: https://files.pythonhosted.org/packages/15/a8/a80c890db75d5bdd5314b5de02c4144c7de94fd0cefcae51acaeb14c6a3f/%{pypi_name}-%{version}.tar.gz BuildArch: noarch %description @@ -47,7 +47,7 @@ They can also be read from, searched and replaced, and navigated in, similar to a file or stream. %prep -%autosetup -n bitstring-%{version} +%autosetup -n %{pypi_name}-%{version} %build %pyproject_build @@ -58,14 +58,41 @@ 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-bitstring -%{python3_sitelib}/* +%files -n python3-bitstring -f filelist.lst +%dir %{python3_sitelib}/* +%{python3_sitelib}/bitstring/__pycache__/* -%files help +%files help -f doclist.lst %{_docdir}/* %changelog +* Tue Nov 11 2025 - 4.3.1-1 +- Update version to 4.3.1 +- Fix spec file format: add pypi_name variable, use variables in Name and Source0 +- Fix URL to remove undefined %{srcname} variable + * Tue Jun 27 2023 niuyaru - 4.0.2-1 - Update package to version 4.0.2