[Scribus] Scribus and SuSE 9.2

Sandip Bhattacharya sandip
Mon Nov 29 19:06:42 CET 2004


On Mon, 2004-11-29 at 10:55 -0700, Graham Monk wrote:
> At least I know there is nothing wrong with my CDs.
> Until I get hold of a copy of the DVD ( My local supplier has problems
> with Novel's distribution network ) Can anyone point me to or email
> me a copy of 1.2 for SUSE 9.2? 

If it can help, here is my .spec file that I used to create an RPM for
the CVS snapshot of scribus. You can download the snapshot that Plinnel
mentioned a few days back, rename the archive according to the Source:
field of the spec file and  create an RPM of the latest and the
greatest!

- Sandip


--
Sandip Bhattacharya    *    Puroga Technologies   *     sandip at puroga.com
Work: http://www.puroga.com        *         Home: http://www.sandipb.net

PGP/GPG Signature: 51A4 6C57 4BC6 8C82 6A65 AE78 B1A1 2280 A129 0FF3

Faith is under the left nipple.
		-- Martin Luther
-------------- next part --------------
# $Id: scribus.spec 2164 2004-09-09 20:40:40Z dries $
# Modified by Sandip Bhattacharya <sandip at puroga.com>
# Authority: dag

%{?dist: %{expand: %%define %dist 1}}

%{?rh7:%define _without_freedesktop 1}
%{?el2:%define _without_freedesktop 1}
%{?rh6:%define _without_freedesktop 1}

Summary: Graphical desktop publishing (DTP) application
Name: scribus
Version: 1.2
Release: 0fix1
License: GPL
Group: Applications/Productivity
URL: http://web2.altmuehlnet.de/fschmid/

Packager: Sandip Bhattacharya <sandip at puroga.com>
Vendor: Modified spec from Dag Apt Repository, http://dag.wieers.com/apt/

Source: http://web2.altmuehlnet.de/fschmid/scribus-%{version}.%{release}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root

BuildRequires: qt-devel >= 3.0, XFree86-devel, gcc-c++
BuildRequires: zlib-devel, libjpeg-devel, libpng-devel, libtiff-devel, lcms-devel, cups-devel, python-devel, gettext
#BuildRequires: libart_lgpl-devel, arts-devel, gettext, kdelibs-devel
%{?!_without_freedesktop:BuildRequires: desktop-file-utils}

%description
Scribus is a GUI desktop publishing (DTP) application for GNU/Linux.

%prep
%setup

%{__cat} <<EOF >%{name}.desktop
[Desktop Entry]
Name=Scribus Desktop Publishing
Comment=%{summary}
Exec=scribus
Icon=scribus.png
Type=Application
Terminal=false
Categories=Application;Office;
EOF

%build
source "%{_sysconfdir}/profile.d/qt.sh"
%configure \
	--with-qt-dir=/usr/lib/qt-3.3 \
	--with-xinerama
%{__make} %{?_smp_mflags}

%install
%{__rm} -rf %{buildroot}
%makeinstall

%{__install} -d -m0755 %{buildroot}%{_datadir}/pixmaps/
%{__install} -m0644 scribus/icons/scribusicon.png %{buildroot}%{_datadir}/pixmaps/scribus.png

%if %{?_without_freedesktop:1}0
        %{__install} -D -m0644 %{name}.desktop %{buildroot}%{_datadir}/gnome/apps/Applications/
%else
	%{__install} -d -m0755 %{buildroot}%{_datadir}/applications/
	desktop-file-install --vendor kde                  \
		--add-category X-Red-Hat-Base              \
		--dir %{buildroot}%{_datadir}/applications \
		%{name}.desktop
%endif

### Clean up buildroot
# %{__rm} -f %{buildroot}%{_libdir}/scribus/{libs,plugins}/*.la

%clean
%{__rm} -rf %{buildroot}

%files
%defattr(-, root, root, 0755)
%doc AUTHORS ChangeLog COPYING README TODO
%{_bindir}/*
%{_libdir}/scribus/
%{_includedir}/scribus/
%{_datadir}/scribus
%{_datadir}/pixmaps/*
%{_mandir}/*/*
%{?_without_freedesktop:%{_datadir}/gnome/apps/Applications/*.desktop}
%{!?_without_freedesktop:%{_datadir}/applications/*.desktop}

%changelog
* Tue Nov 16 2004 Sandip Bhattacharya - 1.2.0fix1
- Used CVS snapshot at 4am IST, and dries spec.

* Wed Sep 01 2004 Dries Verachtert <dries at ulyssis.org> - 1.2-1
- Updated to release 1.2.

* Tue Aug 12 2003 Dag Wieers <dag at wieers.com> - 1.0.1-0
- Updated to release 1.0.1.

* Wed Jul 16 2003 Dag Wieers <dag at wieers.com> - 1.0-0
- Initial package. (using DAR)



More information about the scribus mailing list