[perl-Unix-Syslog] Modernize spec file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



commit e6d0e82f9f44ac6cdd176e1d813c829c1733c92a
Author: Petr Písař <ppisar@xxxxxxxxxx>
Date:   Wed Nov 7 09:34:13 2012 +0100

    Modernize spec file

 perl-Unix-Syslog.spec |   12 +-----------
 1 files changed, 1 insertions(+), 11 deletions(-)
---
diff --git a/perl-Unix-Syslog.spec b/perl-Unix-Syslog.spec
index ee8be54..28ce94d 100644
--- a/perl-Unix-Syslog.spec
+++ b/perl-Unix-Syslog.spec
@@ -6,7 +6,6 @@ License:        Artistic 2.0
 Group:          Development/Libraries
 URL:            http://search.cpan.org/dist/Unix-Syslog/
 Source0:        http://www.cpan.org/authors/id/M/MH/MHARNISCH/Unix-Syslog-%{version}.tar.gz
-BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildRequires:  perl(ExtUtils::MakeMaker)
 # Run-requires:
 BuildRequires:  perl(DynaLoader)
@@ -29,24 +28,15 @@ should be able to use this module right away.
 make %{?_smp_mflags}
 
 %install
-rm -rf $RPM_BUILD_ROOT
-
-make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
-
+make pure_install DESTDIR=$RPM_BUILD_ROOT
 find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
 find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -exec rm -f {} \;
-find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
-
 %{_fixperms} $RPM_BUILD_ROOT/*
 
 %check
 %{?_with_check:make test}
 
-%clean
-rm -rf $RPM_BUILD_ROOT
-
 %files
-%defattr(-,root,root,-)
 %doc Artistic Changes README
 %{perl_vendorarch}/auto/*
 %{perl_vendorarch}/Unix*
--
Fedora Extras Perl SIG
http://www.fedoraproject.org/wiki/Extras/SIGs/Perl
perl-devel mailing list
perl-devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/perl-devel



[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Legacy Announce]     [Fedora PHP Devel]     [Kernel Devel]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Big List of Linux Books]     [Gimp]     [Yosemite Information]
  Powered by Linux