forked from pool/python-BTrees
- Replace %fdupes -s with plain %fdupes; hardlinks are better.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-BTrees?expand=0&rev=14
This commit is contained in:
parent
8e996ceabe
commit
f9557afd32
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Oct 14 11:43:03 UTC 2019 - Matej Cepl <mcepl@suse.com>
|
||||||
|
|
||||||
|
- Replace %fdupes -s with plain %fdupes; hardlinks are better.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Aug 5 11:36:26 UTC 2019 - pgajdos@suse.com
|
Mon Aug 5 11:36:26 UTC 2019 - pgajdos@suse.com
|
||||||
|
|
||||||
|
@ -23,24 +23,22 @@ Version: 4.6.0
|
|||||||
Release: 0
|
Release: 0
|
||||||
Summary: Persistent B-tree object containers for Python
|
Summary: Persistent B-tree object containers for Python
|
||||||
License: ZPL-2.1
|
License: ZPL-2.1
|
||||||
Group: Development/Libraries/Python
|
URL: http://www.zope.org/Products/ZODB
|
||||||
Url: http://www.zope.org/Products/ZODB
|
|
||||||
Source: https://files.pythonhosted.org/packages/source/B/BTrees/BTrees-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/B/BTrees/BTrees-%{version}.tar.gz
|
||||||
BuildRequires: %{python_module devel}
|
|
||||||
BuildRequires: %{python_module persistent-devel >= 4.1.0}
|
|
||||||
BuildRequires: %{python_module setuptools}
|
|
||||||
BuildRequires: %{python_module zope.interface}
|
|
||||||
BuildRequires: fdupes
|
|
||||||
BuildRequires: python-rpm-macros
|
|
||||||
# Documentation requirements:
|
# Documentation requirements:
|
||||||
BuildRequires: %{python_module Sphinx}
|
BuildRequires: %{python_module Sphinx}
|
||||||
|
BuildRequires: %{python_module devel}
|
||||||
|
BuildRequires: %{python_module persistent-devel >= 4.1.0}
|
||||||
BuildRequires: %{python_module repoze.sphinx.autointerface}
|
BuildRequires: %{python_module repoze.sphinx.autointerface}
|
||||||
|
BuildRequires: %{python_module setuptools}
|
||||||
# Testing requirements:
|
# Testing requirements:
|
||||||
BuildRequires: %{python_module transaction}
|
BuildRequires: %{python_module transaction}
|
||||||
|
BuildRequires: %{python_module zope.interface}
|
||||||
BuildRequires: %{python_module zope.testrunner}
|
BuildRequires: %{python_module zope.testrunner}
|
||||||
|
BuildRequires: fdupes
|
||||||
|
BuildRequires: python-rpm-macros
|
||||||
Requires: python-persistent >= 4.1.0
|
Requires: python-persistent >= 4.1.0
|
||||||
Requires: python-zope.interface
|
Requires: python-zope.interface
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -55,7 +53,6 @@ BTrees.tests.test_SampleDataManager.
|
|||||||
|
|
||||||
%package devel
|
%package devel
|
||||||
Summary: Development files for the python-BTrees module
|
Summary: Development files for the python-BTrees module
|
||||||
Group: Development/Languages/Python
|
|
||||||
Requires: %{name} = %{version}
|
Requires: %{name} = %{version}
|
||||||
|
|
||||||
%description devel
|
%description devel
|
||||||
@ -63,7 +60,6 @@ This package contains the files needed for binding the %{name} C module.
|
|||||||
|
|
||||||
%package doc
|
%package doc
|
||||||
Summary: Documentation for the python-BTrees module
|
Summary: Documentation for the python-BTrees module
|
||||||
Group: Development/Libraries/Python
|
|
||||||
Requires: %{name} = %{version}
|
Requires: %{name} = %{version}
|
||||||
|
|
||||||
%description doc
|
%description doc
|
||||||
@ -76,30 +72,27 @@ rm -rf BTrees.egg-info
|
|||||||
%build
|
%build
|
||||||
%python_build
|
%python_build
|
||||||
%{_python_use_flavor python3}
|
%{_python_use_flavor python3}
|
||||||
%__python3 setup.py build_sphinx && rm build/sphinx/html/.buildinfo
|
python3 setup.py build_sphinx && rm build/sphinx/html/.buildinfo
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%python_install
|
||||||
%{python_expand rm %{buildroot}%{$python_sitearch}/BTrees/*.c
|
%{python_expand rm %{buildroot}%{$python_sitearch}/BTrees/*.c
|
||||||
%fdupes -s %{buildroot}%{$python_sitearch}
|
%fdupes %{buildroot}%{$python_sitearch}
|
||||||
}
|
}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%python_exec setup.py -q test
|
%python_exec setup.py -q test
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%defattr(-,root,root)
|
|
||||||
%doc CHANGES.rst README.rst PKG-INFO
|
%doc CHANGES.rst README.rst PKG-INFO
|
||||||
%license COPYRIGHT.txt LICENSE.txt
|
%license COPYRIGHT.txt LICENSE.txt
|
||||||
%exclude %{python_sitearch}/BTrees/*.h
|
%exclude %{python_sitearch}/BTrees/*.h
|
||||||
%{python_sitearch}/*
|
%{python_sitearch}/*
|
||||||
|
|
||||||
%files %{python_files devel}
|
%files %{python_files devel}
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%{python_sitearch}/BTrees/*.h
|
%{python_sitearch}/BTrees/*.h
|
||||||
|
|
||||||
%files %{python_files doc}
|
%files %{python_files doc}
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%doc build/sphinx/html/
|
%doc build/sphinx/html/
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
x
Reference in New Issue
Block a user