[packages/perl-HTTP-Proxy] doh, disable bcond instead commenting out; cosmetics
glen
glen at pld-linux.org
Tue Sep 1 21:04:42 CEST 2015
commit 4c952bf10f6a27b4c1570e6b6fd02274739454d6
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Tue Sep 1 22:04:22 2015 +0300
doh, disable bcond instead commenting out; cosmetics
perl-HTTP-Proxy.spec | 15 +++++++--------
1 file changed, 7 insertions(+), 8 deletions(-)
---
diff --git a/perl-HTTP-Proxy.spec b/perl-HTTP-Proxy.spec
index 02b0f78..c7c62ac 100644
--- a/perl-HTTP-Proxy.spec
+++ b/perl-HTTP-Proxy.spec
@@ -1,11 +1,13 @@
+# TODO
+# - tests are disabled as one is broken: https://github.com/book/HTTP-Proxy/issues/7
#
# Conditional build:
%bcond_without autodeps # don't BR packages needed only for resolving deps
-%bcond_without tests # do not perform "make test"
-#
-%include /usr/lib/rpm/macros.perl
+%bcond_with tests # do not perform "make test"
+
%define pdir HTTP
%define pnam Proxy
+%include /usr/lib/rpm/macros.perl
Summary: A pure Perl HTTP proxy
Summary(pl.UTF-8): Proxy HTTP zaimplementowany w czystym Perlu
Name: perl-%{pdir}-%{pnam}
@@ -52,18 +54,15 @@ użytkownika.
INSTALLDIRS=vendor
%{__make}
-
-# disable tests as one is broken: https://github.com/book/HTTP-Proxy/issues/7
-#%%{?with_tests:%{__make} test}
+%{?with_tests:%{__make} test}
%install
rm -rf $RPM_BUILD_ROOT
-
%{__make} pure_install \
DESTDIR=$RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
-cp -a eg $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+cp -a eg/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
%clean
rm -rf $RPM_BUILD_ROOT
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/perl-HTTP-Proxy.git/commitdiff/4c952bf10f6a27b4c1570e6b6fd02274739454d6
More information about the pld-cvs-commit
mailing list