118 lines
3.6 KiB
RPMSpec
118 lines
3.6 KiB
RPMSpec
![]() |
# vim: set sw=4 ts=4 et nu:
|
||
|
|
||
|
Name: perl-XML-Toolkit
|
||
|
Version: 0.10
|
||
|
Release: 0
|
||
|
Summary: Suite of XML tools with Antlers
|
||
|
# http://search.cpan.org/CPAN/authors/id/P/PE/PERIGRIN/XML-Toolkit-%{version}.tar.gz
|
||
|
Source: XML-Toolkit-%{version}.tar.bz2
|
||
|
URL: http://search.cpan.org/dist/XML-Toolkit
|
||
|
Group: Development/Libraries/Perl
|
||
|
License: Perl License
|
||
|
BuildRoot: %{_tmppath}/build-%{name}-%{version}
|
||
|
%{perl_requires}
|
||
|
BuildRequires: perl
|
||
|
BuildRequires: perl-macros
|
||
|
BuildRequires: make
|
||
|
BuildRequires: perl(Test::More) >= 0.94
|
||
|
BuildRequires: perl(Test::Exception)
|
||
|
BuildRequires: perl(Test::Deep)
|
||
|
BuildRequires: perl(Test::XML)
|
||
|
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.42
|
||
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
||
|
BuildRequires: perl(XML::SAX) >= 0.96
|
||
|
BuildRequires: perl(namespace::autoclean)
|
||
|
BuildRequires: perl(aliased)
|
||
|
BuildRequires: perl(Template) >= 2.20
|
||
|
BuildRequires: perl(Bread::Board)
|
||
|
BuildRequires: perl(MooseX::Aliases)
|
||
|
BuildRequires: perl(MooseX::MetaDescription) >= 0.03
|
||
|
BuildRequires: perl(MooseX::Types::Path::Class) >= 0.04
|
||
|
BuildRequires: perl(XML::SAX::Writer) >= 0.50
|
||
|
BuildRequires: perl(Devel::PackagePath) >= 0.01
|
||
|
BuildRequires: perl(Moose) >= 0.92
|
||
|
BuildRequires: perl(MooseX::NonMoose)
|
||
|
Requires: perl(XML::SAX) >= 0.96
|
||
|
Requires: perl(namespace::autoclean)
|
||
|
Requires: perl(aliased)
|
||
|
Requires: perl(Template) >= 2.20
|
||
|
Requires: perl(Bread::Board)
|
||
|
Requires: perl(MooseX::Aliases)
|
||
|
Requires: perl(MooseX::MetaDescription) >= 0.03
|
||
|
Requires: perl(MooseX::Types::Path::Class) >= 0.04
|
||
|
Requires: perl(XML::SAX::Writer) >= 0.50
|
||
|
Requires: perl(Devel::PackagePath) >= 0.01
|
||
|
Requires: perl(Moose) >= 0.92
|
||
|
Requires: perl(MooseX::NonMoose)
|
||
|
|
||
|
%description
|
||
|
XML::Toolkit is a suite of tools that work to make handling XML easier. It
|
||
|
is designed to marshall XML documents into Moose classes and back again
|
||
|
with minimal changes.
|
||
|
|
||
|
The original intention of XML::Toolkit was to round-trip XML documents
|
||
|
with an unkonwn schema through an editor and back out to disk with very
|
||
|
few semantic or structural changes.
|
||
|
|
||
|
%package -n xmltk
|
||
|
Summary: Suite of XML tools as a command line tool
|
||
|
Group: Productivity/Publishing/XML
|
||
|
Requires: %{name} = %{version}
|
||
|
%if 0%{?suse_version} >= 1120
|
||
|
BuildArch: noarch
|
||
|
%endif
|
||
|
|
||
|
%description -n xmltk
|
||
|
XML::Toolkit is a suite of tools that work to make handling XML easier. It
|
||
|
is designed to marshall XML documents into Moose classes and back again
|
||
|
with minimal changes.
|
||
|
|
||
|
The original intention of XML::Toolkit was to round-trip XML documents
|
||
|
with an unkonwn schema through an editor and back out to disk with very
|
||
|
few semantic or structural changes.
|
||
|
|
||
|
This package contains xmltk, a command line frontend to XML::Toolkit.
|
||
|
|
||
|
%prep
|
||
|
%setup -q -n "XML-Toolkit-%{version}"
|
||
|
%__sed -i '/^auto_install/d' Makefile.PL
|
||
|
|
||
|
%build
|
||
|
%__perl Makefile.PL PREFIX="%{_prefix}"
|
||
|
%__make %{?jobs:-j%{jobs}}
|
||
|
|
||
|
%install
|
||
|
%perl_make_install
|
||
|
%perl_process_packlist
|
||
|
|
||
|
mkdir .rpmdoc
|
||
|
for f in Changes; do
|
||
|
%__ln_s -f ../%{name}/$f .rpmdoc/$f
|
||
|
done
|
||
|
|
||
|
%check
|
||
|
%__make test
|
||
|
|
||
|
%clean
|
||
|
%{?buildroot:%__rm -rf "%{buildroot}"}
|
||
|
|
||
|
%files
|
||
|
%defattr(-,root,root)
|
||
|
%doc Changes
|
||
|
%dir %{perl_vendorlib}/XML
|
||
|
%{perl_vendorlib}/XML/Toolkit.pm
|
||
|
%{perl_vendorlib}/XML/Toolkit
|
||
|
%dir %{perl_vendorlib}/XML/Filter
|
||
|
%{perl_vendorlib}/XML/Filter/Moose.pm
|
||
|
%dir %{perl_vendorlib}/XML/Generator
|
||
|
%{perl_vendorlib}/XML/Generator/Moose.pm
|
||
|
%dir %{perl_vendorarch}/auto/XML
|
||
|
%{perl_vendorarch}/auto/XML/Toolkit
|
||
|
%doc %{perl_man3dir}/XML::*.%{perl_man3ext}%{ext_man}
|
||
|
|
||
|
%files -n xmltk
|
||
|
%defattr(-,root,root)
|
||
|
%doc .rpmdoc/*
|
||
|
%{_bindir}/xmltk
|
||
|
|