File xfprint.spec of Package xfprint

#
# spec file for package xfprint (Version 4.4.3)
#
# Copyright (c) 2008 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/
#

# norootforbuild


Name:           xfprint
BuildRequires:  dbus-1-devel gtk2-devel update-desktop-files
BuildRequires:  libxfcegui4-devel >= 4.3
BuildRequires:  xfce-mcs-manager-devel >= 4.3
BuildRequires:  cups-devel intltool openssl-devel
Summary:        Print dialog and printer manager for Xfce
Version:        4.4.3
Release:        3
License:        GPL v2 or later
Url:            http://www.xfce.org/
Source0:        %{name}-%{version}.tar.bz2
Group:          System/GUI/XFCE
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Requires:       libxfcegui4 >= 4.3
Requires:       xfce-mcs-manager >= 4.3

%description
xfprint contains a print dialog and a printer manager for the XFce 4
Desktop Environment



Authors:
--------
    Benedikt Meurer <benedikt.meurer@unix-ag.uni-siegen.de>

%package devel
License:        BSD 3-Clause
Requires:       xfprint = %{version}
Summary:        Print dialog and printer manager for Xfce
Group:          System/GUI/XFCE
AutoReqProv:    on
Requires:       freetype2-devel libpng-devel zlib-devel glib2-devel
Requires:       libxfce4util-devel > 4.3
PreReq:         %install_info_prereq

%description devel
xfprint contains a print dialog and a printer manager for the XFce 4
Desktop Environment



Authors:
--------
    Benedikt Meurer <benedikt.meurer@unix-ag.uni-siegen.de>

%prep
%setup -q

%build
%configure \
    --disable-static \
    --enable-session-screenshots
make %{?jobs:-j%jobs}

%install
make DESTDIR="$RPM_BUILD_ROOT" install
rm $RPM_BUILD_ROOT%{_libdir}/xfce4/*plugins/*.*a
%find_lang %{name}
%suse_update_desktop_file -i xfprint X-XFCE Utility
%suse_update_desktop_file -i xfce-xfprint-settings X-XFCE Settings DesktopSettings
%suse_update_desktop_file -i xfprint-manager X-XFCE Utility

%clean
rm -rf $RPM_BUILD_ROOT

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files -f %name.lang
%defattr(-,root,root)
%doc AUTHORS COPYING INSTALL NEWS README TODO ChangeLog
%{_bindir}/xfprint4*
%{_libdir}/*.so.*
%{_libdir}/xfce4/mcs-plugins/*.so*
%dir %{_libdir}/xfce4/
%dir %{_libdir}/xfce4/mcs-plugins
%{_datadir}/applications/*.desktop
%dir %{_datadir}/icons/hicolor/24x24
%dir %{_datadir}/icons/hicolor/24x24/devices
%dir %{_datadir}/icons/hicolor/48x48/devices
%dir %{_datadir}/icons/hicolor/scalable/devices
%{_datadir}/icons/hicolor/*/*/*
%{_datadir}/xfce4/doc/fr/xfprint.html
%{_datadir}/xfce4/doc/C/xfprint.html
%{_datadir}/xfce4/doc/*/*/*
%dir %{_libdir}/xfce4/xfprint-plugins
%{_libdir}/xfce4/xfprint-plugins/cups_plugin.so

%files devel
%defattr(-,root,root)
%{_libdir}/*.so
%{_libdir}/*.*a
%{_libdir}/pkgconfig/*
%{_includedir}/xfce4/libxfprint
%{_datadir}/gtk-doc/html/libxfprint

%changelog
* Tue Nov 18 2008 pnemec@suse.cz
- call update_desktop_file macro on desktop files [bnc#445722]
* Wed Nov 12 2008 prusnak@suse.cz
- Remove glitz-devel from Requires too
* Tue Nov 04 2008 vuntz@novell.com
- Remove glitz-devel BuildRequires.
* Wed Oct 29 2008 bwalle@suse.de
- update to 4.4.3
  * fix segfault when there is no default printer selected in backend
  * update translations
* Mon Feb 25 2008 crrodriguez@suse.de
- use find_lang macro
- run ldconfig
* Mon Dec 03 2007 bwalle@suse.de
- update to 4.4.2
  o Updated and new translations
* Sat Jun 23 2007 bwalle@suse.de
- replaced group 'System/GUI/Other' by 'System/GUI/XFCE'
* Tue Apr 10 2007 bwalle@suse.de
- update to 4.4.1
  o Many translation updates.
* Tue Feb 27 2007 prusnak@suse.cz
- fixed build errors
* Wed Feb 07 2007 prusnak@suse.cz
- returned locale files to spec file
* Wed Feb 07 2007 sbrabec@suse.cz
- Do not build static libraries (#238552).
- Spec file cleanup.
* Fri Jan 26 2007 bwalle@suse.de
- added directories
* Fri Jan 26 2007 stbinner@suse.de
- fix build
* Sun Jan 21 2007 bwalle@suse.de
- upgraded to 4.4.0
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Sat Jan 21 2006 cthiel@suse.de
- update to 4.2.3
* Mon Aug 01 2005 cthiel@suse.de
- fixed Requires
* Wed May 18 2005 cthiel@suse.de
- update to 4.2.2
* Tue Apr 12 2005 cthiel@suse.de
- update to 4.2.1
* Thu Nov 04 2004 mmj@suse.de
- locale rename: no -> nb
* Tue May 18 2004 ltinkl@suse.cz
- initial version
openSUSE Build Service is sponsored by