File xfprint.spec of Package xfprint
#
# spec file for package xfprint
#
# Copyright (c) 2011 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: xfprint
Summary: Print dialog and print queue manager for Xfce
Version: 4.6.1
Release: 11.<RELEASE3>
License: GPLv2+
Url: http://www.xfce.org/projects/xfprint/
Source0: %{name}-%{version}.tar.bz2
Group: Hardware/Printing
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(gtk+-2.0)
BuildRequires: pkgconfig(libxfce4util-1.0)
BuildRequires: pkgconfig(libxfcegui4-1.0)
BuildRequires: pkgconfig(libxfconf-0)
BuildRequires: cups-devel
BuildRequires: gtk-doc
BuildRequires: intltool
BuildRequires: update-desktop-files
%define libname lib%{name}0
%description
xfprint provide a printing helper which is a graphical frontend for printing
and a print queue managemement tool for the Xfce desktop environment.
%package -n %{libname}
Summary: Print dialog and print queue manager for Xfce -- Runtime library
Group: System/Libraries
%description -n %{libname}
xfprint provide a printing helper which is a graphical frontend for printing
and a print queue managemement tool for the Xfce desktop environment.
This package contains the runtime library.
%package devel
License: GPLv2+
Summary: Development files for xfprint
Group: Development/Libraries/C and C++
Requires: xfprint = %{version}
Requires: pkgconfig(glib-2.0)
Requires: pkgconfig(gtk+-2.0)
Requires: pkgconfig(libxfce4util-1.0)
Requires: pkgconfig(libxfcegui4-1.0)
Requires: pkgconfig(libxfconf-0)
Requires: cups-devel
%description devel
xfprint provide a printing helper which is a graphical frontend for printing
and a print queue managemement tool for the Xfce desktop environment.
This package contains development files needed for developing applications
based on xfprint.
%prep
%setup -q
%build
%configure \
--disable-static \
--enable-gtk-doc \
--enable-cups
make %{?_smp_mflags}
%install
%make_install
%suse_update_desktop_file xfprint
%suse_update_desktop_file xfprint-manager
%suse_update_desktop_file xfprint-settings
%find_lang %{name}
rm -f %{buildroot}%{_libdir}/*.la %{buildroot}%{_libdir}/xfce4/xfprint-plugins/*.la
rm -f %{buildroot}%{_datadir}/gtk-doc/html/libxfprint/libxfprint.devhelp* \
%{buildroot}%{_datadir}/gtk-doc/html/libxfprint/*.sgml
%clean
rm -rf %{buildroot}
%post -n %{libname} -p /sbin/ldconfig
%postun -n %{libname} -p /sbin/ldconfig
%if 0%{?suse_version} >= 1140
%post
%desktop_database_post
%icon_theme_cache_post
%postun
%desktop_database_postun
%icon_theme_cache_postun
%endif
%files -f %name.lang
%defattr(-,root,root)
%doc AUTHORS COPYING ChangeLog NEWS README TODO
%{_bindir}/*
%{_datadir}/applications/*.desktop
%{_datadir}/icons/hicolor/*/*/*
%dir %{_datadir}/xfce4
%{_datadir}/xfce4/doc
%dir %{_libdir}/xfce4
%dir %{_libdir}/xfce4/xfprint-plugins
%{_libdir}/xfce4/xfprint-plugins/cups_plugin.so
%files -n %{libname}
%defattr(-,root,root)
%{_libdir}/libxfprint.so.*
%files devel
%defattr(-,root,root)
%{_libdir}/*.so
%{_libdir}/pkgconfig/*
%{_includedir}/xfce4/libxfprint
%{_datadir}/gtk-doc/html/libxfprint
%changelog