Compare commits
5 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
6bde1dcc91 | ||
|
b498714703 | ||
|
4e52b9b367 | ||
|
77c11295da | ||
|
c40c7a43de |
0
.cvsignore → .gitignore
vendored
0
.cvsignore → .gitignore
vendored
21
Makefile
21
Makefile
@ -1,21 +0,0 @@
|
|||||||
# Makefile for source rpm: perl-HTML-Tree
|
|
||||||
# $Id$
|
|
||||||
NAME := perl-HTML-Tree
|
|
||||||
SPECFILE = $(firstword $(wildcard *.spec))
|
|
||||||
|
|
||||||
define find-makefile-common
|
|
||||||
for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done
|
|
||||||
endef
|
|
||||||
|
|
||||||
MAKEFILE_COMMON := $(shell $(find-makefile-common))
|
|
||||||
|
|
||||||
ifeq ($(MAKEFILE_COMMON),)
|
|
||||||
# attept a checkout
|
|
||||||
define checkout-makefile-common
|
|
||||||
test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2
|
|
||||||
endef
|
|
||||||
|
|
||||||
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
|
|
||||||
endif
|
|
||||||
|
|
||||||
include $(MAKEFILE_COMMON)
|
|
@ -1,24 +1,19 @@
|
|||||||
Name: perl-HTML-Tree
|
Name: perl-HTML-Tree
|
||||||
Version: 3.21
|
Version: 3.23
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
|
|
||||||
Summary: HTML tree handling modules for Perl
|
Summary: HTML tree handling modules for Perl
|
||||||
|
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
License: GPL or Artistic
|
License: GPL+ or Artistic
|
||||||
URL: http://search.cpan.org/dist/HTML-Tree/
|
URL: http://search.cpan.org/dist/HTML-Tree/
|
||||||
Source0: http://www.cpan.org/authors/id/P/PE/PETDANCE/HTML-Tree-%{version}.tar.gz
|
Source0: http://www.cpan.org/authors/id/P/PE/PETDANCE/HTML-Tree-%{version}.tar.gz
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
BuildRequires: perl(HTML::Parser) >= 2.19
|
BuildRequires: perl(HTML::Parser) >= 2.19
|
||||||
BuildRequires: perl(HTML::Tagset) >= 3.02
|
BuildRequires: perl(HTML::Tagset) >= 3.02
|
||||||
|
|
||||||
# For improved tests
|
# For improved tests
|
||||||
BuildRequires: perl(Test::Pod) >= 1.00
|
BuildRequires: perl(Test::Pod) >= 1.00
|
||||||
|
BuildRequires: perl(Test::More)
|
||||||
Epoch: 1
|
Epoch: 1
|
||||||
|
|
||||||
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -28,7 +23,6 @@ also relevent documentation. These modules used to be part of the
|
|||||||
libwww-perl distribution, but are now unbundled in order to facilitate
|
libwww-perl distribution, but are now unbundled in order to facilitate
|
||||||
a separate development track.
|
a separate development track.
|
||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n HTML-Tree-%{version}
|
%setup -q -n HTML-Tree-%{version}
|
||||||
%{__perl} -pi -e 's|/usr/local/bin/perl|%{__perl}|' htmltree
|
%{__perl} -pi -e 's|/usr/local/bin/perl|%{__perl}|' htmltree
|
||||||
@ -41,12 +35,10 @@ EOF
|
|||||||
%define __perl_provides %{_builddir}/HTML-Tree-%{version}/%{name}-prov
|
%define __perl_provides %{_builddir}/HTML-Tree-%{version}/%{name}-prov
|
||||||
chmod +x %{__perl_provides}
|
chmod +x %{__perl_provides}
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
|
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
|
||||||
@ -54,23 +46,25 @@ find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
|
|||||||
find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';'
|
find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';'
|
||||||
chmod -R u+w $RPM_BUILD_ROOT/*
|
chmod -R u+w $RPM_BUILD_ROOT/*
|
||||||
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
make test
|
make test
|
||||||
|
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%doc Changes README TODO htmltree
|
%doc Changes README TODO htmltree
|
||||||
%{perl_vendorlib}/HTML
|
%{perl_vendorlib}/HTML
|
||||||
%{_mandir}/man3/HTML::*3*
|
%{_mandir}/man3/HTML::*3*
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sun Aug 26 2007 Tom "spot" Callaway <tcallawa@redhat.com> 3.23-2
|
||||||
|
- license tag fix
|
||||||
|
|
||||||
|
* Wed Jan 17 2007 Tom "spot" Callaway <tcallawa@redhat.com> 3.23-1
|
||||||
|
- bump to 3.23
|
||||||
|
|
||||||
* Fri Sep 15 2006 Tom "spot" Callaway <tcallawa@redhat.com> 3.21-1
|
* Fri Sep 15 2006 Tom "spot" Callaway <tcallawa@redhat.com> 3.21-1
|
||||||
- bump to 3.21
|
- bump to 3.21
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user