Bring up to date with current Fedora.Extras perl spec template. (#156511)
This commit is contained in:
parent
cb95a76e6b
commit
d887eeb533
@ -1,53 +1,53 @@
|
||||
Name: perl-XML-NamespaceSupport
|
||||
Version: 1.08
|
||||
Release: 7
|
||||
Summary: XML-NamespaceSupport Perl module
|
||||
License: distributable
|
||||
Group: Development/Libraries
|
||||
URL: http://search.cpan.org/search?mode=module&query=XML%3a%3aNamespaceSupport
|
||||
BuildRoot: %{_tmppath}/%{name}-root
|
||||
Buildarch: noarch
|
||||
BuildRequires: perl >= 1:5.6.1
|
||||
Requires: %(perl -MConfig -le 'if (defined $Config{useithreads}) { print "perl(:WITH_ITHREADS)" } else { print "perl(:WITHOUT_ITHREADS)" }')
|
||||
Requires: %(perl -MConfig -le 'if (defined $Config{usethreads}) { print "perl(:WITH_THREADS)" } else { print "perl(:WITHOUT_THREADS)" }')
|
||||
Requires: %(perl -MConfig -le 'if (defined $Config{uselargefiles}) { print "perl(:WITH_LARGEFILES)" } else { print "perl(:WITHOUT_LARGEFILES)" }')
|
||||
Source0: XML-NamespaceSupport-1.08.tar.gz
|
||||
Name: perl-XML-NamespaceSupport
|
||||
Version: 1.08
|
||||
Release: 7
|
||||
Summary: XML-NamespaceSupport Perl module
|
||||
|
||||
Group: Development/Libraries
|
||||
License: GPL or Artistic
|
||||
Url: http://search.cpan.org/dist/XML-NamespaceSupport/
|
||||
Source0: http://www.cpan.org/authors/id/R/RB/RBERJON/XML-NamespaceSupport-%{version}.tar.gz
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
|
||||
BuildArch: noarch
|
||||
BuildRequires: perl >= 1:5.6.1
|
||||
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
||||
|
||||
%description
|
||||
XML-NamespaceSupport Perl module
|
||||
%{summary}.
|
||||
|
||||
|
||||
%prep
|
||||
%setup -q -n XML-NamespaceSupport-%{version}
|
||||
chmod 644 Changes README *.pm
|
||||
|
||||
%build
|
||||
CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL PREFIX=$RPM_BUILD_ROOT/usr INSTALLDIRS=vendor
|
||||
make
|
||||
%{__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
|
||||
eval `perl '-V:installarchlib'`
|
||||
mkdir -p $RPM_BUILD_ROOT/$installarchlib
|
||||
%makeinstall
|
||||
rm -f `find $RPM_BUILD_ROOT -type f -name perllocal.pod -o -name .packlist`
|
||||
|
||||
find $RPM_BUILD_ROOT/usr -type f -print | \
|
||||
sed "s@^$RPM_BUILD_ROOT@@g" | \
|
||||
grep -v perllocal.pod | \
|
||||
grep -v "\.packlist" > XML-NamespaceSupport-%{version}-filelist
|
||||
if [ "$(cat XML-NamespaceSupport-%{version}-filelist)X" = "X" ] ; then
|
||||
echo "ERROR: EMPTY FILE LIST"
|
||||
exit 1
|
||||
fi
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%{perl_vendorlib}/XML/
|
||||
%{_mandir}/man3/*.3*
|
||||
|
||||
%files -f XML-NamespaceSupport-%{version}-filelist
|
||||
%defattr(-,root,root)
|
||||
|
||||
%changelog
|
||||
* Wed Mar 30 2005 Warren Togami <wtogami@redhat.com>
|
||||
- remove brp-compress
|
||||
* Sat Apr 30 2005 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.08-7
|
||||
- Bring up to date with current Fedora.Extras perl spec template. (#156511)
|
||||
|
||||
* Wed Sep 22 2004 Chip Turner <cturner@redhat.com> 1.08-6
|
||||
- rebuild
|
||||
|
||||
Loading…
Reference in New Issue
Block a user