Sophie

Sophie

distrib > Mandriva > 10.2 > x86_64 > by-pkgid > bf2bec9f1b03755df6109b674af52a2c > files > 1

gtkpsproc-2.0-1mdk.src.rpm

%define name	gtkpsproc
%define version	2.0
%define tarver	20
%define release 1mdk

Name: 	 	%{name}
Summary: 	Postscript printing options GUI
Version: 	%{version}
Release: 	%{release}

Source:		%{name}%{tarver}.tar.bz2
URL:		http://www.rastersoft.com/gtkpsproc.html
License:	GPL
Group:		System/Configuration/Printing
BuildRoot:	%{_tmppath}/%{name}-buildroot
BuildRequires:	pkgconfig ImageMagick gtk2-devel

%description
GtkPSproc is a front-end for the PSUTILS. PSUTILS is a set of little programs
that allows to manage in a lot of ways your PostScript files.
GtpPSproc is designed to work from nearly all programs that call LPR, acting
as an intermediary between the program and LPR program, but it can work alone
too.
GtkPSproc allows to adjust all the programs to your printer type (for example,
sending always the pages in reverse order), to group two or more pages in a
sigle sheet, to print booklets, and to easily print in double-side fashion. 

%prep
%setup -q -n %{name}%{tarver}

%build
cd devel
%configure2_5x
%make
										
%install
cd devel
rm -rf $RPM_BUILD_ROOT
%makeinstall
mkdir -p $RPM_BUILD_ROOT/%_datadir/pixmaps/%name
cp pixmaps/* $RPM_BUILD_ROOT/%_datadir/pixmaps/%name
cd ..

#menu
mkdir -p $RPM_BUILD_ROOT%{_menudir}
cat << EOF > $RPM_BUILD_ROOT%{_menudir}/%{name}
?package(%{name}): command="%{name}" icon="%{name}.png" needs="x11" title="GtkPSProc" longtitle="Postscript printing GUI" section="System/Configuration/Printing"
EOF

#icons
mkdir -p $RPM_BUILD_ROOT/%_liconsdir
convert -size 48x48 doc/canon.png $RPM_BUILD_ROOT/%_liconsdir/%name.png
mkdir -p $RPM_BUILD_ROOT/%_iconsdir
convert -size 32x32 doc/canon.png $RPM_BUILD_ROOT/%_iconsdir/%name.png
mkdir -p $RPM_BUILD_ROOT/%_miconsdir
convert -size 16x16 doc/canon.png $RPM_BUILD_ROOT/%_miconsdir/%name.png

%find_lang %name

%clean
rm -rf $RPM_BUILD_ROOT

%post
%update_menus
		
%postun
%clean_menus

%files -f %{name}.lang
%defattr(-,root,root)
%doc README doc/*
%{_bindir}/%name
%{_datadir}/pixmaps/%name
%{_menudir}/%name
%{_liconsdir}/%name.png
%{_iconsdir}/%name.png
%{_miconsdir}/%name.png

%changelog
* Wed Oct 27 2004 Austin Acton <austin@mandrake.org> 2.0-1mdk
- initial package