Files
perl-Filter/perl-Filter.spec

76 lines
2.3 KiB
RPMSpec
Raw Normal View History

#
# spec file for package perl-Filter
#
# 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-Filter
Version: 1.43
Release: 2
License: GPL-1.0+ or Artistic-1.0
Summary: Perl Source Filter Utility Module
Url: http://search.cpan.org/dist/Filter/
Group: Development/Libraries/Perl
Source: Filter-%{version}.tar.gz
# PATCH-MISSING-TAG -- See http://wiki.opensuse.org/openSUSE:Packaging_Patches_guidelines
Patch0: Filter-1.37.diff
# PATCH-MISSING-TAG -- See http://wiki.opensuse.org/openSUSE:Packaging_Patches_guidelines
Patch1: Filter-1.37-Call.diff
BuildRequires: perl
BuildRequires: perl-macros
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%{perl_requires}
%description
This package consists of a number of Source Filters. For more details
see the pod documentation embedded in the .pm files.
If you intend using the Filter::Call functionality, I would strongly
recommend that you check out Damian Conway's excellent Filter::Simple
module. This module provides a much cleaner interface than
Filter::Util::Call. Although it doesn't allow the fine control that
Filter::Util::Call does, it should be adequate for the majority of
applications.
%prep
%setup -q -n Filter-%{version}
%patch0
%patch1
%build
#rm -f perlfilter.pod
#rm -f Call/Makefile.PL
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags} -Wall"
make %{?_smp_mflags}
%check
make test
%install
%perl_make_install
%perl_process_packlist
find examples -name "*.bak" | xargs rm -rf
%perl_gen_filelist
%clean
rm -rf %{buildroot}
%files -f %{name}.files
%defattr(-, root, root)
%doc Changes README examples
%changelog