[perl-GD-Barcode] Modernize the spec a bit and fix the dependencies
Petr Šabata
psabata at fedoraproject.org
Tue Nov 6 15:22:28 UTC 2012
commit 7719b7faa40c5b56df27e850997ea4b5eda552e2
Author: Petr Šabata <contyk at redhat.com>
Date: Tue Nov 6 16:15:43 2012 +0100
Modernize the spec a bit and fix the dependencies
perl-GD-Barcode.spec | 26 ++++++++------------------
1 files changed, 8 insertions(+), 18 deletions(-)
---
diff --git a/perl-GD-Barcode.spec b/perl-GD-Barcode.spec
index edea378..3a657e6 100644
--- a/perl-GD-Barcode.spec
+++ b/perl-GD-Barcode.spec
@@ -1,21 +1,17 @@
Name: perl-GD-Barcode
Version: 1.15
-Release: 13%{?dist}
+Release: 14%{?dist}
Summary: Create barcode image with GD
# see Barcode.pm
License: GPL+ or Artistic
Group: Development/Libraries
URL: http://search.cpan.org/dist/GD-Barcode/
Source0: http://www.cpan.org/authors/id/K/KW/KWITKNR/GD-Barcode-%{version}.tar.gz
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
-Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
-
-# core
+Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
+BuildRequires: perl(Exporter)
BuildRequires: perl(ExtUtils::MakeMaker)
-# cpan
BuildRequires: perl(GD)
-
# definitely not picked up automagically.
Requires: perl(GD)
@@ -25,36 +21,30 @@ with GD.
%prep
%setup -q -n GD-Barcode-%{version}
-
find sample/ -type f -exec sed -i 's/\r//' {} +
%build
-%{__perl} Makefile.PL INSTALLDIRS=vendor
+perl Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}
%install
-rm -rf %{buildroot}
-
-make pure_install PERL_INSTALL_ROOT=%{buildroot}
-
+make pure_install DESTDIR=%{buildroot}
find %{buildroot} -type f -name .packlist -exec rm -f {} \;
find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;
-
%{_fixperms} %{buildroot}/*
%check
make test
-%clean
-rm -rf %{buildroot}
-
%files
-%defattr(-,root,root,-)
%doc Changes README sample/ test.pl
%{perl_vendorlib}/*
%{_mandir}/man3/*
%changelog
+* Tue Nov 06 2012 Petr Šabata <contyk at redhat.com> - 1.15-14
+- Modernize the spec a bit and fix the dependencies
+
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.15-13
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
More information about the perl-devel
mailing list