diff --git a/python-requests-unixsocket.spec b/python-requests-unixsocket.spec index 2b7b279be9f79e74dade6b4fbcfb8ea8527154aa..b1f7f2f554f82a48b917371d552693e8510570be 100644 --- a/python-requests-unixsocket.spec +++ b/python-requests-unixsocket.spec @@ -1,56 +1,85 @@ -%global pypi_name requests-unixsocket - -Name: python-requests-unixsocket -Version: 0.2.0 -Release: 1 -Summary: Use requests to talk HTTP via a UNIX domain socket -License: ASL 2.0 -URL: https://github.com/msabramo/requests-unixsocket -Source0: https://pypi.python.org/packages/source/r/requests-unixsocket/requests-unixsocket-%{version}.tar.gz -BuildArch: noarch - +%global _empty_manifest_terminate_build 0 +Name: python-requests-unixsocket +Version: 0.3.0 +Release: 1 +Summary: Use requests to talk HTTP via a UNIX domain socket +License: ASL 2.0 +URL: https://github.com/msabramo/requests-unixsocket +Source0: https://files.pythonhosted.org/packages/c3/ea/0fb87f844d8a35ff0dcc8b941e1a9ffc9eb46588ac9e4267b9d9804354eb/requests-unixsocket-0.3.0.tar.gz +BuildArch: noarch + %description Use requests to talk HTTP via a UNIX domain socket -%package -n python3-requests-unixsocket -Summary: Use requests to talk HTTP via a UNIX domain socket -%{?python_provide:%python_provide python3-requests-unixsocket} - -Requires: python3dist(requests) -BuildRequires: python3-devel -BuildRequires: python3dist(setuptools) -BuildRequires: python3dist(pbr) -BuildRequires: python3dist(pytest) -BuildRequires: python3dist(requests) -BuildRequires: python3dist(urllib3) -BuildRequires: python3dist(waitress) - +%package -n python3-requests-unixsocket +Summary: Use requests to talk HTTP via a UNIX domain socket +Provides: python-requests-unixsocket = %{version}-%{release} +BuildRequires: python3-devel +BuildRequires: python3dist(setuptools) +BuildRequires: python3dist(pbr) +BuildRequires: python3dist(pytest) +BuildRequires: python3dist(requests) +BuildRequires: python3dist(urllib3) +BuildRequires: python3dist(waitress) +Requires: python3-requests %description -n python3-requests-unixsocket Use requests to talk HTTP via a UNIX domain socket +%package help +Summary: Development documents and examples for requests-unixsocket +Provides: python3-requests-unixsocket-doc +%description help +Use requests to talk HTTP via a UNIX domain socket + %prep %autosetup -n requests-unixsocket-%{version} -sed -i '1d' requests_unixsocket/tests/test_requests_unixsocket.py -sed -i '1d' setup.py -rm pytest.ini -sed -i '/pytest-pep8/d' test-requirements.txt -sed -i '/pytest-capturelog/d' test-requirements.txt %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 +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 . %check %{__python3} -m pytest -v -%files -n python3-requests-unixsocket -%doc README.rst -%license LICENSE -%{python3_sitelib}/requests_unixsocket -%{python3_sitelib}/requests_unixsocket-%{version}-py%{python3_version}.egg-info +%files -n python3-requests-unixsocket -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* %changelog +* Wed Jul 05 2023 chenzixuan - 0.3.0-1 +- Update package to version 0.3.0 + * Tue May 09 2023 jiangxinyu - 0.2.0-1 - Package init diff --git a/requests-unixsocket-0.2.0.tar.gz b/requests-unixsocket-0.2.0.tar.gz deleted file mode 100644 index db68d49eae31b6d93642bb6acff692e9364fd468..0000000000000000000000000000000000000000 Binary files a/requests-unixsocket-0.2.0.tar.gz and /dev/null differ diff --git a/requests-unixsocket-0.3.0.tar.gz b/requests-unixsocket-0.3.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..86369cfae6828c752ffbb97f8bee41fae4aa55b9 Binary files /dev/null and b/requests-unixsocket-0.3.0.tar.gz differ