parent
c2b3c6f4cd
commit
57dee12726
@ -1 +1 @@
|
||||
libxml-perl-0.07.tar.bz2
|
||||
libxml-perl-0.08.tar.gz
|
||||
|
@ -1,18 +1,18 @@
|
||||
%define _use_internal_dependency_generator 0
|
||||
Name: perl-libxml-perl
|
||||
Version: 0.08
|
||||
Release: 1
|
||||
Summary: A collection of Perl modules for working with XML
|
||||
|
||||
%define module libxml-perl
|
||||
Summary: A collection of Perl modules for working with XML.
|
||||
Name: perl-%{module}
|
||||
Version: 0.07
|
||||
Release: 31
|
||||
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, perl-XML-Parser
|
||||
BuildRequires: perl-XML-Parser
|
||||
BuildArch: noarch
|
||||
Group: Development/Libraries
|
||||
License: GPL or Artistic
|
||||
URL: http://search.cpan.org/dist/libxml-perl/
|
||||
Source0: http://www.cpan.org/authors/id/K/KM/KMACLEOD/libxml-perl-%{version}.tar.gz
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
|
||||
BuildArch: noarch
|
||||
BuildRequires: perl >= 1:5.6.1
|
||||
BuildRequires: perl(XML::Parser)
|
||||
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
||||
|
||||
%description
|
||||
libxml-perl is a collection of smaller Perl modules, scripts, and
|
||||
@ -22,37 +22,38 @@ others.
|
||||
|
||||
|
||||
%prep
|
||||
%setup -q -n %{module}-%{version}
|
||||
%setup -q -n libxml-perl-%{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}
|
||||
|
||||
%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 d -depth -exec rmdir {} 2>/dev/null ';'
|
||||
chmod -R u+w $RPM_BUILD_ROOT/*
|
||||
|
||||
%check || :
|
||||
make test
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
make install
|
||||
|
||||
find $RPM_BUILD_ROOT \( -name perllocal.pod -o -name .packlist \) -exec rm -v {} \;
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%doc ChangeLog Changes README
|
||||
%{perl_vendorlib}/Data/
|
||||
%{perl_vendorlib}/XML/
|
||||
%{_mandir}/man3/*.3*
|
||||
|
||||
find $RPM_BUILD_ROOT/usr -type f -print |
|
||||
sed "s@^$RPM_BUILD_ROOT@@g" |
|
||||
grep -v perllocal.pod |
|
||||
grep -v "\.packlist" > perl-libxml-perl-%{version}-filelist
|
||||
if [ "$(cat perl-libxml-perl-%{version}-filelist)X" = "X" ] ; then
|
||||
echo "ERROR: EMPTY FILE LIST"
|
||||
exit -1
|
||||
fi
|
||||
|
||||
%files -f perl-libxml-perl-%{version}-filelist
|
||||
%defattr(-,root,root)
|
||||
|
||||
%changelog
|
||||
* Wed Mar 30 2005 Warren Togami <wtogami@redhat.com>
|
||||
- remove brp-compress
|
||||
* Sat Apr 02 2005 Jose Pedro Oliveira <jpo at di.uminho.pt> - 0.08-1
|
||||
- Update to 0.08.
|
||||
- spec cleanup (#153199)
|
||||
|
||||
* Wed Sep 22 2004 Chip Turner <cturner@redhat.com> 0.07-30
|
||||
- rebuild
|
||||
|
Loading…
Reference in New Issue
Block a user