Modernize spec file

epel9
Petr Písař 12 years ago
parent fda59fec9a
commit 5038e3ad8f

@ -6,7 +6,6 @@ License: GPL+ or Artistic
Group: Development/Libraries Group: Development/Libraries
URL: http://search.cpan.org/dist/Spiffy/ URL: http://search.cpan.org/dist/Spiffy/
Source0: http://www.cpan.org/authors/id/I/IN/INGY/Spiffy-%{version}.tar.gz Source0: http://www.cpan.org/authors/id/I/IN/INGY/Spiffy-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch BuildArch: noarch
BuildRequires: perl(Cwd) BuildRequires: perl(Cwd)
BuildRequires: perl(File::Find) BuildRequires: perl(File::Find)
@ -29,19 +28,15 @@ Requires: perl(Filter::Util::Call)
Requires: perl(Scalar::Util) Requires: perl(Scalar::Util)
Requires: perl(YAML) Requires: perl(YAML)
# Filter bogus provide of perl(DB) (rpm < 4.9) # Filter bogus provide of perl(DB)
%global provfilt /bin/sh -c "%{__perl_provides} | sed -e '/^perl(DB)$/d'" %global __provides_exclude %{?__provides_exclude:%__provides_exclude|}^perl\\(DB\\)
%define __perl_provides %{provfilt}
# Equivalent filter for rpm 4.9 onwards
%global __provides_exclude ^perl\\(DB\\)
%description %description
"Spiffy" is a framework and methodology for doing object oriented (OO) "Spiffy" is a framework and methodology for doing object oriented (OO)
programming in Perl. Spiffy combines the best parts of Exporter.pm, programming in Perl. Spiffy combines the best parts of Exporter.pm, base.pm,
base.pm, mixin.pm and SUPER.pm into one magic foundation class. It attempts mixin.pm and SUPER.pm into one magic foundation class. It attempts to fix all
to fix all the nits and warts of traditional Perl OO, in a clean, the nits and warts of traditional Perl OO, in a clean, straightforward and
straightforward and (perhaps someday) standard way. (perhaps someday) standard way.
%prep %prep
%setup -q -n Spiffy-%{version} %setup -q -n Spiffy-%{version}
@ -51,23 +46,14 @@ straightforward and (perhaps someday) standard way.
make %{?_smp_mflags} make %{?_smp_mflags}
%install %install
rm -rf $RPM_BUILD_ROOT make pure_install DESTDIR=$RPM_BUILD_ROOT
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
%{_fixperms} $RPM_BUILD_ROOT/* %{_fixperms} $RPM_BUILD_ROOT/*
%check %check
make test make test
%clean
rm -rf $RPM_BUILD_ROOT
%files %files
%defattr(-,root,root,-)
%doc Changes README %doc Changes README
%{perl_vendorlib}/Spiffy* %{perl_vendorlib}/Spiffy*
%{_mandir}/man3/Spiffy.3pm* %{_mandir}/man3/Spiffy.3pm*
@ -75,6 +61,7 @@ rm -rf $RPM_BUILD_ROOT
%changelog %changelog
* Mon Oct 29 2012 Petr Pisar <ppisar@redhat.com> - 0.31-1 * Mon Oct 29 2012 Petr Pisar <ppisar@redhat.com> - 0.31-1
- 0.31 bump - 0.31 bump
- Modernize spec file
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.30-20 * Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.30-20
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild

Loading…
Cancel
Save