Chris Weyl a50715c
Name:           perl-Net-CUPS
Chris Weyl e7a8c26
Version:        0.59
Chris Weyl 3ad94a1
Release:        2%{?dist}
Chris Weyl a50715c
Summary:        Perl bindings to the CUPS C API Interface
Chris Weyl 72b0987
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 3ad94a1
Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
Chris Weyl 3ad94a1
Chris Weyl 3ad94a1
# non-perl
Chris Weyl 3ad94a1
BuildRequires:  cups-devel 
Chris Weyl 3ad94a1
Chris Weyl 3ad94a1
# perl
Chris Weyl 72b0987
BuildRequires:  perl(ExtUtils::MakeMaker)
Chris Weyl 72b0987
BuildRequires:  perl(Test::More)
Chris Weyl 3ad94a1
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 72b0987
find . -type f -exec chmod -c -x {} +
Chris Weyl 72b0987
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 67ac406
find %{buildroot} -type f -name .packlist -exec rm -f {} + 
Chris Weyl 67ac406
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 67ac406
# not much in the way of examples, so let's throw in the tests.
Chris Weyl 67ac406
%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 e7a8c26
* Sat Jan 10 2009 Chris Weyl <cweyl@alumni.drew.edu> 0.59-2
Chris Weyl e7a8c26
- ...and finish cleaning up
Chris Weyl e7a8c26
Chris Weyl e7a8c26
* Sat Jan 10 2009 Chris Weyl <cweyl@alumni.drew.edu> 0.59-1
Chris Weyl e7a8c26
- update to 0.59
Chris Weyl e7a8c26
- drop some fixes that have been applied upstream (RHBZ#455190, RHBZ#455192,
Chris Weyl e7a8c26
  RT#35966)
Chris Weyl e7a8c26
Chris Weyl 3ad94a1
* Sun Jul 13 2008 Chris Weyl <cweyl@alumni.drew.edu> 0.56-2
Chris Weyl 3ad94a1
- and remove i18n.h from CUPS.xs.  See bz#455190
Chris Weyl 3ad94a1
- add zlib-devel as a BR.  See bz#455192
Chris Weyl 3ad94a1
- patch t/03_destination.t to not test add/remove functionality -- this is an
Chris Weyl 3ad94a1
  admin action under Fedora, if memory serves
Chris Weyl 3ad94a1
Chris Weyl 3ad94a1
* Sun Jul 13 2008 Chris Weyl <cweyl@alumni.drew.edu> 0.56-1
Chris Weyl 3ad94a1
- update to 0.56
Chris Weyl 3ad94a1
8ba22af
* Thu Mar 06 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.55-4
Chris Weyl e7a8c26
- Rebuild for new perl
8ba22af
95f12ad
* Mon Feb 18 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.55-3
95f12ad
- Autorebuild for GCC 4.3
95f12ad
Chris Weyl 72b0987
* Wed Jan 02 2008 Ralf Cors├ępius <rc040203@freenet.de> 0.55-2
Chris Weyl 72b0987
- Adjust Licence-tag.
Chris Weyl 72b0987
- Spec file cosmetics.
Chris Weyl 72b0987
- BR: perl(Test::More) (BZ 419631).
Chris Weyl 72b0987
Chris Weyl 67ac406
* Tue Dec 04 2007 Chris Weyl <cweyl@alumni.drew.edu> 0.55-1
Chris Weyl 67ac406
- update to 0.55
Chris Weyl 67ac406
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.