File gtklp.spec of Package gtklp

#
# spec file for package gtklp (Version 1.2.6)
#
# Copyright (c) 2007 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:           gtklp
BuildRequires:  cups cups-devel gtk-devel gtk2-devel libtiff-devel
BuildRequires:  openssl-devel update-desktop-files xorg-x11
Version:        1.2.6
Release:        1
Summary:        A Gtk Front-End for CUPS
License:        GPL v2 or later
Group:          Hardware/Printing
Requires:       cups
AutoReqProv:    on
Url:            http://gtklp.sourceforge.net/
Source0:        http://switch.dl.sourceforge.net/sourceforge/%{name}/%{name}-%{version}.src.tar.bz2
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
The X Printing Panel (XPP) CUPS-compatible tool for selecting a
   printer from a list of all available printers and for setting
   printer options using a GUI. Features: - Gtk interface with theme
   support

- IPP support

- Printer-specific options

- All standard cups options

- Different preference files for each printer

- Gettext support for different languages

- X Window System and console support



Authors:
--------
    Tobias Mueller <sirtobi@stud.uni-hannover.de>

%prep
%setup -q

%build
%{?suse_update_config:%{suse_update_config -f . }}
export CFLAGS="$RPM_OPT_FLAGS"
sh ./autogen.sh
./configure \
                --mandir=%{_mandir} \
                --prefix=%{_prefix} \
                --libdir=%{_libdir} \
                --infodir=%{_infodir} \
		--enable-ssl
make

%install
[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT;
mkdir $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install
rm -f $RPM_BUILD_ROOT/%{_prefix}/share/locale/*/LC_MESSAGES/gtklp.mo 

%clean
# Clear up the mess
[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT;

%files
%defattr(-, root, root)
%doc AUTHORS BUGS ChangeLog COPYING NEWS README TODO USAGE
%doc %{_mandir}/man1/*.gz
%{_prefix}/bin/*
%changelog
* Wed Nov 21 2007 - kssingvo@suse.de
- update to version 1.2.6:
  * new ukrain translation
  * new czech translation
- creating %%buildroot now (rpmlint warning)
* Mon Oct 15 2007 - kssingvo@suse.de
- update to version 1.2.5:
  * accept/deny mechanism gets a bit more logical
  * no hangup when all printers are denied
- major build changes require new autoconf callings, fixed specfile
* Tue Jul 31 2007 - kssingvo@suse.de
- update to version 1.2.4:
  * bigger drop down for "number of pages"
* Mon Feb 12 2007 - kssingvo@suse.de
- update to version 1.2.3:
  * ukrain man-pages included, thanks to Lytvyn Mikhajlo
  * translated man-pages now copied to docs.
  * new ukrain translation, thanks to Lytvyn Mikhajlo
  * collate bug fixed, thanks to Anders Blomdell
* Sun Nov 26 2006 - aj@suse.de
- Remove dependency on gtk (#223765).
* Wed Jun 28 2006 - kssingvo@suse.de
- update to version 1.2.2:
  language updates, bug fixes, progress bar at start, etc.
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Mon Nov 14 2005 - kssingvo@suse.de
- update to version 1.1.0
* Fri Jul 29 2005 - kssingvo@suse.de
- updated to version 1.0g
* Tue Jul 26 2005 - kssingvo@suse.de
- update to version 1.0f
* Tue Feb 15 2005 - kssingvo@suse.de
- update to version 1.0b
- made necessary adaptions
* Thu Aug 12 2004 - kssingvo@suse.de
- update to 0.9u
- requires now gtk2
* Sat Jan 10 2004 - adrian@suse.de
- build as user
* Wed Aug 20 2003 - kssingvo@suse.de
- updated to version 0.9p
* Mon Jul 28 2003 - kssingvo@suse.de
- fixed build problem with po/Makefile.in
* Tue Jul 22 2003 - kssingvo@suse.de
- updated to version 0.9n
* Fri Jun 20 2003 - ro@suse.de
- fix build with current gettext
* Wed May 28 2003 - ro@suse.de
- remove unpackaged files from buildroot
* Wed Jan 15 2003 - kssingvo@suse.de
- updated to version 0.9m
- using now autogen.sh instead of manual call of aclocal, automake, ...
* Wed Jun 05 2002 - kssingvo@suse.de
- %%Patch no longer necessary: package cups-devel contains now "cups-config"
* Thu May 23 2002 - kssingvo@suse.de
- initial version