Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:zstiziano:0
mapiprint
mapiprint-3.0.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File mapiprint-3.0.spec of Package mapiprint
# # spec file for package mapiprint # # Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # Name: mapiprint Url: http://mapiprint.sourceforge.net Version: 3.0 Release: 0.2 %define mapiprintmajor 3.0 BuildRequires: cairo-devel BuildRequires: cups-ddk BuildRequires: cups-devel BuildRequires: gimp-devel BuildRequires: glib2-devel BuildRequires: gtk2-devel BuildRequires: libpng-devel BuildRequires: libtiff-devel BuildRequires: pango-devel BuildRequires: python-cups Summary: Printer drivers for CUPS from the mapiprint project License: GPL-2.0+ Group: Hardware/Printing # The "rastertomapiprint" filter requires CUPS and the "cups" output device in Ghostscript: Requires: cups >= 1.2.2 # Up to openSUSE 12.1 the package cups has "Requires: ghostscript_any" so that the above # "Requires: cups" is sufficient to also get the "cups" output device in Ghostscript. # Since openSUSE 12.2 the package cups has only "Recommends: ghostscript" to avoid # an implicit build dependency cycle between the main-packages cups and ghostscript. # Therefore after openSUSE 12.1 mapiprint needs an explicit "Requires: ghostscript" # to ensure that the "cups" output device in Ghostscript is available: %if 0%{?suse_version} > 1210 Requires: ghostscript %endif # Install into this non-root directory (required when it is built as non-root user): BuildRoot: %{_tmppath}/%{name}-%{version}-build # URL for Source0: # http://downloads.sourceforge.net/project/gimp-print/mapiprint-5.2/5.2.9/mapiprint-5.2.9.tar.bz2 Source0: mapiprint-%{version}.tar.bz2 # Patch0...Patch9 is for patches from upstream: # Patch10...Patch99 is for openSUSE patches which which are intended for upstream: # Patch10 escputil-send_nulls-void.patch makes send_nulls a void function # because nowhere is a return value of send_nulls used in escputil.c # to fix a "no-return-in-nonvoid-function escputil.c:683" compiler error: %description The mapiprint (formerly Gimp-Print) printer drivers for CUPS. See the user's manual at /usr/share/mapiprint/doc/mapiprint-users-manual.pdf %package devel Summary: Development environment for mapiprint Group: Development/Libraries/C and C++ Requires: cups >= 1.2.2 Requires: ghostscript-library >= 7.05 Requires: glibc-devel Requires: gtk2-devel Requires: mapiprint = %{version} %description devel The development environment for the mapiprint printer drivers. See the developers guide to mapiprint at /usr/share/mapiprint/doc/mapiprint.pdf %package gimpplugin Summary: Alternative GIMP print plug-in from the mapiprint project Group: Hardware/Printing %description -n mapiprint-gimpplugin The enhanced mapiprint GIMP print plug-in offers an alternative with additional capabilities to the plugin supplied with GIMP. See the user's manual at /usr/share/mapiprint/doc/mapiprint-users-manual.pdf %prep # Be quiet when unpacking: %setup -q %build CFLAGS="$RPM_OPT_FLAGS -fstack-protector -fno-strict-aliasing -I/usr/include/gtk-2.0 -I/usr/include/cairo -I/usr/include/glib-2.0 -I%{_libdir}/gtk-2.0/include -I%{_libdir}/glib-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/gimp-2.0" ./configure \ --prefix=%{_prefix} \ --mandir=%{_mandir} \ --infodir=%{_infodir} \ --sysconfdir=%{_sysconfdir} \ --libdir=%{_libdir} \ --disable-static \ --enable-shared \ --enable-cups-ppds \ --enable-simplified-cups-ppds \ --disable-translated-cups-ppds \ --disable-libmapiprintui \ --enable-libmapiprintui2 \ --enable-samples \ --enable-escputil \ --with-pic=yes \ --without-foomatic \ --without-foomatic3 \ --without-ghostscript \ --without-gimp \ --with-gimp2 make %install rm -rf $RPM_BUILD_ROOT/usr/share/cups/model # Create required directories first: install -d -m755 $RPM_BUILD_ROOT/bin install -d -m755 $RPM_BUILD_ROOT/usr/share/cups/model install -d -m755 $RPM_BUILD_ROOT/usr/lib/cups/filter # Install mapiprint: make DESTDIR=$RPM_BUILD_ROOT install # Work with upstream compliant CUPS 1.4 on all platforms # which means to have a fixed "/usr/lib/cups/" directory # on all platforms (see Novell/Suse Bugzilla bnc#575544): for D in lib32 lib64 do for F in commandtocanon commandtoepson rastertomapiprint.%{mapiprintmajor} do if test -e $RPM_BUILD_ROOT/usr/$D/cups/filter/$F then mv -f $RPM_BUILD_ROOT/usr/$D/cups/filter/$F $RPM_BUILD_ROOT/usr/lib/cups/filter/$F fi done F="mapiprint.%{mapiprintmajor}" if test -e $RPM_BUILD_ROOT/usr/$D/cups/driver/$F then mv -f $RPM_BUILD_ROOT/usr/$D/cups/driver/$F $RPM_BUILD_ROOT/usr/lib/cups/driver/$F fi done # Disable the run-time PPD generator /usr/lib/cups/driver/mapiprint.5.2 # so that it is not executed by the cups-driverd (e.g. in response to a "lpinfo -m" request) # to avoid duplicated PPDs because we create the PPDs during compile-time (via --enable-cups-ppds) # and provide ready-made PPDs in /usr/share/cups/model/mapiprint/... in the RPM package # see "Regarding CUPS PPD files" at https://bugzilla.novell.com/show_bug.cgi?id=514994#c9 chmod a-x $RPM_BUILD_ROOT/usr/lib/cups/driver/mapiprint.%{mapiprintmajor} # Move the special testpattern generator away from the usual bin directory: mv $RPM_BUILD_ROOT/%{_bindir}/testpattern $RPM_BUILD_ROOT/%{_libdir}/mapiprint/%{mapiprintmajor} # Remove dispensable .po files (only the .mo files are needed on the end-users's system): rm $RPM_BUILD_ROOT/usr/share/locale/*/mapiprint_*.po %find_lang mapiprint %post /sbin/ldconfig # update quietly mapiprint PPD files in /etc/cups/ppd/ if such PPD files exist # using the new PPD files under /usr/share/cups/model/mapiprint/ as templates # see https://bugzilla.novell.com/show_bug.cgi?id=637455 /usr/sbin/cups-genppdupdate -q || /bin/true # exit successfully in any case: exit 0 %postun /sbin/ldconfig # exit successfully in any case: exit 0 %files -f mapiprint.lang %defattr(-,root,root) %config /etc/cups/command.types %{_bindir}/cups-calibrate %{_bindir}/escputil %{_sbindir}/cups-genppd* %dir %{_libdir}/mapiprint %dir %{_libdir}/mapiprint/%{mapiprintmajor} %{_libdir}/mapiprint/%{mapiprintmajor}/* %{_libdir}/libmapiprint*.so?* %dir /usr/share/cups /usr/share/cups/calibrate.ppm %dir /usr/share/cups/model %dir /usr/share/cups/model/mapiprint %dir /usr/share/cups/model/mapiprint/%{mapiprintmajor} %dir /usr/share/cups/model/mapiprint/%{mapiprintmajor}/C /usr/share/cups/model/mapiprint/%{mapiprintmajor}/C/* %dir /usr/lib/cups/driver /usr/lib/cups/driver/mapiprint.%{mapiprintmajor} /usr/lib/cups/filter/commandtocanon /usr/lib/cups/filter/commandtoepson /usr/lib/cups/filter/rastertomapiprint.%{mapiprintmajor} %dir /usr/share/mapiprint %dir /usr/share/mapiprint/%{mapiprintmajor} /usr/share/mapiprint/%{mapiprintmajor}/* %dir /usr/share/mapiprint/samples/ /usr/share/mapiprint/samples/* %dir /usr/share/mapiprint/doc %doc /usr/share/mapiprint/doc/* %doc /usr/share/man/man?/*.gz %files devel %defattr(-,root,root) %dir /usr/include/mapiprint /usr/include/mapiprint/* %dir /usr/include/mapiprintui2 /usr/include/mapiprintui2/* %{_libdir}/libmapiprint*.la %{_libdir}/pkgconfig/mapiprint* %{_libdir}/libmapiprint*.so %files gimpplugin %defattr(-,root,root) %dir %{_libdir}/gimp %dir %{_libdir}/gimp/2.0 %dir %{_libdir}/gimp/2.0/plug-ins %{_libdir}/gimp/2.0/plug-ins/* %changelog * Wed Jan 23 2013 mapilaser@gmail.com - Build MapiPrint
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor