]> git.pld-linux.org Git - packages/pldcpan.git/commitdiff
- 1.31, simplified, added version checking + BR: EU::MM
authorradek <radek@pld-linux.org>
Mon, 14 Nov 2005 14:25:25 +0000 (14:25 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    pldcpan.spec -> 1.8

pldcpan.spec

index dc3cb37cb2941ee12291391ec62b0a8fd92ad84d..eb87854d297b1f929f1d0af5b56011c58acc505b 100644 (file)
@@ -2,12 +2,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)
@@ -21,14 +22,13 @@ pldcpan tworzy pakiety RPM z archiw
 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
This page took 0.065972 seconds and 4 git commands to generate.