Sophie

Sophie

distrib > Mandriva > 2006.0 > i586 > media > main-src > by-pkgid > 97916306b6085ea72b3bc16ebaa6d5c0 > files > 3

xpp-1.5-2mdk.src.rpm

Summary:	X Printing Panel
Name:		xpp
Version:	1.5
Release:	2mdk
License:	GPL
Group:		Publishing

Source:		http://cups.sourceforge.net/xpp/%{name}-%{version}cvs.tar.bz2
Source1:	xpp.png.bz2

Url:		http://cups.sourceforge.net/xpp/
BuildRoot:	%_tmppath/%name-%version-%release-root
Requires:	libcups1 >= 1.1.9
BuildRequires:	libcups-devel >= 1.1.9, libfltk-devel
BuildRequires:	cups, Mesa-common-devel, libstdc++-devel
BuildRequires:	libpng-devel, libjpeg-devel

%description
The X Printing Panel (XPP) is a completely free tool for easy choosing of
the desired printer out of a list of all available printers and
for setting printer options by an easy-to-use graphical user interface.
One simply calls the program (xpp) instead of the usual utilities
(lpr or lp) at the command line or out of applications.

%prep

%setup -q
# Load menu icon
bzcat %SOURCE1 > $RPM_BUILD_DIR/%name-%version/xpp.png

%build

#export CXXFLAGS="${CXXFLAGS:-%optflags} -fno-exceptions -fno-rtti" ;
%configure

make

%install
rm -rf $RPM_BUILD_ROOT
%makeinstall

# install menu icon
install -d %buildroot/%_datadir/icons/locolor/16x16/apps
install -m 644 xpp.png %buildroot/%_iconsdir/locolor/16x16/apps

# install menu entry
install -d %buildroot/%_menudir
cat <<EOF > %buildroot/%_menudir/xpp
?package(xpp): needs=X11 \
section=Configuration/Printing \
title="XPP - X Printing Panel" \
longtitle="Frontend for easy printing with CUPS" \
command="xpp" \
icon="printing_section.png"
EOF

# Use update-alternatives to make printing with XPP also possible with
# the "lpr" command

( cd $RPM_BUILD_ROOT%{_bindir}
  ln -s xpp lpr-xpp
)

%post
%update_menus
# Set up update-alternatives entry
%{_sbindir}/update-alternatives --install %{_bindir}/lpr lpr %{_bindir}/lpr-xpp 8

%preun

if [ "$1" = 0 ]; then
  # Remove update-alternatives entry
  %{_sbindir}/update-alternatives --remove lpr /usr/bin/lpr-xpp
fi

%postun
%clean_menus

%clean
rm -fr %buildroot

%files
%defattr(-,root,root)
%doc README LICENSE ChangeLog
%_bindir/*
%_iconsdir/locolor/16x16/apps/*
%_menudir/xpp

%changelog
* Sun Aug 28 2005 Till Kamppeter <till@mandriva.com> 1.5-2mdk
- CVS Update: Fixed many causes of segfaults. Fixed multiple password
  rquests on password-protected print queues.

* Tue Dec  7 2004 Till Kamppeter <till@mandrakesoft.com> 1.5-1mdk
- Updated to version 1.5.

* Mon Dec  6 2004 Till Kamppeter <till@mandrakesoft.com> 1.1-15mdk
- CVS Update: Support for numerical, string, and password options
  in Foomatic 3.x and for the fax number option of fax4CUPS.

* Sat Dec  4 2004 Till Kamppeter <till@mandrakesoft.com> 1.1-14mdk
- CVS Update: Job control options, more updates of CUPS-specific
  options, preview of images (JPG, PNG) in file dialog.

* Tue Nov  9 2004 Till Kamppeter <till@mandrakesoft.com> 1.1-13mdk
- CVS Update: Integrated patches upstream, updated CUPS-specific
  options.

* Mon Jun 14 2004 Laurent MONTEL <lmontel@mandrakesoft.com> 1.1-12mdk
- Rebuild

* Fri Feb 27 2004 Till Kamppeter <till@mandrakesoft.com> 1.1-11mdk
- Added patch to make window horizontally resizable and to allow
  choosing custom paper sizes (thanks to Egbert Eich, eich at xfree86 
  dot org).

* Sun Jul 27 2003 Till Kamppeter <till@mandrakesoft.com> 1.1-10mdk
- Rebuilt with FLTK 1.1.4rc1.

* Fri Jul 25 2003 Per Øyvind Karlsen <peroyvind@sintrax.net> 1.1-9mdk
- rebuild
- rm -rf $RPM_BUILD_ROOT at the beginning of %%install

* Mon Feb  3 2003 Till Kamppeter <till@mandrakesoft.com> 1.1-8mdk
- Rebuilt for new glibc.
- Fixed bug which broke compilation with current FLTK.

* Wed Oct  9 2002 Till Kamppeter <till@mandrakesoft.com> 1.1-7mdk
- CVS Update: Temporary files were not deleted, fixed.

* Thu Aug 29 2002 David BAUDENS <baudens@mandrakesoft.com> 1.1-6mdk
- Fix menu entry (category & icon)

* Wed Aug 14 2002 Gwenole Beauchesne <gbeauchesne@mandrakesoft.com> 1.1-5mdk
- Automated rebuild with gcc 3.2-0.3mdk

* Fri Jul 26 2002 Gwenole Beauchesne <gbeauchesne@mandrakesoft.com> 1.1-4mdk
- Rebuild with gcc3.2
- Menu dir is %%_menudir

* Tue May 28 2002 Till Kamppeter <till@mandrakesoft.com> 1.1-3mdk
- CVS Update: Updated source code to compile with gcc 3.1.
- Rebuilt for new FLTK, libstdc++, gcc 3.1.

* Wed Jan 16 2002 Till Kamppeter <till@mandrakesoft.com> 1.1-2mdk
- Corrected date in main window.

* Wed Jan  9 2002 Till Kamppeter <till@mandrakesoft.com> 1.1-1mdk
- Version 1.1: Works correctly with PPD-O-Matic PPD files, supports the
  "natural-scaling" image size option, no function overloading for password
  dialog.

* Tue Jul 18 2001 Till Kamppeter <till@mandrakesoft.com> 1.0-6mdk
- Update alternatives stuff as with LPD/CUPS, so that one can also print 
  via XPP with the "lpr" command

* Tue Jul 17 2001 Till Kamppeter <till@mandrakesoft.com> 1.0-5mdk
- Rebuilt against the new CUPS library 1.1.9 due to an incompatibility.

* Mon Mar  4 2001 Till Kamppeter <till@mandrakesoft.com> 1.0-4mdk
- CVS Update: Made XPP able to read out the numerical options of the new 
  XML-Foomatic which will appear in the near future.

* Sun Jan 28 2001 Till Kamppeter <till@mandrakesoft.com> 1.0-3mdk
- Version 1.0 (final)
- Let jobs from standard input get the name "STDIN" instead of "(stdin)",
  because the parantheses caused problems with Samba or Windows servers.
- Let the first printer be selected when CUPS does not report a default
  printer.

* Sun Jan 28 2001 Till Kamppeter <till@mandrakesoft.com> 1.0-2mdk
- CVS Update: Support for banner pages and raw printing, comment about
  adding instances in "Instances" dialog.

* Sat Jan 27 2001 Till Kamppeter <till@mandrakesoft.com> 1.0-1mdk
- CVS Update: Support for adding, copying, renaming, and deleting
  instances, fixed probable bug of options being saved to wrong queue
  when number of queues/instances changes when XPP is running.

* Sat Jan 20 2001 Till Kamppeter <till@mandrakesoft.com> 0.7-5mdk
- CVS Update: Fixed bug in the media settings widgets.

* Thu Jan 18 2001 Till Kamppeter <till@mandrakesoft.com> 0.7-4mdk
- CVS Update: Rearranged option widgets for media settings on the "Basic"
  tab of the "Options" dialog.

* Wed Jan 17 2001 Till Kamppeter <till@mandrakesoft.com> 0.7-3mdk
- CVS Update: Fields for typing the values of numerical options added.

* Sun Jan 07 2001 David BAUDENS <baudens@mandrakesoft.com> 0.7-2mdk
- s/Copyright/License
- Fix BuildRequires
- %%setup -q
- Use %%_menudir macro
- Fix %%post and %%postun sections
- Clean %%files section
- Spec clean up

* Wed Dec 20 2000 Till Kamppeter <till@mandrakesoft.com> 0.7-1mdk
- Version 0.7
- FLTK 1.0.10 used
- Adapted to new cups package

* Wed Nov 15 2000 Till Kamppeter <till@mandrakesoft.com> 0.6-17mdk
- Recompiled with GCC 2.96

* Tue Oct  3 2000 Frederic Lepied <flepied@mandrakesoft.com> 0.6-16mdk
- added BuildRequires on: cups-devel fltk-devel Mesa-common-devel libstdc++-devel.

* Tue Sep 26 2000 Till Kamppeter <till@mandrakesoft.com> 0.6-15mdk
- Updated URL to http://cups.sourceforge.net/xpp/

* Tue Sep 26 2000 Till Kamppeter <till@mandrakesoft.com> 0.6-14mdk
- CVS Update: Now numerical options can also be read in PPD files with
  dossy line ends ("\n\r" instead of "\n").

* Sun Sep 24 2000 Till Kamppeter <till@mandrakesoft.com> 0.6-13mdk
- CVS Update: Integer and floating point options of CUPS-O-MATIC PPDs are
  supported now.

* Sat Sep 23 2000 Till Kamppeter <till@mandrakesoft.com> 0.6-12mdk
- CVS Update: "Authentication ..." line in login/password dialog is 
  also displayed with CUPS 1.1.3.

* Thu Sep  7 2000 Till Kamppeter <till@mandrakesoft.com> 0.6-11mdk
- CVS Update: Main window is resizable now.

* Sat Aug 26 2000 Till Kamppeter <tkamppeter@mandrakesoft.com> 0.6-10mdk
- Removed hardcoded architecture-specific flags, used macros instead

* Fri Aug 25 2000 Till Kamppeter <tkamppeter@mandrakesoft.com> 0.6-9mdk
- Entry for Mandrake menu structure added

* Wed Aug 23 2000 Till Kamppeter <tkamppeter@mandrakesoft.com> 0.6-8mdk
- Clean-up of "./configure" call in specfile

* Wed Aug 23 2000 Till Kamppeter <tkamppeter@mandrakesoft.com> 0.6-7mdk
- Removed hardcoded "i586-mandrake-linux" from specfile

* Wed Aug 23 2000 Till Kamppeter <tkamppeter@mandrakesoft.com> 0.6-6mdk
- Deactivated positioning of the printer list to make default printer visible,
  a bug in FLTK messed up the display of the printer list.
- Optical enhancements of the printer list.

* Sun Aug 20 2000 Till Kamppeter <tkamppeter@mandrakesoft.com> 0.6-5mdk
- Updated to version 0.6: Full support for password-protected printers, more
  information in printer list, printing with or saving conflicting options
  is not possible any more.

* Wed Aug 16 2000 Till Kamppeter <tkamppeter@mandrakesoft.com> 0.5-4mdk
- Updated to version 0.5: Margin options for text file printing and options
  for HP-GL/2 printing, "Reverse" page orientations, window does not close
  when printing leads to an error

* Sun Aug 13 2000 Till Kamppeter <tkamppeter@mandrakesoft.com> 0.4-3mdk
- New CVS version: Now the widgets on the "Basic" tab of the options window
  are coupled to the appropriate PPD options, instance names are read, and
  types of destinations without PPD file are displayed.

* Thu Aug 10 2000 Till Kamppeter <tkamppeter@mandrakesoft.com> 0.4-2mdk
- Removed "fltk" from "Requires:" line.
- FLTK now linked statically into XPP -> Fast load and no widget lib needs
  to be installed.

* Wed Aug  9 2000 Till Kamppeter <tkamppeter@mandrakesoft.com> 0.4-1mdk
- Updated to version 0.4.
- Added "fltk" to "Requires:" line.

* Thu Jul  6 2000 François Pons <fpons@mandrakesoft.com> 0.2-0.1mdk
- patch for Makefile to link against optimized fltk.
- initial release.