b8a339b5ee
* created by cpanspec 1.78.03 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Pod-Parser?expand=0&rev=1
74 lines
2.3 KiB
RPMSpec
74 lines
2.3 KiB
RPMSpec
#
|
|
# spec file for package perl-Pod-Parser
|
|
#
|
|
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
#
|
|
# 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.
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
Name: perl-Pod-Parser
|
|
Version: 1.51
|
|
Release: 0
|
|
%define cpan_name Pod-Parser
|
|
Summary: Base class for creating POD filters and translators
|
|
License: GPL-1.0+ or Artistic-1.0
|
|
Group: Development/Libraries/Perl
|
|
Url: http://search.cpan.org/dist/Pod-Parser/
|
|
Source: %{cpan_name}-%{version}.tar.gz
|
|
BuildRequires: perl
|
|
BuildRequires: perl-macros
|
|
BuildRequires: perl(Cwd)
|
|
BuildRequires: perl(File::Basename)
|
|
Requires: perl(Cwd)
|
|
Requires: perl(File::Basename)
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
BuildArch: noarch
|
|
%{perl_requires}
|
|
|
|
%description
|
|
*Pod::Parser* is a base class for creating POD filters and translators. It
|
|
handles most of the effort involved with parsing the POD sections from an
|
|
input stream, leaving subclasses free to be concerned only with performing
|
|
the actual translation of text.
|
|
|
|
*Pod::Parser* parses PODs, and makes method calls to handle the various
|
|
components of the POD. Subclasses of *Pod::Parser* override these methods
|
|
to translate the POD into whatever output format they desire.
|
|
|
|
%prep
|
|
%setup -q -n %{cpan_name}-%{version}
|
|
sed -i "s|/usr/local/bin/perl|%{_bindir}/perl|g" scripts/*
|
|
sed -i "s|
|
|
||g" ANNOUNCE CHANGES README TODO
|
|
|
|
%build
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
|
%{__make} %{?_smp_mflags}
|
|
|
|
%check
|
|
%{__make} test
|
|
|
|
%install
|
|
%perl_make_install
|
|
%perl_process_packlist
|
|
%perl_gen_filelist
|
|
|
|
%clean
|
|
%{__rm} -rf %{buildroot}
|
|
|
|
%files -f %{name}.files
|
|
%defattr(644,root,root,755)
|
|
%doc ANNOUNCE CHANGES README TODO
|
|
%attr (755,root,root) %{_bindir}/*
|
|
|
|
%changelog
|