SPECS: pldcpan.spec - 1.31, simplified, added version checking + B...
radek
radek at pld-linux.org
Mon Nov 14 15:25:42 CET 2005
Author: radek Date: Mon Nov 14 14:25:42 2005 GMT
Module: SPECS Tag: HEAD
---- Log message:
- 1.31, simplified, added version checking + BR: EU::MM
---- Files affected:
SPECS:
pldcpan.spec (1.7 -> 1.8)
---- Diffs:
================================================================
Index: SPECS/pldcpan.spec
diff -u SPECS/pldcpan.spec:1.7 SPECS/pldcpan.spec:1.8
--- SPECS/pldcpan.spec:1.7 Mon Nov 14 14:29:04 2005
+++ SPECS/pldcpan.spec Mon Nov 14 15:25:25 2005
@@ -3,12 +3,13 @@
Summary: PLD Linux script to create RPMS from CPAN modules
Summary(pl): Skrypt PLD tworzący pakiety RPM z modułów z CPAN
Name: pldcpan
-Version: 1.30
+Version: 1.31
Release: 1
Epoch: 0
License: GPL
Group: Development/Languages/Perl
Source0: %{name}.pl
+BuildRequires: perl-ExtUtils-MakeMaker
BuildRequires: rpm-perlprov
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -22,14 +23,13 @@
modułu i tworzenie pliku spec.
%prep
-%setup -q -c -T
-install %{SOURCE0} .
+# make sure we have the version we claim to have, fail otherwise
+%{__perl} -MExtUtils::MM_Unix -e 'exit(ExtUtils::MM_Unix->parse_version(shift) ne shift)' %{SOURCE0} %{version}
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{_bindir}
-install pldcpan.pl $RPM_BUILD_ROOT%{_bindir}/pldcpan
+install -D %{SOURCE0} $RPM_BUILD_ROOT%{_bindir}/pldcpan
%clean
rm -rf $RPM_BUILD_ROOT
@@ -44,6 +44,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.8 2005/11/14 14:25:25 radek
+- 1.31, simplified, added version checking + BR: EU::MM
+
Revision 1.7 2005/11/14 13:29:04 glen
- 1.30
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/pldcpan.spec?r1=1.7&r2=1.8&f=u
More information about the pld-cvs-commit
mailing list