diff --git a/bitstring-4.0.1.tar.gz b/bitstring-4.0.1.tar.gz deleted file mode 100644 index 595ff63bc795f0a001404dbe697d43a367e85b4f..0000000000000000000000000000000000000000 Binary files a/bitstring-4.0.1.tar.gz and /dev/null differ diff --git a/bitstring-4.0.2.tar.gz b/bitstring-4.0.2.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..9e0e76923aa1de8ce6a1fda3f3f746689b73d0b4 Binary files /dev/null and b/bitstring-4.0.2.tar.gz differ diff --git a/python-bitstring.spec b/python-bitstring.spec index 7ea0f793459a8daf92e3535625edfe22f011fb68..091af70c1e6e22a44f03f600be3572b69a3b2712 100644 --- a/python-bitstring.spec +++ b/python-bitstring.spec @@ -1,13 +1,12 @@ %global _empty_manifest_terminate_build 0 Name: python-bitstring -Version: 4.0.1 +Version: 4.0.2 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/d2/64/e733b18349be383a4b7859c865d6c9e5ccc5845e9b4258504055607ec1cb/bitstring-4.0.1.tar.gz -Patch0: add-setup.py.patch +Source0: https://files.pythonhosted.org/packages/b5/f1/f55f568ef587fe7a74f46a9ae869dbbda10575b2a404c831d2bc0567b7de/bitstring-4.0.2.tar.gz BuildArch: noarch %description @@ -22,8 +21,10 @@ to a file or stream. %package -n python3-bitstring Summary: Simple construction, analysis and modification of binary data Provides: python-bitstring = %{version}-%{release} -BuildRequires: python%{python3_pkgversion}-devel -BuildRequires: python%{python3_pkgversion}-pytest +BuildRequires: python3-devel +BuildRequires: python3-pip +BuildRequires: python3-wheel +BuildRequires: python3-flit %description -n python3-bitstring bitstring is a pure Python module designed to help make the creation and analysis of binary data as simple and natural as possible. @@ -49,46 +50,25 @@ to a file or stream. %autosetup -n bitstring-%{version} %build -%py3_build +%pyproject_build %install -%py3_install +%pyproject_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 -if [ -f README.rst ]; then cp -af README.rst %{buildroot}/%{_pkgdocdir}; fi -if [ -f README.md ]; then cp -af README.md %{buildroot}/%{_pkgdocdir}; fi -if [ -f README.txt ]; then cp -af README.txt %{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 -f filelist.lst -%dir %{python3_sitelib}/* +%files -n python3-bitstring +%{python3_sitelib}/* -%files help -f doclist.lst +%files help %{_docdir}/* %changelog +* Tue Jun 27 2023 niuyaru - 4.0.2-1 +- Update package to version 4.0.2 + * Thu Dec 15 2022 wangjunqi - 4.0.1-1 - Update package to version 4.0.1