LFS-RPM/SPECS/XML-Parser.spec
2019-05-25 21:36:26 -04:00

43 lines
1.7 KiB
RPMSpec

#TARBALL: http://cpan.metacpan.org/authors/id/T/TO/TODDR/XML-Parser-2.44.tar.gz
#MD5SUM: af4813fe3952362451201ced6fbce379;SOURCES/XML-Parser-2.44.tar.gz
#-----------------------------------------------------------------------------
Summary: The XML::Parser module is a Perl interface to James Clark's XML parser, Expat.
Name: XML-Parser
Version: 2.44
Release: 1
License: Non-GPL
URL: Any
Group: LFS/Base
Vendor: Elizabeth
Source0: http://cpan.metacpan.org/authors/id/T/TO/TODDR/%{name}-%{version}.tar.gz
Requires: filesystem
%description
The XML::Parser module is a Perl interface to James Clark's XML parser, Expat.
#-----------------------------------------------------------------------------
%prep
%setup -q -n %{NAME}-%{VERSION}
%build
perl Makefile.PL
make %{?_smp_mflags}
%install
make DESTDIR=%{buildroot} install
#-----------------------------------------------------------------------------
# Copy license/copying file
install -D -m644 README %{buildroot}/usr/share/licenses/%{name}/LICENSE
#-----------------------------------------------------------------------------
# Create file list
# rm %{buildroot}%{_infodir}/dir
find %{buildroot} -name '*.la' -delete
find "${RPM_BUILD_ROOT}" -not -type d -print > filelist.rpm
sed -i "s|^${RPM_BUILD_ROOT}||" filelist.rpm
sed -i '/man\/man/d' filelist.rpm
sed -i '/\/usr\/share\/info/d' filelist.rpm
#-----------------------------------------------------------------------------
%files -f filelist.rpm
%defattr(-,root,root)
%{_mandir}/man3/*
#-----------------------------------------------------------------------------
%changelog
* Tue Jan 09 2018 baho-utot <baho-utot@columbus.rr.com> 2.44-1
- Initial build. First version