rpms/perl-Readonly-XS/devel perl-Readonly-XS.spec,1.4,1.5

Chris Weyl (cweyl) fedora-extras-commits at redhat.com
Fri Oct 6 16:20:17 UTC 2006


Author: cweyl

Update of /cvs/extras/rpms/perl-Readonly-XS/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv8284/devel

Modified Files:
	perl-Readonly-XS.spec 
Log Message:
Drop buildrequires on perl(Readonly); patch Makefile.PL to keep it from
complaining.  This should resolve the rather involved little loop I
inadvertently introduced some moments ago.



Index: perl-Readonly-XS.spec
===================================================================
RCS file: /cvs/extras/rpms/perl-Readonly-XS/devel/perl-Readonly-XS.spec,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- perl-Readonly-XS.spec	4 Oct 2006 22:43:40 -0000	1.4
+++ perl-Readonly-XS.spec	6 Oct 2006 16:20:16 -0000	1.5
@@ -1,38 +1,43 @@
 Name:           perl-Readonly-XS
 Version:        1.04
-Release:        5%{?dist}
-Summary:        Companion module for Readonly.pm
+Release:        6%{?dist}
+Summary:        Companion module for Readonly
 
 Group:          Development/Libraries
 License:        GPL or Artistic
 URL:            http://search.cpan.org/dist/Readonly-XS/
 Source0:        http://search.cpan.org/CPAN/authors/id/R/RO/ROODE/Readonly-XS-%{version}.tar.gz
+Patch0:         makefile.pl.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
-BuildRequires: perl(Readonly) >= 1.02
 Requires:  perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
 Requires:  perl(Readonly) >= 1.02
 
+
 %description
-Readonly-XS is a companion module for Readonly.pm, to speed up read-only
-scalar variables
+Readonly::XS is a companion module for Readonly, to speed up read-only
+scalar variables.
+
 
 %prep
 %setup -q -n Readonly-XS-%{version}
+%patch0
 
 
 %build
-%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
+%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
 make %{?_smp_mflags}
 
 
 %install
-rm -rf $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 '*.bs' -a -size 0 -exec rm -f {} ';'
-find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';'
-chmod -R u+w $RPM_BUILD_ROOT/*
+rm -rf %{buildroot}
+
+make pure_install PERL_INSTALL_ROOT=%{buildroot}
+find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
+find %{buildroot} -type f -name '*.bs' -a -size 0 -exec rm -f {} ';'
+find %{buildroot} -type d -depth -exec rmdir {} 2>/dev/null ';'
+
+%{_fixperms} %{buildroot}/*
 
 
 %check
@@ -40,7 +45,7 @@
 
 
 %clean
-rm -rf $RPM_BUILD_ROOT
+rm -rf %{buildroot}
 
 
 %files
@@ -52,8 +57,12 @@
 
 
 %changelog
+* Fri Oct 06 2006 Chris Weyl <cweyl at alumni.drew.edu> 1.04-6
+- drop br on perl(Readonly), patch Makefile.PL as well
+- rework spec to use macros
+
 * Thu Oct 05 2006 Christian Iseli <Christian.Iseli at licr.org> 1.04-5
- - rebuilt for unwind info generation, broken in gcc-4.1.1-21
+- rebuilt for unwind info generation, broken in gcc-4.1.1-21
 
 * Tue Sep 19 2006 Chris Weyl <cweyl at alumni.drew.edu> 1.04-4
 - bump for mass rebuild




More information about the fedora-extras-commits mailing list