Chris Weyl a50715c
Name:           perl-Net-CUPS
Chris Weyl 0d3bf9f
Version:        0.55
Chris Weyl 0d3bf9f
Release:        2%{?dist}
Chris Weyl a50715c
Summary:        Perl bindings to the CUPS C API Interface
Chris Weyl 0d3bf9f
License:        GPL+ or Artistic
Chris Weyl a50715c
Group:          Development/Libraries
Chris Weyl a50715c
URL:            http://search.cpan.org/dist/Net-CUPS/
Chris Weyl a50715c
Source0:        http://www.cpan.org/authors/id/D/DH/DHAGEMAN/Net-CUPS-%{version}.tar.gz
Chris Weyl a50715c
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Chris Weyl 0d3bf9f
BuildRequires:  perl(ExtUtils::MakeMaker)
Chris Weyl 0d3bf9f
BuildRequires:  perl(Test::More)
Chris Weyl a50715c
BuildRequires:  cups-devel 
Chris Weyl a50715c
Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
Chris Weyl a50715c
Chris Weyl a50715c
%description
Chris Weyl a50715c
Net::CUPS is an interface to the Common Unix Printing System API.  If you feel
Chris Weyl a50715c
an urge to control CUPS servers via perl, this is a good way to do it :)
Chris Weyl a50715c
Chris Weyl a50715c
%prep
Chris Weyl a50715c
%setup -q -n Net-CUPS-%{version}
Chris Weyl a50715c
Chris Weyl 0d3bf9f
find . -type f -exec chmod -c -x {} +
Chris Weyl 0d3bf9f
Chris Weyl a50715c
%build
Chris Weyl a50715c
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
Chris Weyl a50715c
make %{?_smp_mflags}
Chris Weyl a50715c
Chris Weyl a50715c
%install
Chris Weyl a50715c
rm -rf %{buildroot}
Chris Weyl a50715c
Chris Weyl a50715c
make pure_install PERL_INSTALL_ROOT=%{buildroot}
Chris Weyl a50715c
Chris Weyl 0d3bf9f
find %{buildroot} -type f -name .packlist -exec rm -f {} + 
Chris Weyl 0d3bf9f
find %{buildroot} -type f -name '*.bs' -size 0 -exec rm -f {} +
Chris Weyl a50715c
find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;
Chris Weyl a50715c
Chris Weyl a50715c
%{_fixperms} %{buildroot}/*
Chris Weyl a50715c
Chris Weyl a50715c
%check
Chris Weyl a50715c
make test
Chris Weyl a50715c
Chris Weyl a50715c
%clean
Chris Weyl a50715c
rm -rf %{buildroot}
Chris Weyl a50715c
Chris Weyl a50715c
%files
Chris Weyl a50715c
%defattr(-,root,root,-)
Chris Weyl 0d3bf9f
# not much in the way of examples, so let's throw in the tests.
Chris Weyl 0d3bf9f
%doc Changes README TODO t/ examples/
Chris Weyl a50715c
%{perl_vendorarch}/auto/*
Chris Weyl a50715c
%{perl_vendorarch}/Net*
Chris Weyl a50715c
%{_mandir}/man3/*
Chris Weyl a50715c
Chris Weyl a50715c
%changelog
Chris Weyl 0d3bf9f
* Wed Jan 02 2008 Ralf Cors├ępius <rc040203@freenet.de> 0.55-2
Chris Weyl 0d3bf9f
- Adjust Licence-tag.
Chris Weyl 0d3bf9f
- Spec file cosmetics.
Chris Weyl 0d3bf9f
- BR: perl(Test::More) (BZ 419631).
Chris Weyl 0d3bf9f
Chris Weyl 0d3bf9f
* Tue Dec 04 2007 Chris Weyl <cweyl@alumni.drew.edu> 0.55-1
Chris Weyl 0d3bf9f
- update to 0.55
Chris Weyl 0d3bf9f
Chris Weyl c64baa7
* Tue Aug 21 2007 Chris Weyl <cweyl@alumni.drew.edu> 0.51-3
Chris Weyl c64baa7
- bump
Chris Weyl c64baa7
Chris Weyl 7720ec0
* Wed Mar 21 2007 Chris Weyl <cweyl@alumni.drew.edu> 0.51-2
Chris Weyl 7720ec0
- bump
Chris Weyl 7720ec0
Chris Weyl a50715c
* Fri Mar 16 2007 Chris Weyl <cweyl@alumni.drew.edu> 0.51-1
Chris Weyl a50715c
- Specfile autogenerated by cpanspec 1.70.