File perl-Filter.spec of Package perl-Filter

#
# spec file for package perl-Filter (Version 1.37)
#
# Copyright (c) 2009 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/
#

# norootforbuild


Name:           perl-Filter
Version:        1.37
Release:        1
Requires:       perl = %{perl_version}
AutoReqProv:    on
Group:          Development/Libraries/Perl
License:        Artistic License ..
Url:            http://cpan.org/modules/by-module/Filter/
Summary:        Source Filters
Source:         Filter-%{version}.tar.bz2
Patch0:         Filter-%{version}.diff
Patch1:         Filter-%{version}-Call.diff
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%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.



Authors:
--------
    Paul Marquess <Paul.Marquess@btinternet.com>

%prep
%setup -n Filter-%{version} -q
%patch0
%patch1

%build
rm -f perlfilter.pod
rm -f Call/Makefile.PL
perl Makefile.PL OPTIMIZE="$RPM_OPT_FLAGS -Wall"
make

%check
make test

%install
%perl_make_install
%perl_process_packlist
find -name "*.bak" | xargs rm -rf
find $RPM_BUILD_ROOT -name "*.bak" | xargs rm -rf

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-, root, root)
%doc Changes README examples
%doc %{_mandir}/man?/*
%{perl_vendorarch}/auto/Filter/
%{perl_vendorarch}/Filter/
%{perl_vendorarch}/filter-util.pl
/var/adm/perl-modules/%{name}

%changelog
openSUSE Build Service is sponsored by