OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-XML-OPML-SimpleGen?expand=0&rev=1
61 lines
1.7 KiB
RPMSpec
61 lines
1.7 KiB
RPMSpec
# vim: set sw=4 ts=4 et nu:
|
|
# norootforbuild
|
|
|
|
Name: perl-XML-OPML-SimpleGen
|
|
Version: 0.04
|
|
Release: 0
|
|
Summary: Create OPML using XML::Simple
|
|
Source: http://search.cpan.org/CPAN/authors/id/S/ST/STEPHENCA/XML-OPML-SimpleGen-%{version}.tar.gz
|
|
URL: http://search.cpan.org/dist/XML-OPML-SimpleGen
|
|
Group: Development/Libraries/Perl
|
|
License: Perl License
|
|
BuildRoot: %{_tmppath}/build-%{name}-%{version}
|
|
Requires: perl = %{perl_version}
|
|
BuildRequires: perl
|
|
BuildRequires: make
|
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
|
BuildRequires: perl(Test::More)
|
|
BuildRequires: perl(version)
|
|
BuildRequires: perl(XML::Simple)
|
|
BuildRequires: perl(Class::Accessor)
|
|
Requires: perl(version)
|
|
Requires: perl(XML::Simple)
|
|
Requires: perl(Class::Accessor)
|
|
|
|
%description
|
|
XML::OPML::SimpleGen lets you simply generate OPML documents without
|
|
having too much to worry about. It is a drop-in replacement for XML::OPML
|
|
in regards of generation. As this module uses XML::Simple it is rather
|
|
generous in regards of attribute or element names.
|
|
|
|
%prep
|
|
%setup -q -n "XML-OPML-SimpleGen-%{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
|
|
|
|
%check
|
|
%__make test
|
|
|
|
%clean
|
|
%{?buildroot:%__rm -rf "%{buildroot}"}
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%doc Changes README
|
|
%dir %{perl_vendorlib}/XML
|
|
%dir %{perl_vendorlib}/XML/OPML
|
|
%{perl_vendorlib}/XML/OPML/SimpleGen.pm
|
|
%dir %{perl_vendorarch}/auto/XML
|
|
%dir %{perl_vendorarch}/auto/XML/OPML
|
|
%{perl_vendorarch}/auto/XML/OPML/SimpleGen
|
|
%doc %{perl_man3dir}/XML::OPML::SimpleGen.%{perl_man3ext}%{ext_man}
|
|
/var/adm/perl-modules/%{name}
|
|
|