From 226a2f8d4ad00f666569af1f8566dd3509a429f1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Tue, 14 Apr 2015 11:25:28 +0300 Subject: [PATCH] remove sources to simplify detecting unpackaged files --- python-cryptography.spec | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/python-cryptography.spec b/python-cryptography.spec index 2f9a589..bbc8720 100644 --- a/python-cryptography.spec +++ b/python-cryptography.spec @@ -15,13 +15,13 @@ Source0: https://pypi.python.org/packages/source/c/cryptography/cryptography-%{v URL: https://cryptography.io/ BuildRequires: openssl-devel >= 0.9.8 %if %{with python2} -BuildRequires: python-devel >= 1:2.6 BuildRequires: python-cffi >= 0.8 +BuildRequires: python-devel >= 1:2.6 BuildRequires: python-six >= 1.4.1 %endif %if %{with python3} -BuildRequires: python3-devel >= 1:3.2 BuildRequires: python3-cffi >= 0.8 +BuildRequires: python3-devel >= 1:3.2 BuildRequires: python3-six >= 1.4.1 %endif BuildRequires: rpm-pythonprov @@ -50,7 +50,7 @@ Pythona 2.6-2.7, Pythona 3.2+ oraz PyPy. cryptography zawiera zarówno funkcje wysokopoziomowe, jak i niskopoziomowe interfejsy do popularnych algorytmów kryptograficznych, -takich jak szyfry symetryczne, skróty wiadomości czy funkcje +takich jak szyfry symetryczne, skróty wiadomości czy funkcje wyprowadzające klucze. Ten pakiet zawiera moduły Pythona 2. @@ -82,7 +82,7 @@ Pythona 2.6-2.7, Pythona 3.2+ oraz PyPy. cryptography zawiera zarówno funkcje wysokopoziomowe, jak i niskopoziomowe interfejsy do popularnych algorytmów kryptograficznych, -takich jak szyfry symetryczne, skróty wiadomości czy funkcje +takich jak szyfry symetryczne, skróty wiadomości czy funkcje wyprowadzające klucze. Ten pakiet zawiera moduły Pythona 3. @@ -114,6 +114,8 @@ rm -rf $RPM_BUILD_ROOT --root=$RPM_BUILD_ROOT %py_postclean +%{__rm} $RPM_BUILD_ROOT%{py_sitedir}/cryptography/hazmat/bindings/__pycache__/*.c +%{__rm} $RPM_BUILD_ROOT%{py_sitedir}/cryptography/hazmat/primitives/src/*.[ch] %endif %if %{with python3} @@ -122,6 +124,8 @@ rm -rf $RPM_BUILD_ROOT install --skip-build \ --optimize=2 \ --root=$RPM_BUILD_ROOT + +%{__rm} $RPM_BUILD_ROOT%{py3_sitedir}/cryptography/hazmat/primitives/src/*.[ch] %endif %clean -- 2.44.0