From 057b38609d0acfad0bd4683b65ad311bc90e0ae9111fcfb43fe55f9eded070f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Fri, 6 Mar 2020 18:24:40 +0000 Subject: [PATCH] - Do not install doc and test folders to sitelib OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-astral?expand=0&rev=16 --- python-astral.changes | 5 +++++ python-astral.spec | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/python-astral.changes b/python-astral.changes index 7c571b7..1b804ec 100644 --- a/python-astral.changes +++ b/python-astral.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Mar 6 18:24:26 UTC 2020 - Tomáš Chvátal + +- Do not install doc and test folders to sitelib + ------------------------------------------------------------------- Thu Mar 5 09:52:44 UTC 2020 - pgajdos@suse.com diff --git a/python-astral.spec b/python-astral.spec index ebe63fc..3d8413d 100644 --- a/python-astral.spec +++ b/python-astral.spec @@ -23,7 +23,6 @@ Version: 2.1 Release: 0 Summary: Calculations for the position of the sun and moon License: Apache-2.0 -Group: Development/Languages/Python URL: https://github.com/sffjunkie/astral Source: https://files.pythonhosted.org/packages/source/a/astral/astral-%{version}.tar.gz BuildRequires: %{python_module freezegun} @@ -56,6 +55,9 @@ For documentation see the http://astral.readthedocs.io/en/latest/index.html %install %python_install +# do not install bogus doc module +%python_expand rm -r %{buildroot}/%{$python_sitelib}/doc +%python_expand rm -r %{buildroot}/%{$python_sitelib}/test %python_expand %fdupes %{buildroot}/%{$python_sitelib} %check