2004-09-09 10:25:33 +00:00
|
|
|
%define _use_internal_dependency_generator 0
|
|
|
|
|
2004-09-09 10:25:09 +00:00
|
|
|
%define module libxml-perl
|
2004-09-09 10:25:30 +00:00
|
|
|
Summary: A collection of Perl modules for working with XML.
|
|
|
|
Name: perl-%{module}
|
|
|
|
Version: 0.07
|
2004-09-22 14:21:35 +00:00
|
|
|
Release: 30
|
2004-09-09 10:25:30 +00:00
|
|
|
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
|
2004-09-09 10:25:09 +00:00
|
|
|
|
|
|
|
%description
|
2004-09-09 10:25:30 +00:00
|
|
|
libxml-perl is a collection of smaller Perl modules, scripts, and
|
|
|
|
documents for working with XML in Perl. libxml-perl software works in
|
|
|
|
combination with XML::Parser, PerlSAX, XML::DOM, XML::Grove and
|
|
|
|
others.
|
|
|
|
|
2004-09-09 10:25:09 +00:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{module}-%{version}
|
|
|
|
|
|
|
|
%build
|
2004-09-09 10:25:30 +00:00
|
|
|
CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL PREFIX=$RPM_BUILD_ROOT/usr INSTALLDIRS=vendor
|
2004-09-09 10:25:09 +00:00
|
|
|
make
|
2004-09-09 10:25:30 +00:00
|
|
|
make test || /bin/true
|
2004-09-09 10:25:09 +00:00
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
2004-09-09 10:25:30 +00:00
|
|
|
make install
|
|
|
|
|
|
|
|
[ -x /usr/lib/rpm/brp-compress ] && /usr/lib/rpm/brp-compress
|
2004-09-09 10:25:09 +00:00
|
|
|
|
2004-09-09 10:25:33 +00:00
|
|
|
find $RPM_BUILD_ROOT \( -name perllocal.pod -o -name .packlist \) -exec rm -v {} \;
|
|
|
|
|
2004-09-09 10:25:30 +00:00
|
|
|
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
|
2004-09-09 10:25:09 +00:00
|
|
|
|
2004-09-09 10:25:30 +00:00
|
|
|
%files -f perl-libxml-perl-%{version}-filelist
|
2004-09-09 10:25:09 +00:00
|
|
|
%defattr(-,root,root)
|
|
|
|
|
|
|
|
%changelog
|
2004-09-22 14:21:35 +00:00
|
|
|
* Wed Sep 22 2004 Chip Turner <cturner@redhat.com> 0.07-30
|
|
|
|
- rebuild
|
|
|
|
|
2004-09-09 10:27:44 +00:00
|
|
|
* Fri Apr 23 2004 Chip Turner <cturner@redhat.com> 0.07-29
|
|
|
|
- bump
|
|
|
|
|
2004-09-09 10:25:30 +00:00
|
|
|
* Tue Aug 6 2002 Chip Turner <cturner@redhat.com>
|
|
|
|
- automated release bump and build
|
|
|
|
|
2004-09-09 10:25:23 +00:00
|
|
|
* Wed Mar 27 2002 Chip Turner <cturner@redhat.com>
|
|
|
|
- move to vendor_perl
|
|
|
|
|
|
|
|
* Wed Jan 09 2002 Tim Powers <timp@redhat.com>
|
|
|
|
- automated rebuild
|
|
|
|
|
2004-09-09 10:25:09 +00:00
|
|
|
* Thu Jul 18 2001 Crutcher Dunnavant <crutcher@redhat.com> 0.07-5
|
|
|
|
- imported from mandrake. tweaked man path.
|
|
|
|
|
|
|
|
* Sun Jun 17 2001 Geoffrey Lee <snailtalk@mandrakesoft.com> 0.07-4mdk
|
|
|
|
- Rebuild for the latest perl.
|
|
|
|
- Remove Distribution and Vendor tag.
|
|
|
|
- Don't run make test for now.
|
|
|
|
|
|
|
|
* Tue Mar 13 2001 Jeff Garzik <jgarzik@mandrakesoft.com> 0.07-3mdk
|
|
|
|
- BuildArch: noarch
|
|
|
|
- add docs
|
|
|
|
- rename spec file
|
|
|
|
- clean up spec a bit
|
|
|
|
- run automated tests
|
|
|
|
|
|
|
|
* Sat Sep 16 2000 Stefan van der Eijk <s.vandereijk@chello.nl> 0.07-2mdk
|
|
|
|
- Call spec-helper before creating filelist
|
|
|
|
|
|
|
|
* Wed Aug 09 2000 Jean-Michel Dault <jmdault@mandrakesoft.com> 0.07-1mdk
|
|
|
|
- Macroize package
|