SHA256
1
0
forked from pool/scribus
scribus/scribus.spec

292 lines
9.8 KiB
RPMSpec
Raw Normal View History

#
# spec file for package scribus (Version 1.3.3.12)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: scribus
BuildRequires: cairo-devel cups cups-devel python-devel shared-mime-info
BuildRequires: fontconfig-devel libtiff-devel libxml2-devel openssl-devel
BuildRequires: gcc-c++ pkgconfig qt3-devel
BuildRequires: cmake fdupes kde4-filesystem update-desktop-files
%if %suse_version < 1010
BuildRequires: -ghostscript-library libtiff-devel openssl-devel
%endif
License: GPL v2 or later
Group: Productivity/Publishing/Other
AutoReqProv: on
Requires: tk python-imaging
Suggests: AdobeICCProfiles
Provides: scribus-short-words
Obsoletes: scribus-i18n-de scribus-i18n-en scribus-i18n-fr scribus-short-words
Version: 1.3.3.12
Release: 73
%define tar_version %version
Source: %{name}-%{tar_version}.tar.bz2
Source1: %name.desktop
Patch1: fix-implicit.patch
Patch3: %{name}-1.3.3.10-doc-path.diff
Url: http://www.scribus.net/
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Summary: Open Source Page Layout and Desktop Publishing (DTP)
%description
Scribus is a desktop open source page layout program with the aim of
producing commercial grade output in PDF and Postscript. It is
primarily, though not exclusively,designed for Linux.
While the goals of the program are ease of use and user-friendly
tools, Scribus offers support for the following professional
publishing features: * CMYK colors
* Easy PDF creation
* Encapsulated Postscript import and export
* Creation of color separations.
Authors:
--------
Franz Schmid <Franz.Schmid@altmuehlnet.de>
Paul F. Johnson <paul@all-the-johnsons.co.uk>
Craig Bradney <cbradney@zip.com.au>
Peter Linnell <mrdocs@scribus.info>
Petr Van&#283;k <petr@yarpen.cz>
Riku Leino <tsoots@welho.com>
Craig Ringer <craig@postnewspapers.com.au>
Alessandro Rimoldi http://ideale.ch/contact
Jean-Jacques Sarton <jj.sarton@t-online.de>
Christian T<EFBFBD>pp <mr-ct@gmx.de>
Alastair Robinson <blackfive@fakenhamweb.co.uk>
Thomas Zastrow <webmaster@thomas-zastrow.de>
Steve Callcott
%prep
%setup -q -n %name-%tar_version
%patch1
%patch3
%build
mkdir build
cd build
export CXXFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
export CFLAGS="$CXXFLAGS -fno-strict-aliasing"
cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} -DCMAKE_BUILD_WITH_INSTALL_RPATH=FALSE \
-DCMAKE_SKIP_RPATH=TRUE -DDOCDIR=%{_docdir} -DLIB_INSTALL_DIR=%{_libdir} \
-DLIB_SUFFIX=$(echo %_lib | cut -b4-) -DWANT_CAIRO=1 ..
%make_jobs VERBOSE=1
%install
cd build
%makeinstall
cd ..
mkdir -p $RPM_BUILD_ROOT%{_docdir}/%{name}
install -m 644 -D $RPM_BUILD_ROOT/usr/share/scribus/icons/scribusicon.png $RPM_BUILD_ROOT/usr/share/icons/hicolor/48x48/apps/scribusicon.png
rm -rf $RPM_BUILD_ROOT/usr/share/mimelnk
install -m 644 -D %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/applications/scribus.desktop
%suse_update_desktop_file -r %name Office WordProcessor
install -m 644 -D scribus.xml $RPM_BUILD_ROOT%{_datadir}/mime/packages/scribus.xml
%fdupes $RPM_BUILD_ROOT
%post
if [ -f /usr/bin/update-mime-database ]; then
/usr/bin/update-mime-database /usr/share/mime > /dev/null
fi
%postun
if [ -f /usr/bin/update-mime-database ]; then
/usr/bin/update-mime-database /usr/share/mime > /dev/null
fi
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-, root, root)
%doc %_defaultdocdir/%name
%{_bindir}/*
/usr/share/applications/*.desktop
/usr/share/man/man?/*.*
/usr/share/man/*/man?/*.*
%{_libdir}/scribus
%{_prefix}/share/mime/packages/*.xml
%{_prefix}/share/scribus
/usr/share/icons/hicolor/48x48/apps/scribusicon.png
%dir /usr/share/man/pl
%dir /usr/share/man/pl/man1
%changelog
* Mon Dec 08 2008 dmueller@suse.de
- update to 1.3.3.12 (released tarball):
* Several fixes and improvements to text frames and the Story Editor.
* Some additional scripts have been added to enhance functionality.
* More translation and documentation updates.
* Several fixes to protect against possible crashes.
* Improvements to the Scripter to enable more features.
* Thu Oct 09 2008 meissner@suse.de
- added stdlib.h, string.h
- run %%fdupes
* Mon Jun 02 2008 crrodriguez@suse.de
- needs fno-strict-aliasing
* Wed Apr 16 2008 dmueller@suse.de
- update to 1.3.3.12svn:
* http://bugs.scribus.net/changelog_page.php
- add help files back (bnc#379906)
* Mon Apr 14 2008 dmueller@suse.de
- fix build against cmake 2.6
- sync buildrequires with the community package
* Sun Jan 13 2008 dmueller@suse.de
- update to 1.3.3.11:
* Special characters in plain text files aren't imported
correctly
* Change text string in PDF export dialog
* Tue Jan 08 2008 stbinner@suse.de
- update to 1.3.3.10, many bugfixes - for details see ChangeLog
* Wed Jun 27 2007 dmueller@suse.de
- build against cmake to fix various issues
* Wed Jun 13 2007 ltinkl@suse.cz
- update to 1.3.3.9 bugfix release
- many bugfixes
- more translation updates
- improvements to the SVG importer
- improvements to PDF forms
- update to 1.3.3.8
- many bugfixes
- more translation updates
- improvements to the SVG importer
- improvements to the Open Document Draw importer
- improvements to PDF forms
* Mon Apr 23 2007 pgajdos@suse.cz
- fixed doc paths in spec file
* Mon Mar 12 2007 pgajdos@suse.cz
- fixed gcc warnings in beta version:
* program uses possibly exploitable format strings
(format-not-literal.patch)
* program compares a char* pointer with string literal
(string-literal-comparsion.patch)
* added CFLAG -fno-strict-aliasing inside scribus.spec
* Thu Mar 08 2007 pgajdos@suse.cz
- fixed 'warning: comparsion with string literal' (#233016, #228963)
- string-literal-comparsion.patch
* Sun Jan 28 2007 stbinner@suse.de
- Updated to bugfix release 1.3.3.7
* Thu Nov 09 2006 sbrabec@suse.cz
- Fixed python detection (#213668).
* Sat Nov 04 2006 stbinner@suse.de
- fix build for < 10.1
* Wed Oct 18 2006 sbrabec@suse.cz
- Updated to version 1.3.3.4:
* Purely a bug fix release.
* Translations updated.
* Tue Aug 08 2006 stbinner@suse.de
- update to version 1.3.3.3 "stable usable development version"
* Fix borked color names and wrong Bitstream Vera rendering
* Many crash und other minor bug fixes
* Several translation updates
* Thu Jul 13 2006 stbinner@suse.de
- fix build for <10.1
* Wed May 31 2006 adrian@suse.de
- update to version 1.3.3.2 "stable usable development version"
* more than 200 bugs and feature requests got implemented
* fix for pdf export using Adobe Reader 7.x
* new language translations
* Mon May 29 2006 schwab@suse.de
- Don't strip binaries.
* Mon Feb 20 2006 sbrabec@suse.cz
- Export dynamic symbols from scribus binary (#148279).
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Fri Jan 20 2006 schwab@suse.de
- Don't strip binaries.
* Tue Jan 10 2006 sbrabec@suse.cz
- Re-enabled desktop file translation.
* Fri Jan 06 2006 sbrabec@suse.cz
- Updated to version 1.2.4.1.
* Thu Jan 05 2006 sbrabec@suse.cz
- Updated to version 1.2.4.
* Tue Jan 03 2006 sbrabec@suse.cz
- Suggest AdobeICCProfiles.
* Wed Dec 07 2005 sbrabec@suse.cz
- Search for ICC profiles in subdirectories.
http://bugs.scribus.net/view.php?id=2882
* Fri Nov 25 2005 sbrabec@suse.cz
- Fixed devel splitting (#117811).
- Resource /usr/local/share/color/icc.
http://bugs.scribus.net/view.php?id=2864
- Enabled parallel build.
* Tue Oct 25 2005 sbrabec@suse.cz
- Updated to version 1.2.3.
- Install MIME info files.
* Wed Jul 27 2005 sbrabec@suse.cz
- Provide and obsolete scribus-short-words.
* Wed Jul 13 2005 sbrabec@suse.cz
- Updated to version 1.2.2.1.
- Removed unneeded static modules and .la files for modules.
* Wed Jan 26 2005 sbrabec@suse.cz
- Obsoleted old documentation packages.
* Tue Jan 11 2005 sbrabec@suse.cz
- Updated to version 1.2.1.
* Thu Dec 16 2004 coolo@suse.de
- fix unsermake install
* Wed Sep 15 2004 sbrabec@suse.cz
- Worked-around bi-arch bugs by forcing /usr/lib (#44961).
http://bugs.scribus.net/bug_view_advanced_page.php?bug_id=0001057
* Sun Sep 05 2004 coolo@suse.de
- fixing build requires
* Tue Aug 31 2004 sbrabec@suse.cz
- Updated to version 1.2.
* Fri Aug 27 2004 sbrabec@suse.cz
- Updated to version 1.2RC1.
* Thu Apr 01 2004 ro@suse.de
- run update_admin to get current libtool macros
- some more configure hackery to adapt to updated kde-macros
to finally find python on lib64 platforms
* Wed Mar 31 2004 sf@suse.de
- add scribus-1.1.5-c++.diff (#37208)
* Tue Mar 30 2004 sbrabec@suse.cz
- Updated to version 1.1.6.
* Thu Mar 04 2004 sbrabec@suse.cz
- Updated to version 1.1.5.
* Mon Feb 23 2004 sbrabec@suse.cz
- Fixed and turned on CUPS support.
* Sat Jan 10 2004 adrian@suse.de
- build as user
* Fri Aug 22 2003 sbrabec@suse.cz
- Updated to version 1.0.1.
* Fri Aug 15 2003 adrian@suse.de
- install desktop file
* Thu Aug 14 2003 ro@suse.de
- run update_admin (autoreconf in kde-style)
- change prefix/lib to libdir in all Makefile.am
* Tue Aug 12 2003 sbrabec@suse.cz
- Updated to version 1.0.
* Thu Jun 12 2003 ro@suse.de
- add doc-dir to filelist
* Mon Mar 31 2003 ro@suse.de
- fix build on lib64
* Mon Feb 10 2003 sbrabec@suse.cz
- Fix Qt path for biarch.
* Mon Feb 10 2003 sbrabec@suse.cz
- Updated to version 0.9.7.
* Wed Nov 20 2002 sbrabec@suse.cz
- Added new package.
- FHS fixes.
- Aufoconf fixes.
- KDE autoconf fixes.