%define gettext_package libgnomeprint-2.2 %define doc_license %{nil} %define doc_license 1 %if 0%{?rhel}%{?fedora} %if 0%{?rhel} %if 0%{?rhel} < 7 %define doc_license 0 %endif %else %if 0%{?fedora} < 19 %define doc_license 0 %endif %endif %endif %define license_files COPYING Summary: Printing library for GNOME Name: libgnomeprint22 Version: 2.18.8 Release: 14%{?dist} License: LGPLv2+ and BSD # BSD applies to ttsubset code that was taken from STSF Group: System Environment/Base Source: http://download.gnome.org/sources/libgnomeprint/2.18/libgnomeprint-%{version}.tar.bz2 URL: http://www.gnome.org Patch0: libgnomeprint22-stdio.patch Patch1: libgnomeprint22-2.18.8-bison.patch Patch2: libgnomeprint22-2.18.8-freetype.patch Requires: urw-fonts Requires: ghostscript Requires: ghostscript-fonts BuildRequires: glib2-devel BuildRequires: pango-devel BuildRequires: libxml2-devel BuildRequires: libart_lgpl-devel BuildRequires: libbonobo-devel BuildRequires: freetype BuildRequires: gtk-doc BuildRequires: libgnomecups-devel BuildRequires: fontconfig BuildRequires: cups-devel BuildRequires: intltool BuildRequires: zlib-devel BuildRequires: gnutls-devel BuildRequires: openssl-devel BuildRequires: gettext BuildRequires: bison BuildRequires: flex %description GNOME (GNU Network Object Model Environment) is a user-friendly set of applications and desktop tools to be used in conjunction with a window manager for the X Window System. The gnome-print package contains libraries and fonts needed by GNOME applications for printing. You should install the gnome-print package if you intend to use any of the GNOME applications that can print. If you would like to develop GNOME applications that can print you will also need to install the gnome-print devel package. %package devel Summary: Libraries and include files for developing GNOME printing applications Group: Development/Libraries Requires: %{name} = %{version}-%{release} # for /usr/share/gtk-doc/html Requires: gtk-doc %description devel You should install the gnome-print-devel package if you would like to develop GNOME applications that will use the GNOME print capabilities. You do not need to install the gnome-print-devel package if you just want to use the GNOME desktop environment. %prep %setup -q -n "libgnomeprint-%{version}" %patch0 -p1 -b .stdio %patch1 -p1 -b .bison %patch2 -p1 -b .freetype # Convert to utf-8 for file in NEWS; do iconv -f ISO-8859-1 -t UTF-8 -o "${file}.new" "${file}" && \ touch -r "${file}" "${file}.new" && \ mv "${file}.new" "${file}" done %build %configure --disable-static --disable-gtk-doc sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool %{__make} %{?_smp_mflags} %install make install DESTDIR="%{buildroot}" INSTALL="install -p" find "%{buildroot}" -name '*.la' -exec rm '{}' ';' %find_lang "%{gettext_package}" %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files -f "%{gettext_package}.lang" %defattr(-, root, root, -) %if 0%{?doc_license} %license %{license_files} %else %doc %{license_files} %endif %doc AUTHORS NEWS README %{_libdir}/lib*.so.* %{_libdir}/libgnomeprint/ %{_datadir}/libgnomeprint/ %files devel %defattr(-, root, root, -) %{_libdir}/lib*.so %{_includedir}/* %{_libdir}/pkgconfig/* %{_datadir}/gtk-doc/html/libgnomeprint %changelog * Tue Nov 07 2017 Tomasz Tomasik - 2.18.8-14 - Small SPEC file cleanups - Use license macro - Rebuilt for EL7 * Wed Jun 17 2015 Fedora Release Engineering - 2.18.8-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Sun Aug 17 2014 Fedora Release Engineering - 2.18.8-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild * Wed Jun 11 2014 Marek Kasik - 2.18.8-11 - Fix building with current freetype - Resolves: #1106017 * Tue Jun 10 2014 Marek Kasik - 2.18.8-10 - Fix building with the new bison - Resolves: #1106017 * Sat Jun 07 2014 Fedora Release Engineering - 2.18.8-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Tue Jan 14 2014 Lubomir Rintel - 2.18.8-8 - bonobo-activation has been included in libbonobo and the provide is gone now * Sat Aug 03 2013 Fedora Release Engineering - 2.18.8-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Thu Feb 14 2013 Fedora Release Engineering - 2.18.8-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Thu Jul 19 2012 Fedora Release Engineering - 2.18.8-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Fri Jan 13 2012 Fedora Release Engineering - 2.18.8-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Wed Nov 30 2011 Marek Kasik - 2.18.8-3 - Include stdio.h to have FILE defined in gnome-print-cups-transport.c * Tue Feb 08 2011 Fedora Release Engineering - 2.18.8-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Thu Sep 30 2010 Matthias Clasen - 2.18.8-1 - Update to 2.18.8 * Wed Sep 29 2010 jkeating - 2.18.7-3 - Rebuilt for gcc bug 634757 * Thu Sep 09 2010 Parag Nemade 2.18.7-2 - Merge-review cleanup (#226016) * Wed Mar 31 2010 Matthias Clasen - 2.18.7-1 - Update to 2.18.7 * Fri Jul 24 2009 Fedora Release Engineering - 2.18.6-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Sat Jul 18 2009 Matthias Clasen - 2.18.6-2 - Rebuild * Tue Mar 17 2009 Matthias Clasen - 2.18.6-1 - Update to 2.18.6 * Mon Mar 9 2009 Peter Robinson - 2.18.5-3 - Remove redundent perl dep - RHBZ 489227 * Wed Feb 25 2009 Fedora Release Engineering - 2.18.5-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Mon Sep 22 2008 Matthias Clasen - 2.18.5-1 - Update to 2.18.5 * Wed May 21 2008 Tom "spot" Callaway - 2.18.4-2 - fix license tag * Wed Feb 13 2008 Matthias Clasen - 2.18.4-1 - Update to 2.18.4 * Tue Jan 29 2008 Matthias Clasen - 2.18.3-1 - Update to 2.18.3 * Mon Sep 17 2007 Matthias Clasen - 2.18.2-1 - Update to 2.18.2 * Thu Aug 23 2007 Adam Jackson - 2.18.1-2 - Rebuild for build ID * Sun Jul 8 2007 Matthias Clasen - 2.18.0-3 - Update the license field - Fix a directory ownership issue * Sat Apr 21 2007 Matthias Clasen - 2.18.0-2 - Don't ship .la files - Require pkgconfig in the -devel package * Tue Mar 13 2007 Matthias Clasen - 2.18.0-1 - Update to 2.18.0 * Tue Feb 27 2007 Matthias Clasen - 2.17.92-1 - Update to 2.17.92 * Tue Feb 13 2007 Matthias Clasen - 2.17.91-1 - Update to 2.17.91 * Tue Jan 23 2007 Matthias Clasen - 2.17.90-1 - Update to 2.17.90 * Mon Nov 27 2006 Matthias Clasen - 2.17.0-2 - Fix BuildRequires * Sun Nov 12 2006 Matthias Clasen - 2.17.0-1 - Update to 2.17.0 * Thu Jul 27 2006 Matthias Clasen - 2.12.1-8 - Disable gtk-doc to fix multilib conflicts * Wed Jul 12 2006 Jesse Keating - 2.12.1-7.1 - rebuild * Wed Jun 14 2006 Tomas Mraz - 2.12.1-7 - rebuilt with new gnutls * Mon Jun 12 2006 Bill Nottingham - 2.12.1-6 - buildreq automake, not automake16 - buildreq gettext, bison, flex * Mon May 22 2006 Matthias Clasen - 2.12.1-5 - Add missing BuildRequires * Fri Feb 10 2006 Jesse Keating - 2.12.1-4.2 - bump again for double-long bug on ppc(64) * Tue Feb 07 2006 Jesse Keating - 2.12.1-4.1 - rebuilt for new gcc4.1 snapshot and glibc changes * Wed Dec 21 2005 Kristian Høgsberg 2.12.1-4 - Spec file clean-ups from from Matthias Saou (#172923): - Explicitly disable rpath. - Exclude static modules from the main package. - Exclude static libraries from the devel package (useless). - Don't own entire %%{_datadir}/gtk-doc. - Remove explicit pre/post /sbin/ldconfig deps (they're automatic with -p). - Change PreReqs to more correct Requires. - Fix devel summary. - Add _smp_mflags to build. * Fri Dec 09 2005 Jesse Keating - rebuilt * Wed Nov 9 2005 Tomas Mraz - 2.12.1-3 - rebuilt against new openssl * Wed Oct 5 2005 Matthias Clasen - 2.12.1-2 - Use gmodule-no-export in the .pc file * Wed Sep 29 2005 Matthias Clasen - 2.12.1-1 - Update to 2.12.1 * Wed Sep 7 2005 Matthias Clasen - 2.12.0-1 - Update to 2.12.0 * Mon Jul 11 2005 Matthias Clasen - 2.11.0-1 - Newer upstream version * Tue May 24 2005 David Zeuthen - 2.10.3-1 - Update to upstream release 2.10.3 (#158397). Temporarily disable the fix for #154939 since that may be fixed upstream. * Fri Apr 29 2005 John (J5) Palmieri - 2.10.1-3 - Added patch to make sure glyphs are layed out right (Bug #154939) * Fri Mar 18 2005 David Zeuthen - 2.10.1-2 - Require libgnomecups >= 0.2.0-1 and rebuild * Fri Mar 18 2005 David Zeuthen - 2.10.1-1 - New upstream version; drop the async patches as they are now upstream * Wed Mar 2 2005 Tomas Mraz - 2.8.2-2 - Rebuild with openssl-0.9.7e * Wed Jan 26 2005 Matthias Clasen - 2.8.2-1 - Update to 2.8.2 * Wed Nov 24 2004 Owen Taylor - 2.8.0-4 - Fix problem with Lain glyphs when subsetting some Asian fonts (#140010) * Thu Sep 30 2004 Matthias Clasen - 2.8.0-2 - Fix display of queue length in the print dialog * Mon Sep 27 2004 Owen Taylor - 2.8.0-1 - Version 2.8.0 * Fri Sep 03 2004 Matthias Clasen - 2.7.1-7 - Make updating the printer list async. * Tue Aug 31 2004 Matthias Clasen - 2.7.1-6 - Update the async ppd patch * Sat Aug 28 2004 Colin Walters - 2.7.1-5 - Do not actually apply session printing patch yet, need to wait for eggcups to support it. * Fri Aug 27 2004 Matthias Clasen - 2.7.1-4 - Update and apply async ppd patch * Fri Aug 13 2004 Colin Walters - 2.7.1-3 - Add session printing patch * Wed Aug 11 2004 David Malcolm - 2.7.1-2 - Added explicit Pango dependency (1.5 or better) to fix problem with missing symbols (#129518) * Tue Aug 3 2004 Owen Taylor - 2.7.1-1 - Upgrade to 2.7.1 - BuildRequires zlib-devel and intltooll (#111106, Maxim Dzumanenko) * Fri Jul 30 2004 Colin Walters 2.7.0-4 - Add patch to remove polling of printer queues - BuildRequire latest libgnomecups * Thu Jul 29 2004 Colin Walters 2.7.0-3 - Backport patch to fix crash when no printers are available - Require pango 1.4 * Thu Jun 17 2004 Matthias Clasen 2.7.0-2 - Add Location information to the gpa printer state. * Tue Jun 15 2004 Colin Walters 2.7.0-1 - Update to 2.7.0 CVS - Add current version of patch which implements dynamic updating, using libgnomecups. - Add Requires: libgnomecups. - Add BuildPrereq: libgnomecups-devel. * Tue Jun 15 2004 Elliot Lee - rebuilt * Thu Apr 1 2004 Alex Larsson 2.6.0-1 - update to 2.6.0 * Tue Mar 16 2004 Mike A. Harris 2.5.4-2 - Removed PreReq: XFree86, as it seems bogus. Probably a leftover from a long time ago that is not needed anymore. This change is needed in order to make the package X11 implementation agnostic, however if there is something that it does really require from the XFree86 package, we can use a file or directory dependancy instead, or a virtual provide can be added if need be. - Added Requires(post): /sbin/ldconfig - Added Requires(postun): /sbin/ldconfig * Fri Mar 12 2004 Alex Larsson 2.5.4-1 - update to 2.5.4 * Tue Mar 02 2004 Elliot Lee - rebuilt * Thu Feb 26 2004 Alexander Larsson 2.5.3-1 - update to 2.5.3 * Fri Feb 13 2004 Elliot Lee - rebuilt * Wed Jan 28 2004 Alexander Larsson 2.5.1-1 - update to 2.5.1 * Wed Jan 7 2004 Owen Taylor 2.4.2-1.1 - Upgrade to 2.4.2 * Thu Oct 23 2003 Owen Taylor 2.4.0-1 - Upgrade to 2.4.0 * Thu Aug 28 2003 Owen Taylor 2.3.1-2 - Make the fallback font "Sans Regular", not "Helvetica". Helvetica was ending up picking the alphabetically first font on the system. (#79271. Tim Waugh) * Tue Aug 19 2003 Alexander Larsson 2.3.1-1 - update for gnome 2.3 * Fri Aug 1 2003 Bill Nottingham 2.2.1.3-4 - remove extraneous libxml dependency * Wed Jul 9 2003 Owen Taylor 2.2.1.3-3.0 - Bump for rebuild * Mon Jun 23 2003 Owen Taylor 2.2.1.3-2 - Add --add-missing to automake * Mon Jun 23 2003 Owen Taylor 2.2.1.3-1 - Version 2.2.1.3 * Thu Jun 12 2003 Owen Taylor 2.2.1.2-2 - Version 2.2.1.2 - Fix problem with mismatched libtool * Wed Jun 04 2003 Elliot Lee - rebuilt * Mon Feb 24 2003 Owen Taylor - Fix crash from HP Color LaserJet 4500 PPD file (http://bugzilla.gnome.org/show_bug.cgi?id=106984) * Fri Feb 14 2003 Tim Powers 2.2.1.1-2 - remove buildreq on Xft * Tue Feb 4 2003 Alexander Larsson 2.2.1.1-1 - Update to 2.2.1.1 (needed for new gedit) * Tue Jan 28 2003 Matt Wilson 2.1.8-4 - BuildPrereq: cups-devel and use LIBTOOL=/usr/bin/libtool * Wed Jan 22 2003 Tim Powers - rebuilt * Fri Jan 17 2003 Havoc Pennington - rebuild to get all arches * Thu Jan 16 2003 Havoc Pennington - 2.1.8 * Tue Jan 7 2003 Nalin Dahyabhai 2.1.4-3 - rebuild * Mon Dec 16 2002 Havoc Pennington - initial build of libgnomeprint 2.2 (version 2.1.4) - don't try to prereq ourselves, wtf was that about