2010-06-18 14:12:23 +00:00
|
|
|
#
|
2012-02-20 12:32:00 +00:00
|
|
|
# spec file for package perl-Filter
|
2010-06-18 14:12:23 +00:00
|
|
|
#
|
2012-02-20 12:32:00 +00:00
|
|
|
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2010-06-18 14:12:23 +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.
|
|
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Name: perl-Filter
|
2012-02-22 08:27:32 +00:00
|
|
|
Version: 1.43
|
2010-06-18 14:12:23 +00:00
|
|
|
Release: 2
|
2012-02-20 12:32:00 +00:00
|
|
|
License: GPL-1.0+ or Artistic-1.0
|
|
|
|
|
Summary: Perl Source Filter Utility Module
|
2010-06-18 14:12:23 +00:00
|
|
|
Url: http://search.cpan.org/dist/Filter/
|
2012-02-20 12:32:00 +00:00
|
|
|
Group: Development/Libraries/Perl
|
|
|
|
|
Source: Filter-%{version}.tar.gz
|
|
|
|
|
# PATCH-MISSING-TAG -- See http://wiki.opensuse.org/openSUSE:Packaging_Patches_guidelines
|
2011-04-26 07:59:34 +00:00
|
|
|
Patch0: Filter-1.37.diff
|
2012-02-20 12:32:00 +00:00
|
|
|
# PATCH-MISSING-TAG -- See http://wiki.opensuse.org/openSUSE:Packaging_Patches_guidelines
|
2011-04-26 07:59:34 +00:00
|
|
|
Patch1: Filter-1.37-Call.diff
|
2010-06-18 14:12:23 +00:00
|
|
|
BuildRequires: perl
|
|
|
|
|
BuildRequires: perl-macros
|
2012-02-20 12:32:00 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
%{perl_requires}
|
2010-06-18 14:12:23 +00:00
|
|
|
|
|
|
|
|
%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
|
2012-02-20 12:32:00 +00:00
|
|
|
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags} -Wall"
|
|
|
|
|
make %{?_smp_mflags}
|
2010-06-18 14:12:23 +00:00
|
|
|
|
|
|
|
|
%check
|
2012-02-20 12:32:00 +00:00
|
|
|
make test
|
2010-06-18 14:12:23 +00:00
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%perl_make_install
|
|
|
|
|
%perl_process_packlist
|
|
|
|
|
find examples -name "*.bak" | xargs rm -rf
|
|
|
|
|
%perl_gen_filelist
|
|
|
|
|
|
|
|
|
|
%clean
|
2012-02-20 12:32:00 +00:00
|
|
|
rm -rf %{buildroot}
|
2010-06-18 14:12:23 +00:00
|
|
|
|
|
|
|
|
%files -f %{name}.files
|
|
|
|
|
%defattr(-, root, root)
|
|
|
|
|
%doc Changes README examples
|
|
|
|
|
|
|
|
|
|
%changelog
|