rpms/perl-RPM2/devel .cvsignore, 1.2, 1.3 perl-RPM2.spec, 1.8, 1.9 sources, 1.2, 1.3

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

 



Author: lkundrak

Update of /cvs/pkgs/rpms/perl-RPM2/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv9752

Modified Files:
	.cvsignore perl-RPM2.spec sources 
Log Message:
Major refactor of the source file
	-- bring up to date with current cpanspec template
	-- clean up build requires

* Wed Dec 17 2008 Lubomir Rintel <lkundrak@xxxxx> - 0.68-1
- New upstream release
- Drop patches



Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/perl-RPM2/devel/.cvsignore,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- .cvsignore	5 Apr 2007 14:47:08 -0000	1.2
+++ .cvsignore	17 Dec 2008 22:30:26 -0000	1.3
@@ -1 +1 @@
-RPM2-0.67.tar.gz
+RPM2-0.68.tar.gz


Index: perl-RPM2.spec
===================================================================
RCS file: /cvs/pkgs/rpms/perl-RPM2/devel/perl-RPM2.spec,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- perl-RPM2.spec	12 Dec 2008 00:26:13 -0000	1.8
+++ perl-RPM2.spec	17 Dec 2008 22:30:27 -0000	1.9
@@ -1,59 +1,64 @@
-Name:		perl-RPM2
-Version:	0.67
-Release:	7%{?dist}
-Summary:	Perl bindings for the RPM Package Manager API
-License:	GPL+ or Artistic
-Group:		Development/Libraries
-URL:		http://search.cpan.org/dist/RPM2/
-Source0:	http://search.cpan.org/CPAN/authors/id/C/CH/CHIPT/RPM2-%{version}.tar.gz
-Patch0:		perl-RPM2-elf.patch
-Patch1:		perl-RPM2-0.66-remove-rpmdb-redhat-dependency.patch
-Patch2:		perl-RPM2-0.66-skip-root-tests.patch
-Patch3:		perl-RPM2-0.67-inttypes.patch
-Patch4:		perl-RPM2-0.67-rpm46.patch
-BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-BuildRequires:	rpm-devel elfutils-libelf-devel bzip2-devel perl(ExtUtils::MakeMaker)
-Requires:	perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+Name:           perl-RPM2
+Version:        0.68
+Release:        1%{?dist}
+Summary:        Perl bindings for the RPM Package Manager API
+License:        GPL+ or Artistic
+Group:          Development/Libraries
+URL:            http://search.cpan.org/dist/RPM2/
+Source0:        http://www.cpan.org/authors/id/L/LK/LKUNDRAK/RPM2-%{version}.tar.gz
+BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+BuildRequires:  rpm-devel perl(ExtUtils::MakeMaker)
+Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+
 
 %description
 The RPM2 module provides an object-oriented interface to querying both the
 installed RPM database as well as files on the filesystem, providing Perl
 bindings for the RPM Package Manager API.
 
+
 %prep
-%setup -q -n RPM2-%{version} 
-%patch0 -p1 -b .elf
-%patch1 -p1 -b .remove-rpmdb-redhat-dependency
-%patch2 -p1 -b .skip-root-tests
-%patch3 -p1 -b .inttypes
-%patch4 -p1 -b .rpm46
+%setup -q -n RPM2-%{version}
+
 
 %build
-%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
-%{__make} %{?_smp_mflags}
+%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
+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' -size 0 -exec rm -f {} \;
+find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
+
+%{_fixperms} $RPM_BUILD_ROOT/*
+
 
 %check
-%{__make} test
+make test
+
 
 %clean
-%{__rm} -rf %{buildroot}
+rm -rf $RPM_BUILD_ROOT
 
-%install
-%{__rm} -rf %{buildroot}
-%{__make} pure_install PERL_INSTALL_ROOT=%{buildroot}
-/usr/bin/find %{buildroot} -type f -name .packlist -exec %{__rm} -f {} ';'
-/usr/bin/find %{buildroot} -type f -name '*.bs' -a -size 0 -exec %{__rm} -f {} ';'
-/usr/bin/find %{buildroot} -depth -type d -exec /bin/rmdir {} 2>/dev/null ';'
-%{__chmod} -R u+w %{buildroot}/*
 
 %files
 %defattr(-,root,root,-)
 %doc Changes README
-%{perl_vendorarch}/RPM2.pm
-%{perl_vendorarch}/auto/RPM2/
-%{_mandir}/man3/RPM2.3pm*
+%{perl_vendorarch}/auto/*
+%{perl_vendorarch}/RPM2*
+%{_mandir}/man3/*
+
 
 %changelog
+* Wed Dec 17 2008 Lubomir Rintel <lkundrak@xxxxx> - 0.68-1
+- New upstream release
+- Drop patches
+
 * Fri Dec 12 2008 Lubomir Rintel <lkundrak@xxxxx> - 0.67-7
 - Port to RPM 4.6
 


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/perl-RPM2/devel/sources,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- sources	5 Apr 2007 14:47:08 -0000	1.2
+++ sources	17 Dec 2008 22:30:27 -0000	1.3
@@ -1 +1 @@
-f9888629116a9b1a5cc39d2e16d44afd  RPM2-0.67.tar.gz
+12de7dcb31955bfa595b597392d048bb  RPM2-0.68.tar.gz

--
Fedora Extras Perl SIG
http://www.fedoraproject.org/wiki/Extras/SIGs/Perl
Fedora-perl-devel-list mailing list
Fedora-perl-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-perl-devel-list

[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