diff --git a/1.4.3.tar.gz b/1.4.3.tar.gz deleted file mode 100644 index 5db3d969a84fb2f66537b2739590c477cdbcb0b4..0000000000000000000000000000000000000000 Binary files a/1.4.3.tar.gz and /dev/null differ diff --git a/appdirs-1.4.4.tar.gz b/appdirs-1.4.4.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..61840bd44fef221898ea7a05a754f1b93e7f27ad Binary files /dev/null and b/appdirs-1.4.4.tar.gz differ diff --git a/python-appdirs.spec b/python-appdirs.spec index a4ec650b345762c4b6626a54f63a42a806d63c41..95c66f69f82427774496b6284a20f94f59f8a812 100644 --- a/python-appdirs.spec +++ b/python-appdirs.spec @@ -1,55 +1,82 @@ -%global with_tests 0%{?_with_tests:1} - -name: python-appdirs -Version: 1.4.3 -Release: 9 -Summary: A Python module for determining platform-specific directories - -License: MIT -URL: https://github.com/ActiveState/appdirs -Source0: https://github.com/ActiveState/appdirs/archive/%{version}.tar.gz - -BuildArch: noarch - +%global _empty_manifest_terminate_build 0 +Name: python-appdirs +Version: 1.4.4 +Release: 1 +Summary: A small Python module for determining appropriate platform-specific dirs, e.g. a "user data dir". +License: MIT +URL: http://github.com/ActiveState/appdirs +Source0: https://files.pythonhosted.org/packages/d7/d8/05696357e0311f5b5c316d7b95f46c669dd9c15aaeecbb48c7d0aeb88c40/appdirs-1.4.4.tar.gz +BuildArch: noarch %description -A small Python module for determining appropriate " + " platform-specific directories, -e.g. a "user data dir". +A small Python module for determining appropriate platform-specific dirs, e.g. a "user data dir". %package -n python3-appdirs -Summary: A python3 module for determining platform-specific directories -%python_provide python3-appdirs -BuildRequires: python3-devel python3-setuptools python3-pip python3-wheel - - +Summary: A small Python module for determining appropriate platform-specific dirs, e.g. a "user data dir". +Provides: python-appdirs +# Base build requires +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pbr +BuildRequires: python3-pip +BuildRequires: python3-wheel %description -n python3-appdirs -A small Python 3 module for determining appropriate " + " platform-specific directories, -e.g. a "user data dir". +A small Python module for determining appropriate platform-specific dirs, e.g. a "user data dir". + +%package help +Summary: A small Python module for determining appropriate platform-specific dirs, e.g. a "user data dir". +Provides: python3-appdirs-doc +%description help +A small Python module for determining appropriate platform-specific dirs, e.g. a "user data dir". %prep -%autosetup -n appdirs-%{version} -p1 -rm -vrf appdirs.egg-info +%autosetup -n appdirs-1.4.4 -S git %build -%py3_build_wheel +%py3_build -%install -%py3_install_wheel appdirs-%{version}-py2.py3-none-any.whl -sed -i -e '1{\@^#!/usr/bin/env python@d}' %{buildroot}%{python3_sitelib}/appdirs.py +%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 . %check -%if %{with_tests} %{__python3} setup.py test -%endif -%files -n python3-appdirs -%doc README.rst CHANGES.rst LICENSE.txt -%{python3_sitelib}/appdirs* -%{python3_sitelib}/__pycache__/appdirs.* +%files -n python3-appdirs -f filelist.lst +%dir %{python3_sitelib}/* + + +%files help -f doclist.lst +%{_docdir}/* %changelog +* Tue Jul 13 2021 OpenStack_SIG - 1.4.4-1 +- Upgrade to version 1.4.4 * Wed Oct 21 2020 chengzihan - 1.4.3-9 - Remove subpackage python2-appdirs - * Thu Feb 27 2020 chenli - 1.4.3-8 - Init Package