rpms/perl-PGPLOT/EL-5 perl-PGPLOT.spec,1.1,1.2

Sergio Pascual sergiopr at rpmfusion.org
Wed Oct 16 11:42:07 CEST 2013


Author: sergiopr

Update of /cvs/nonfree/rpms/perl-PGPLOT/EL-5
In directory old02.ovh.rpmfusion.lan:/tmp/cvs-serv1606

Modified Files:
	perl-PGPLOT.spec 
Log Message:
* Wed Oct 16 2013 Sergio Pascual <sergiopr at fis.ucm.es> - 2.21-2.1
- Add buildroot and defattr (old rpm)



Index: perl-PGPLOT.spec
===================================================================
RCS file: /cvs/nonfree/rpms/perl-PGPLOT/EL-5/perl-PGPLOT.spec,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- perl-PGPLOT.spec	16 Oct 2013 08:45:31 -0000	1.1
+++ perl-PGPLOT.spec	16 Oct 2013 09:42:07 -0000	1.2
@@ -1,14 +1,16 @@
 Name: perl-PGPLOT
 Version: 2.21
-Release: 2%{?dist}
+Release: 2%{?dist}.1
 Summary: Perl extension for using the pgplot library
+Group: Development/Libraries
 License: GPL+ or Artistic
 URL: http://search.cpan.org/dist/PGPLOT/
 Source0: http://search.cpan.org/CPAN/authors/id/K/KG/KGB/PGPLOT-%{version}.tar.gz
 BuildRequires: perl(ExtUtils::MakeMaker)
 BuildRequires: perl(ExtUtils::F77)
-BuildRequires: pgplot-devel
+BuildRequires: pgplot-devel 
 Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+Buildroot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
 
 %{?perl_default_filter}
 
@@ -19,29 +21,30 @@
 %setup -q -n PGPLOT-%{version}
 
 %build
-%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
+%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
 make %{?_smp_mflags}
 
 %install
-make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
+rm -rf %{buildroot}
+make pure_install PERL_INSTALL_ROOT=%{buildroot}
 
-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 \;
+find %{buildroot} -type f -name .packlist -exec rm -f {} \;
+find %{buildroot} -type f -name '*.bs' -size 0 -exec rm -f {} \;
+find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;
 
-%{_fixperms} $RPM_BUILD_ROOT/*
-
-#%check
-#works locally
-#make test
+%{_fixperms} %{buildroot}/*
 
 %files
+%defattr(-,root,root,-)
 %doc CHANGES HELP LICENSE README
 %{perl_vendorarch}/*
 %exclude %dir %{perl_vendorarch}/auto/
 %{_mandir}/man3/*
 
 %changelog
+* Wed Oct 16 2013 Sergio Pascual <sergiopr at fis.ucm.es> - 2.21-2.1
+- Add buildroot and defattr (old rpm)
+
 * Wed Sep 11 2013 Sergio Pascual <sergiopr at fis.ucm.es> - 2.21-2
 - Removed patch
 - Added buildrequires perl(ExtUtils::F77)


More information about the rpmfusion-commits mailing list