[pycryptopp] Put the removal of extraneous file in %install instead of %check. Doesn't affect the packages so not
Toshio くらとみ
toshio at fedoraproject.org
Thu Sep 23 22:10:05 UTC 2010
commit c553c865316de2ffd117f6796ca4d06cfb8e03bd
Author: Toshio Kuratomi <toshio at fedoraproject.org>
Date: Thu Sep 23 18:07:28 2010 -0400
Put the removal of extraneous file in %install instead of %check.
Doesn't affect the packages so not rebuilding
pycryptopp.spec | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/pycryptopp.spec b/pycryptopp.spec
index 3f627bf..2fa7ba9 100644
--- a/pycryptopp.spec
+++ b/pycryptopp.spec
@@ -42,6 +42,10 @@ CFLAGS="%{optflags}" %{__python} setup.py build --disable-embedded-cryptopp
%{__python} setup.py install --skip-build --root %{buildroot}
rm -rf %{buildroot}%{_docdir}/%{name}/
+# This file isn't needed. It's used to mark the embedded crytopp as having
+# come from pycrypto. We're not installing the embedded version.
+rm -rf %{buildroot}/%{_prefix}/cryptopp/extraversion.h
+
%check
CFLAGS="%{optflags}" %{__python} setup.py test
@@ -50,10 +54,6 @@ CFLAGS="%{optflags}" %{__python} setup.py test
rm -rf %{buildroot}%{python_sitearch}/%{name}/test/
rm -rf %{buildroot}%{python_sitearch}/%{name}/testvectors/
-# This file isn't needed. It's used to mark the embedded crytopp as having
-# come from pycrypto. We're not installing the embedded version.
-rm -rf %{buildroot}/%{_prefix}/cryptopp/extraversion.h
-
%files
%defattr(-,root,root,-)
%doc COPYING.GPL COPYING.TGPPL.html README.txt ChangeLog copyright
More information about the scm-commits
mailing list