parent
196256ef40
commit
d03617eebf
@ -0,0 +1,21 @@
|
|||||||
|
# Makefile for source rpm: perl-XML-Writer
|
||||||
|
# $Id$
|
||||||
|
NAME := perl-XML-Writer
|
||||||
|
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)
|
@ -0,0 +1,73 @@
|
|||||||
|
Name: perl-XML-Writer
|
||||||
|
Version: 0.602
|
||||||
|
Release: 3%{?dist}
|
||||||
|
Summary: A simple Perl module for writing XML documents
|
||||||
|
|
||||||
|
Group: Development/Libraries
|
||||||
|
License: GPL or Artistic
|
||||||
|
URL: http://search.cpan.org/dist/XML-Writer/
|
||||||
|
Source0: http://www.cpan.org/authors/id/J/JO/JOSEPHW/XML-Writer-0.602.tar.gz
|
||||||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
|
|
||||||
|
BuildArch: noarch
|
||||||
|
BuildRequires: perl(Test::Pod)
|
||||||
|
BuildRequires: perl(Test::Pod::Coverage)
|
||||||
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
||||||
|
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
||||||
|
|
||||||
|
%description
|
||||||
|
XML::Writer is a simple Perl module for writing XML documents: it
|
||||||
|
takes care of constructing markup and escaping data correctly, and by
|
||||||
|
default, it also performs a significant amount of well-formedness
|
||||||
|
checking on the output, to make certain (for example) that start and
|
||||||
|
end tags match, that there is exactly one document element, and that
|
||||||
|
there are not duplicate attribute names.
|
||||||
|
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q -n XML-Writer-%{version}
|
||||||
|
|
||||||
|
|
||||||
|
%build
|
||||||
|
%{__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 -a \( -name .packlist \
|
||||||
|
-o \( -name '*.bs' -a -empty \) \) -exec rm -f {} ';'
|
||||||
|
find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';'
|
||||||
|
|
||||||
|
|
||||||
|
%check
|
||||||
|
make test
|
||||||
|
|
||||||
|
|
||||||
|
%clean
|
||||||
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
|
||||||
|
|
||||||
|
%files
|
||||||
|
%defattr(-,root,root,-)
|
||||||
|
%doc Changes README TODO
|
||||||
|
%{perl_vendorlib}/*
|
||||||
|
%{_mandir}/man3/*.3*
|
||||||
|
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Mon Mar 26 2007 Alex Lancaster <alexl@users.sourceforge.net> 0.602-3
|
||||||
|
- Fixed %check
|
||||||
|
|
||||||
|
* Wed Mar 23 2007 Alex Lancaster <alexl@users.sourceforge.net> 0.602-2
|
||||||
|
- Update BR as per suggestions from review by Ralf Corsepius
|
||||||
|
|
||||||
|
* Wed Mar 23 2007 Alex Lancaster <alexl@users.sourceforge.net> 0.602-1
|
||||||
|
- Update to 0.602
|
||||||
|
|
||||||
|
* Wed Apr 06 2005 Hunter Matthews <thm@duke.edu> 0.531-1
|
||||||
|
- Review suggestions from José Pedro Oliveira
|
||||||
|
|
||||||
|
* Tue Mar 22 2005 Hunter Matthews <thm@duke.edu> 0.531-1
|
||||||
|
- Initial build.
|
Loading…
Reference in new issue