rpms/perl-XML-Grove/devel perl-XML-Grove.spec,1.12,1.13

fedora-cvs-commits at redhat.com fedora-cvs-commits at redhat.com
Tue Jan 10 16:24:18 UTC 2006


Author: jvdias

Update of /cvs/dist/rpms/perl-XML-Grove/devel
In directory cvs.devel.redhat.com:/tmp/cvs-serv19190

Modified Files:
	perl-XML-Grove.spec 
Log Message:
fix bug 176889


Index: perl-XML-Grove.spec
===================================================================
RCS file: /cvs/dist/rpms/perl-XML-Grove/devel/perl-XML-Grove.spec,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -r1.12 -r1.13
--- perl-XML-Grove.spec	17 Dec 2005 02:16:23 -0000	1.12
+++ perl-XML-Grove.spec	10 Jan 2006 16:24:15 -0000	1.13
@@ -1,20 +1,17 @@
-%define _use_internal_dependency_generator 0
-
-%define module	XML-Grove
-
-Summary: A Perl module providing simple access to the information set of parsed XML, HTML, or SGML instances.
-Name: perl-%{module}
-Version: 0.46alpha
-Release: 28.1.1
-License: distributable
-Group: System Environment/Libraries
-Source0: %{module}-%{version}.tar.bz2
-Url: http://www.cpan.org
-BuildRoot: %{_tmppath}/%{name}-buildroot/
-Requires: perl >= 5.6.0
-BuildRequires: perl-libxml-perl
-
-BuildArch: noarch
+Name:           perl-XML-Grove
+Version:        0.46alpha
+Release:        29
+Summary:        Simple access to infoset of parsed XML, HTML, or SGML instances
+
+Group:          Development/Libraries
+License:        Artistic
+URL:            http://search.cpan.org/dist/XML-Grove/
+Source0:        http://www.cpan.org/authors/id/K/KM/KMACLEOD/XML-Grove-%{version}.tar.bz2
+BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+BuildArch:      noarch
+BuildRequires:  perl-libxml-perl
+Requires:  	perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
 
 %description
 XML::Grove is a tree-based object model for accessing the information
@@ -22,38 +19,44 @@
 objects are Perl hashes and arrays where you access the properties of
 the objects using normal Perl syntax.
 
+
 %prep
-%setup -q -n %{module}-%{version}
+%setup -q -n XML-Grove-%{version}
+
 
 %build
-CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL PREFIX=$RPM_BUILD_ROOT/usr INSTALLDIRS=vendor
-make
-make test || /bin/true
+%{__perl} Makefile.PL INSTALLDIRS=vendor
+make %{?_smp_mflags}
 
-%clean 
-rm -rf $RPM_BUILD_ROOT
 
 %install
 rm -rf $RPM_BUILD_ROOT
-make install
+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 d -depth -exec rmdir {} 2>/dev/null ';'
+chmod -R u+w $RPM_BUILD_ROOT/*
+
+
+%check
+make test || :
+
+
+%clean
+rm -rf $RPM_BUILD_ROOT
 
-find $RPM_BUILD_ROOT \( -name perllocal.pod -o -name .packlist \) -exec rm -v {} \;
 
-find $RPM_BUILD_ROOT/usr -type f -print | 
-        sed "s@^$RPM_BUILD_ROOT@@g" | 
-        grep -v perllocal.pod | 
-        grep -v "\.packlist" > XML-Grove-%{version}-filelist
-if [ "$(cat XML-Grove-%{version}-filelist)X" = "X" ] ; then
-    echo "ERROR: EMPTY FILE LIST"
-    exit -1
-fi
-
-%files -f XML-Grove-%{version}-filelist
-%defattr(-,root,root)
-%dir /usr/lib/perl5/vendor_perl/%(perl -MConfig -e 'print $Config{version}')/XML
-%dir /usr/lib/perl5/vendor_perl/%(perl -MConfig -e 'print $Config{version}')/XML/Grove
+%files
+%defattr(-,root,root,-)
+%doc ChangeLog Changes COPYING DOM* README examples/
+%{perl_vendorlib}/XML/*
+%{_mandir}/man3/*.3*
+
 
 %changelog
+* Fri Jan  6 2006 Ville Skyttä <ville.skytta at iki.fi> - 0.46alpha-29
+- Rewrite specfile using fedora-rpmdevtools' spec template, fixes #176889.
+- Fix License, include docs.
+
 * Fri Dec 16 2005 Jesse Keating <jkeating at redhat.com>
 - rebuilt for new gcc
 
@@ -86,4 +89,3 @@
 
 * Mon Jun 18 2001 Till Kamppeter <till at mandrakesoft.com> 0.46alpha-1mdk
 - Newly introduced for Foomatic.
-




More information about the fedora-cvs-commits mailing list