Sophie

Sophie

distrib > Mageia > cauldron > x86_64 > by-pkgid > 2a75ac378779c53bb5d6e0e77e8e06b8 > files > 1

cups-drivers-lbp660-0.3.1-14.mga9.src.rpm

%define rname lbp660

Summary:	Linux Canon LBP-460/660 driver
Name:		cups-drivers-%{rname}
Version:	0.3.1
Release:	%mkrel 14
License:	GPL
Group:		System/Printing
URL:		http://www.boichat.ch/nicolas/lbp660/
Source0:	http://www.boichat.ch/nicolas/lbp660/lbp660-%{version}.tar.gz
Patch0:		lbp660-0.3.1-ldflags.patch
Patch1:		lbp660-0.3.1-gcc7.patch
Requires:	cups
Conflicts:	cups-drivers = 2007
Conflicts:	printer-utils = 2007
Conflicts:	printer-filters = 2007
ExclusiveArch:	%{ix86} x86_64

%description
In this package there is a linux driver for the Canon LBP-660 and
LBP-460 printers.

This package contains CUPS drivers (PPD) for the following printers:

 o Canon-LBP-460
 o Canon-LBP-660

%prep

%setup -q -n %{rname}-%{version}
%autopatch -p1

%build

%make_build CFLAGS="%{optflags}" LDFLAGS="%{ldflags}"

# Correct PPD files to pass "cupstestppd"
perl -p -i -e "s/DefaultNoReset/DefaultAlwaysReset/" ppd/*.ppd

# Do not generate a log file with fixed name, security problem!
perl -p -i -e "s:/tmp/lbp.60.log:/dev/null:" ppd/*.ppd

%install
install -d %{buildroot}%{_bindir}
install -d %{buildroot}%{_datadir}/cups/model/%{rname}

install -m0755 lbp[46]60 %{buildroot}%{_bindir}/
install -m0755 lbp[46]60-* %{buildroot}%{_bindir}/
install -m0644 ppd/*.ppd %{buildroot}%{_datadir}/cups/model/%{rname}/

%files
%defattr(0644,root,root,0755)
%doc COPYING NEWS README THANKS TODO
# "%{rname}" talks directly to the parallel port I/O 0x378, not to /dev/lp0
# Therefore SUID "root" is needed. Program only executable by "lp" & "root"
# (group-executable).
%attr(4750,root,sys) %{_bindir}/%{rname}
%attr(4750,root,sys) %{_bindir}/lbp460
%attr(0755,root,root) %{_bindir}/lbp[46]60-*
%attr(0755,root,root) %dir %{_datadir}/cups/model/%{rname}
%attr(0644,root,root) %{_datadir}/cups/model/%{rname}/Canon-LBP-460-lbp460.ppd*
%attr(0644,root,root) %{_datadir}/cups/model/%{rname}/Canon-LBP-660-%{rname}.ppd*




%changelog
* Mon Mar 14 2022 umeabot <umeabot> 0.3.1-14.mga9
+ Revision: 1791773
- Mageia 9 Mass Rebuild

* Wed Feb 12 2020 umeabot <umeabot> 0.3.1-13.mga8
+ Revision: 1511771
- Mageia 8 Mass Rebuild

* Sun Sep 23 2018 umeabot <umeabot> 0.3.1-12.mga7
+ Revision: 1297359
- Mageia 7 Mass Rebuild

* Thu Sep 28 2017 cjw <cjw> 0.3.1-11.mga7
+ Revision: 1160899
- patch1: fix build with gcc 7

* Fri Feb 05 2016 umeabot <umeabot> 0.3.1-10.mga6
+ Revision: 937858
- Mageia 6 Mass Rebuild

* Wed Oct 15 2014 umeabot <umeabot> 0.3.1-9.mga5
+ Revision: 743092
- Second Mageia 5 Mass Rebuild

* Tue Sep 16 2014 umeabot <umeabot> 0.3.1-8.mga5
+ Revision: 678623
- Mageia 5 Mass Rebuild

* Fri Oct 18 2013 umeabot <umeabot> 0.3.1-7.mga4
+ Revision: 503626
- Mageia 4 Mass Rebuild

* Fri Jan 11 2013 umeabot <umeabot> 0.3.1-6.mga3
+ Revision: 348452
- Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild

* Wed Feb 23 2011 ennael <ennael> 0.3.1-5.mga1
+ Revision: 57702
- imported package cups-drivers-lbp660


* Tue Nov 30 2010 Oden Eriksson <oeriksson@mandriva.com> 0.3.1-5mdv2011.0
+ Revision: 603869
- rebuild

* Sun Mar 14 2010 Oden Eriksson <oeriksson@mandriva.com> 0.3.1-4mdv2010.1
+ Revision: 518841
- rebuild

* Thu Sep 24 2009 Olivier Blin <oblin@mandriva.com> 0.3.1-3mdv2010.0
+ Revision: 448233
- build on x86-only because using x86 specific stuff
  (from Arnaud Patard)

* Sun Aug 09 2009 Oden Eriksson <oeriksson@mandriva.com> 0.3.1-2mdv2010.0
+ Revision: 413285
- rebuild

* Sun Mar 22 2009 Herton Ronaldo Krzesinski <herton@mandriva.com.br> 0.3.1-1mdv2009.1
+ Revision: 360162
- Updated to version 0.3.1
- Redid ldflags patch.

* Tue Dec 23 2008 Oden Eriksson <oeriksson@mandriva.com> 0.2.4-7mdv2009.1
+ Revision: 318066
- use %%ldflags

* Mon Jun 16 2008 Thierry Vignaud <tv@mandriva.org> 0.2.4-6mdv2009.0
+ Revision: 220529
- rebuild

* Fri Jan 11 2008 Thierry Vignaud <tv@mandriva.org> 0.2.4-5mdv2008.1
+ Revision: 149146
- rebuild
- kill re-definition of %%buildroot on Pixel's request

  + Olivier Blin <oblin@mandriva.com>
    - restore BuildRoot

* Thu Aug 30 2007 Oden Eriksson <oeriksson@mandriva.com> 0.2.4-4mdv2008.0
+ Revision: 75326
- fix deps (pixel)

* Wed Aug 22 2007 Thierry Vignaud <tv@mandriva.org> 0.2.4-3mdv2008.0
+ Revision: 69006
- fix description

* Thu Aug 16 2007 Oden Eriksson <oeriksson@mandriva.com> 0.2.4-2mdv2008.0
+ Revision: 64147
- use the new System/Printing RPM GROUP

* Mon Aug 13 2007 Oden Eriksson <oeriksson@mandriva.com> 0.2.4-1mdv2008.0
+ Revision: 62504
- Import cups-drivers-lbp660



* Mon Aug 13 2007 Oden Eriksson <oeriksson@mandriva.com> 0.2.4-1mdv2008.0
- initial Mandriva package