2007-01-15 23:32:19 +00:00
|
|
|
#
|
2011-11-11 11:24:44 +00:00
|
|
|
# spec file for package perl-XML-Writer
|
2007-01-15 23:32:19 +00:00
|
|
|
#
|
2012-01-09 09:24:41 +00:00
|
|
|
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-15 23:32:19 +00:00
|
|
|
#
|
2009-01-19 01:17:56 +00:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2007-01-15 23:32:19 +00:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2010-08-24 15:50:42 +00:00
|
|
|
%bcond_with pod
|
2008-02-29 22:45:31 +00:00
|
|
|
|
2007-01-15 23:32:19 +00:00
|
|
|
Name: perl-XML-Writer
|
2012-01-19 09:16:55 +00:00
|
|
|
Version: 0.615
|
2012-01-09 09:24:41 +00:00
|
|
|
Release: 0
|
2010-08-24 15:50:42 +00:00
|
|
|
%define cpan_name XML-Writer
|
|
|
|
Summary: Perl extension for writing XML documents
|
2011-12-13 14:53:04 +00:00
|
|
|
License: MIT
|
2007-01-15 23:32:19 +00:00
|
|
|
Group: Development/Libraries/Perl
|
2010-08-24 15:50:42 +00:00
|
|
|
Url: http://search.cpan.org/dist/XML-Writer/
|
2012-01-09 09:24:41 +00:00
|
|
|
#Source: http://www.cpan.org/modules/by-module/XML/XML-Writer-%{version}.tar.gz
|
|
|
|
Source: http://search.cpan.org/CPAN/authors/id/J/JO/JOSEPHW/%{cpan_name}-%{version}.tar.gz
|
|
|
|
|
2010-08-24 15:50:42 +00:00
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-macros
|
2012-01-09 09:24:41 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
BuildArch: noarch
|
|
|
|
%{perl_requires}
|
2010-08-24 15:50:42 +00:00
|
|
|
%if %{with pod}
|
|
|
|
BuildRequires: perl(Test::Pod) >= 1.00
|
|
|
|
BuildRequires: perl(Test::Pod::Coverage)
|
|
|
|
%endif
|
2007-01-15 23:32:19 +00:00
|
|
|
|
|
|
|
%description
|
2010-08-24 15:50:42 +00:00
|
|
|
XML::Writer is a helper module for Perl programs that write an XML
|
|
|
|
document. The module handles all escaping for attribute values and
|
2007-01-15 23:32:19 +00:00
|
|
|
character data and constructs different types of markup, such as tags,
|
|
|
|
comments, and processing instructions.
|
|
|
|
|
|
|
|
%prep
|
2010-08-24 15:50:42 +00:00
|
|
|
%setup -q -n %{cpan_name}-%{version}
|
2007-01-15 23:32:19 +00:00
|
|
|
|
|
|
|
%build
|
2012-01-09 09:24:41 +00:00
|
|
|
perl Makefile.PL INSTALLDIRS=vendor
|
|
|
|
make %{?_smp_mflags}
|
2009-01-19 01:17:56 +00:00
|
|
|
|
|
|
|
%check
|
2012-01-09 09:24:41 +00:00
|
|
|
make test
|
2007-01-15 23:32:19 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
%perl_make_install
|
2010-08-24 15:50:42 +00:00
|
|
|
# do not perl_process_packlist (noarch)
|
|
|
|
# remove .packlist file
|
2012-01-09 09:24:41 +00:00
|
|
|
rm -rf %{buildroot}%perl_vendorarch
|
2010-08-24 15:50:42 +00:00
|
|
|
# remove perllocal.pod file
|
2012-01-09 09:24:41 +00:00
|
|
|
rm -rf %{buildroot}%perl_archlib
|
2010-08-24 15:50:42 +00:00
|
|
|
%perl_gen_filelist
|
2007-01-15 23:32:19 +00:00
|
|
|
|
|
|
|
%clean
|
2012-01-09 09:24:41 +00:00
|
|
|
rm -rf %{buildroot}
|
2007-01-15 23:32:19 +00:00
|
|
|
|
2010-08-24 15:50:42 +00:00
|
|
|
%files -f %{name}.files
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc Changes LICENSE README TODO
|
2007-01-15 23:32:19 +00:00
|
|
|
|
2007-07-04 23:26:49 +00:00
|
|
|
%changelog
|