diff --git a/frozendict-2.3.4.tar.gz b/frozendict-2.3.4.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..cb14160e46ffac74a33329884f1162a9b1651885 Binary files /dev/null and b/frozendict-2.3.4.tar.gz differ diff --git a/python-frozendict.spec b/python-frozendict.spec index 3fa06f134b59e91cdb93717390dc992394d7ed39..3089024f5006334eafc78314c34b48bada7f2651 100644 --- a/python-frozendict.spec +++ b/python-frozendict.spec @@ -1,41 +1,80 @@ -%{?python_enable_dependency_generator} -%global srcname frozendict -Name: python-%{srcname} -Version: 2.0.2 -Release: 1 -Summary: An immutable dictionary -License: GPLv3 and LGPLv3 -URL: https://pypi.python.org/pypi/frozendict -Source0: https://github.com/Marco-Sulla/python-frozendict/archive/refs/tags/v2.0.2.tar.gz -BuildArch: noarch -%global _description \ +%global _empty_manifest_terminate_build 0 +Name: python-frozendict +Version: 2.3.4 +Release: 1 +Summary: A simple immutable dictionary +License: GPLv3 and LGPLv3 +URL: https://github.com/Marco-Sulla/python-frozendict +Source0: https://files.pythonhosted.org/packages/2d/ad/96e39d15df0c825d55dc0481016a7c743ad646d7fd4c11caf9306c606f93/frozendict-2.3.4.tar.gz + +%description +frozendict is an immutable wrapper around dictionaries that implements\ +the complete mapping interface. It can be used as a drop-in replacement\ +for dictionaries where immutability is desired. + +%package -n python3-frozendict +Summary: A simple immutable dictionary +Provides: python-frozendict +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-cffi +BuildRequires: gcc +%description -n python3-frozendict frozendict is an immutable wrapper around dictionaries that implements\ the complete mapping interface. It can be used as a drop-in replacement\ for dictionaries where immutability is desired. -%description %{_description} -%package -n python3-%{srcname} -Summary: %{summary} -%{?python_provide:%python_provide python3-%{srcname}} -BuildRequires: python3-devel python3-setuptools -%description -n python3-%{srcname} %{_description} -Python 3 version. +%package help +Summary: Development documents and examples for frozendict +Provides: python3-frozendict-doc +%description help +frozendict is an immutable wrapper around dictionaries that implements\ +the complete mapping interface. It can be used as a drop-in replacement\ +for dictionaries where immutability is desired. %prep -%autosetup -n %{name}-%{version} +%autosetup -n frozendict-%{version} %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 +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-%{srcname} -%license LICENSE.txt -%doc README.md -%{python3_sitelib}/%{srcname}-*.egg-info/ -%{python3_sitelib}/%{srcname}/ +%files -n python3-frozendict -f filelist.lst +%dir %{python3_sitearch}/* + +%files help -f doclist.lst +%{_docdir}/* %changelog +* Mon Sep 26 2022 guozhengxin - 2.3.4-1 +- Upgrade package to version 2.3.4 + * Wed May 26 2021 Ge Wang - 2.0.2-1 - Package init diff --git a/v2.0.2.tar.gz b/v2.0.2.tar.gz deleted file mode 100644 index 9d0dd65c2718dc49cf9b4858b898c0fc57970b58..0000000000000000000000000000000000000000 Binary files a/v2.0.2.tar.gz and /dev/null differ