Sophie

Sophie

distrib > Mandriva > 9.0 > i586 > media > contrib-src > by-pkgid > d9f4b8780760783c4ab913d95e9b1e4f > files > 4

xprint-1.0-0.007.6mdk.src.rpm

%define 	snapshot 007
%define         xprintdate 2002-09-03
%define		nameinit xprint

Summary:	Xprint - An X11 print system
Name:		xprint
Version:	1.0
Release:	0.%{snapshot}.6mdk
License:	MIT
Source0:	xprint_mozdev_org_source-%{xprintdate}-release_%{snapshot}.tar.bz2
Source1:	xprint-initd
Patch0:		xprint-600dpi.patch.bz2
Patch1:		xprint-lpr.patch.bz2
URL:		http://xprint.mozdev.org
Group:		System/Servers
BuildRequires:	XFree86-devel
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root
Requires: 	fonts-mathml-cm-type1

%description
Xprint is an advanced printing system which enables X11 applications
to use devices like printers, FAX or create documents in formats like
PostScript, PDF, PCL, etc.

%prep
%setup -q -n xprint
%patch0 -p1

%build
cd src/xprint_main/xc
make World

%install
rm -rf %{buildroot}
mkdir -p %{buildroot}/usr/X11R6 \
	%{buildroot}%{_sysconfdir}/profile.d \
	%{buildroot}%{_initrddir}
pwd
cd src/xprint_main/xc/packager
rm -f /tmp/xprint_server_*.tar.gz
make make_xprint_tarball

cat <<EOF > %{buildroot}%{_sysconfdir}/profile.d/xprint-mozdev.sh
export XPSERVERLIST=":2"  
EOF

cat <<EOF > %{buildroot}%{_sysconfdir}/profile.d/xprint-mozdev.csh
setenv XPSERVERLIST ":2"
EOF

install -m 755 %{SOURCE1} %{buildroot}%{_initrddir}/%{nameinit}

gzip -cd /tmp/xprint_server_*.tar.gz | tar xvf - -C %{buildroot}
mv %{buildroot}/usr/X11R6/bin/Xprt %{buildroot}/usr/X11R6/bin/Xprt_mozdev
rm -f %{buildroot}/usr/X11R6/lib/X11/xserver/SecurityPolicy

%clean
rm -rf %{buildroot}

%post
%_post_service xprint

%preun
%_preun_service xprint

%files
%defattr(-,root,root)
%attr(755,root,root) %config(noreplace) %{_sysconfdir}/profile.d/xprint-mozdev.sh
%attr(755,root,root) %config(noreplace) %{_sysconfdir}/profile.d/xprint-mozdev.csh
%attr(755,root,root) %config %{_initrddir}/xprint
/usr/X11R6/bin/*
/usr/X11R6/lib/X11/xserver/*

%changelog
* Mon Sep 09 2002 Giuseppe Ghibò <ghibo@mandrakesoft.com> 1.0-0.007.6mdk
- Rebuilt with latest XFree86 4.2.1.

* Mon Sep 01 2002 Giuseppe Ghibò <ghibo@mandrakesoft.com> 1.0-0.007.5mdk
- added Requirements.
- removed not available font dirs from the Xprt -fp path.

* Sun Sep 01 2002 Giuseppe Ghibò <ghibo@mandrakesoft.com> 1.0-0.007.4mdk
- added missed xserver files in filelist.

* Sun Sep 01 2002 Giuseppe Ghibò <ghibo@mandrakesoft.com> 1.0-0.007.3mdk
- fixed lpr call.

* Sun Sep 01 2002 Giuseppe Ghibò <ghibo@mandrakesoft.com> 1.0-0.007.3mdk
- fixed lpr call.

* Sun Sep 01 2002 Giuseppe Ghibò <ghibo@mandrakesoft.com> 1.0-0.007.2mdk
- fixed version number.
- removed SecurityPolicy file (already provided in XFree86).

* Sun Sep 01 2002 Giuseppe ghibò <ghibo@mandrakesoft.com>
- initial release.