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.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..19a3a442d8ceace31814144f655a9e67a5973be7 100644 --- a/python-bitstring.spec +++ b/python-bitstring.spec @@ -1,13 +1,11 @@ %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 @@ -24,6 +22,8 @@ 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-pip python3-wheel 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,10 +49,10 @@ to a file or stream. %autosetup -n bitstring-%{version} %build -%py3_build +%pyproject_build %install -%py3_install +%pyproject_install bitstring==%{version} 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 @@ -61,34 +61,17 @@ 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 +* Fri Apr 28 2023 wubijie - 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 @@ -97,3 +80,4 @@ mv %{buildroot}/doclist.lst . * Wed Jun 30 2021 Lianguo Wang - 3.1.7-1 - Add src. +