Build splix with JBIG1 support and install DRV files instead of PPD files.
This commit is contained in:
parent
f0889b8d90
commit
8c016e7a61
33
splix.spec
33
splix.spec
@ -19,15 +19,15 @@ Patch0: splix-deviceID.patch
|
|||||||
|
|
||||||
Requires: cups
|
Requires: cups
|
||||||
|
|
||||||
# PPD re-compilation
|
|
||||||
BuildRequires: cups, recode
|
|
||||||
|
|
||||||
# _cups_serverbin macro
|
# _cups_serverbin macro
|
||||||
BuildRequires: cups-devel
|
BuildRequires: cups-devel
|
||||||
|
|
||||||
# postscriptdriver tags
|
# postscriptdriver tags
|
||||||
BuildRequires: python-cups
|
BuildRequires: python-cups
|
||||||
|
|
||||||
|
# JBIG1 lossless image compression
|
||||||
|
BuildRequires: jbigkit-devel
|
||||||
|
|
||||||
%description
|
%description
|
||||||
This driver is usable by all printer devices which understand the QPDL
|
This driver is usable by all printer devices which understand the QPDL
|
||||||
(Quick Page Description Language) also known as SPL2 (Samsung Printer Language)
|
(Quick Page Description Language) also known as SPL2 (Samsung Printer Language)
|
||||||
@ -47,34 +47,18 @@ make distclean
|
|||||||
popd
|
popd
|
||||||
|
|
||||||
%build
|
%build
|
||||||
# The situation is that we can't ship jbigkit (JBIG1 implementation) in Fedora
|
|
||||||
# because of one known patent. It can be found in rpmfusion-free repository.
|
|
||||||
# DISABLE_JBIG=1 prevents splix from building against jbigkit and also from
|
|
||||||
# installing PPD files for printers that require JBIG1 support.
|
|
||||||
#
|
|
||||||
# Luckily JBIG1 will be free of known patents in all countries from
|
|
||||||
# 2012-04-04 onwards. (http://www.cl.cam.ac.uk/~mgk25/jbigkit/patents/)
|
|
||||||
# So once jbigkit is in Fedora we could do the following with this spec:
|
|
||||||
# - remove DISABLE_JBIG=1
|
|
||||||
# - replace 'make ppd' with 'make drv'
|
|
||||||
# - remove cups and recode from BuildRequires
|
|
||||||
# - add 'DRV_ONLY=1 CUPSDRV=%{_datadir}/cups/drv/splix' to make install
|
|
||||||
# That will result in building splix with JBIG1 support and also
|
|
||||||
# installing DRV files instead of only selected set of PPD files.
|
|
||||||
|
|
||||||
pushd ppd
|
pushd ppd
|
||||||
make ppd
|
make drv
|
||||||
popd
|
popd
|
||||||
|
|
||||||
DISABLE_JBIG=1 \
|
|
||||||
V=1 \
|
V=1 \
|
||||||
|
DRV_ONLY=1 \
|
||||||
CXXFLAGS="%{optflags} -fno-strict-aliasing" \
|
CXXFLAGS="%{optflags} -fno-strict-aliasing" \
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
DISABLE_JBIG=1 \
|
DRV_ONLY=1 \
|
||||||
CUPSPPD=%{_datadir}/cups/model/splix \
|
CUPSDRV=%{_datadir}/cups/drv/splix \
|
||||||
DESTDIR=%{buildroot} \
|
DESTDIR=%{buildroot} \
|
||||||
make install
|
make install
|
||||||
|
|
||||||
@ -82,11 +66,12 @@ make install
|
|||||||
%doc COPYING AUTHORS ChangeLog THANKS
|
%doc COPYING AUTHORS ChangeLog THANKS
|
||||||
%{_cups_serverbin}/filter/pstoqpdl
|
%{_cups_serverbin}/filter/pstoqpdl
|
||||||
%{_cups_serverbin}/filter/rastertoqpdl
|
%{_cups_serverbin}/filter/rastertoqpdl
|
||||||
%{_datadir}/cups/model/splix/
|
%{_datadir}/cups/drv/splix/
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Thu Apr 19 2012 Jiri Popelka <jpopelka@redhat.com> - 2.0.1-0.9.20120419svn
|
* Thu Apr 19 2012 Jiri Popelka <jpopelka@redhat.com> - 2.0.1-0.9.20120419svn
|
||||||
- Latest upstream snapshot: all patches and changes merged upstream !
|
- Latest upstream snapshot: all patches and changes merged upstream !
|
||||||
|
- Build splix with JBIG1 support and install DRV files instead of PPD files.
|
||||||
|
|
||||||
* Wed Jan 18 2012 Jiri Popelka <jpopelka@redhat.com> - 2.0.1-0.8.20111121svn
|
* Wed Jan 18 2012 Jiri Popelka <jpopelka@redhat.com> - 2.0.1-0.8.20111121svn
|
||||||
- Add Device ID for Samsung ML-1660.
|
- Add Device ID for Samsung ML-1660.
|
||||||
|
Loading…
Reference in New Issue
Block a user