File cupsddk.spec of Package cupsddk
#
# spec file for package cupsddk (Version 1.2.3)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: cupsddk
BuildRequires: cups cups-devel gcc-c++ libpng-devel libtiff-devel openssl-devel
License: GPL v2 or later
Group: Hardware/Printing
Requires: cups, cups-devel, cups-libs
Version: 1.2.3
Release: 65
Url: http://www.cups.org/ddk.php
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Summary: CUPS Driver Development Kit
PreReq: %insserv_prereq %fillup_prereq
Source0: ftp://ftp.easysw.com/pub/cupsddk/1.0/%{name}-%{version}-source.tar.bz2
Patch0: %{name}-1.0.1-nostrip_install.patch
Patch1: %{name}-1.2.3-nostatic_libcups.patch
%description
The CUPS Driver Development Kit (DDK) provides a suite of standard
drivers, a PPD file compiler, and other utilities that can be used to
develop printer drivers for CUPS and other printing environments. CUPS
provides a portable printing layer for UNIX(r)-based operating systems.
The CUPS DDK provides the means for mass-producing PPD files and
drivers or filters for CUPS-based printer drivers.
Authors:
--------
Easy Software Products <cups@cups.org>
%prep
%setup
%patch0
%patch1 -p1
%build
CFLAGS="$RPM_OPT_FLAGS" \
CXXFLAGS="$RPM_OPT_FLAGS" \
LDFLAGS="$RPM_OPT_FLAGS" \
./configure \
--libdir=%{_libdir} \
--disable-static \
--with-docdir=%{_defaultdocdir}/%{name}
make
# fix link in HTML
perl -pi -e 's;images/ddk-large.png;ddk-large.png;' doc/cupsddk.html
%install
make DESTDIR=$RPM_BUILD_ROOT BUILDROOT=$RPM_BUILD_ROOT install
# remove installed, but unpackaged files:
rm -rf $RPM_BUILD_ROOT/%{_mandir}/cat*
rm -rf $RPM_BUILD_ROOT/usr/share/doc/cupsddk
# documentation...
cp -a LICENSE.txt $RPM_BUILD_ROOT/%{_defaultdocdir}/%{name}
cp -a README.txt $RPM_BUILD_ROOT/%{_defaultdocdir}/%{name}
cp -a CHANGES.txt $RPM_BUILD_ROOT/%{_defaultdocdir}/%{name}
cp -a LICENSE.html $RPM_BUILD_ROOT/%{_defaultdocdir}/%{name}
cp -a doc/cupsddk.pdf $RPM_BUILD_ROOT/%{_defaultdocdir}/%{name}
cp -a doc/cupsddk.html $RPM_BUILD_ROOT/%{_defaultdocdir}/%{name}
cp -a doc/images/ddk-large.png $RPM_BUILD_ROOT/%{_defaultdocdir}/%{name}
%clean
# Clear up the mess
[ "$RPM_BUILD_ROOT" != "" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT;
%files
%defattr(-, root, root)
%{_bindir}/*
%{_libdir}/cups/filter/*
%{_includedir}/cups/driver.h
%dir /usr/share/cupsddk
%dir %{_libdir}/cups/driver
%dir %{_libdir}/cups/driver/drv
/usr/share/cupsddk/*
%doc %{_mandir}/man5/*
%doc %{_mandir}/man1/*
%doc %{_defaultdocdir}/%{name}
%changelog
* Mon Apr 14 2008 kssingvo@suse.de
- unhandsome fix for broken static linker
- renamed first patch
* Mon Oct 15 2007 kssingvo@suse.de
- update to version 1.2.3:
* fixes a number of issues in the PPD compiler
* fixes some localization bugs in the PPD compiler
* adds a missing file from the previous release
* Mon Jul 30 2007 kssingvo@suse.de
- update to version 1.2.0:
* The DDK is now owned and licensed by Apple Inc.
* Added many new and updated message catalogs for the default
localization strings.
* The ppdc utility did not generate localized PageSize,
InputSlot, or MediaType options.
* The ppdpo utility incorrectly included the copyright text in
the .po file.
* The ppdc utility incorrectly included two copies of the
<font.defs> file.
* The ppdc utility did not allow you to override the cupsVersion
attribute.
* The ppdmerge utility now recognizes "Korean" as a
LanguageVersion.
* The ppdmerge utility incorrectly used "cn" for the Chinese
locale.
* Tue Apr 03 2007 kssingvo@suse.de
- update to version 1.1.1:
* The ppdmerge utility incorrectly used "jp" for the Japanese locale
* Mon Feb 19 2007 kssingvo@suse.de
- updated to version 1.1.0:
* The ppdpo utility no longer includes the LanguageEncoding or
LanguageVersion strings
* The PPD compiler now provides a -D option to set variables from
the command-line
* If the PCFileName uses a lowercase ".ppd" extension, the PPD
compiler will not convert the entire filename to lowercase
* Added the ppdmerge utility.
* The "dymo" driver has been renamed to "label", which is the
name used in CUPS 1.2 and higher.
* The PPD compiler now supports generation of compressed PPD
files.
* The PPD compiler now supports generation of PPD files with line
endings other than just a line feed.
* The PPD compiler now supports generation of globalized
(multi-language) PPD files.
* Fixed the MacOS X Universal Binary support.
* The drivers now have their own man pages.
* The drivers are now bundled in a separate "cupsddk-drivers"
package to allow vendors to provide the drivers separate from
the developer kit.
- adapted file list, removed unnecessary strlcat patch, etc.
* Thu Jul 13 2006 kssingvo@suse.de
- fixed problem with new library symbols in cups-libs-1.2.1
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Wed Jan 18 2006 schwab@suse.de
- Don't strip binaries.
* Tue Jul 26 2005 kssingvo@suse.de
- upgrade to 1.0.1
* Wed Apr 28 2004 kssingvo@suse.de
- 1.0 final release today (no changes to rc2)
* Tue Apr 27 2004 kssingvo@suse.de
- upgrade to version 1.0rc2
* Mon Mar 15 2004 kssingvo@suse.de
- first shot