Accepting request 55906 from KDE:Distro:Factory

Accepted submit request 55906 from user mrdocs

OBS-URL: https://build.opensuse.org/request/show/55906
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/scribus?expand=0&rev=23
This commit is contained in:
Berthold Gunreben 2010-12-20 13:26:08 +00:00 committed by Git OBS Bridge
parent 43c1eacf24
commit 95bd5b338c
7 changed files with 120 additions and 241 deletions

View File

@ -1,25 +0,0 @@
--- CMakeLists.txt 2008/01/08 20:17:05 1.3
+++ CMakeLists.txt 2008/01/08 20:19:11
@@ -96,9 +96,9 @@
ADD_DEFINITIONS("-DSHAREDIR=\\\"${CMAKE_INSTALL_PREFIX}/${SHAREDIR}\\\"")
#SHARE
IF(TAG_VERSION)
- SET(DOCDIR "share/doc/${MAIN_DIR_NAME}${TAG_VERSION}/")
+ SET(DOCDIR "share/doc/packages/${MAIN_DIR_NAME}${TAG_VERSION}/")
ELSE(TAG_VERSION)
- SET(DOCDIR "share/doc/${MAIN_DIR_NAME}-${VERSION}/")
+ SET(DOCDIR "share/doc/packages/${MAIN_DIR_NAME}-${VERSION}/")
ENDIF (TAG_VERSION)
ADD_DEFINITIONS("-DSHAREDIR=\\\"${CMAKE_INSTALL_PREFIX}/${SHAREDIR}\\\"")
SET(DOCDIR "share/doc/${MAIN_DIR_NAME}${TAG_VERSION}/")
--- CMakeLists.txt 2008/01/09 10:27:50 1.3
+++ CMakeLists.txt 2008/01/09 10:28:02
@@ -101,7 +101,7 @@
SET(DOCDIR "share/doc/packages/${MAIN_DIR_NAME}-${VERSION}/")
ENDIF (TAG_VERSION)
ADD_DEFINITIONS("-DSHAREDIR=\\\"${CMAKE_INSTALL_PREFIX}/${SHAREDIR}\\\"")
-SET(DOCDIR "share/doc/${MAIN_DIR_NAME}${TAG_VERSION}/")
+SET(DOCDIR "share/doc/packages/${MAIN_DIR_NAME}${TAG_VERSION}/")
ADD_DEFINITIONS("-DDOCDIR=\\\"${CMAKE_INSTALL_PREFIX}/${DOCDIR}\\\"")
SET(ICONDIR "share/${MAIN_DIR_NAME}${TAG_VERSION}/icons/")
ADD_DEFINITIONS("-DICONDIR=\\\"${CMAKE_INSTALL_PREFIX}/${ICONDIR}\\\"")

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:dec70068ffe69d4b3f0089e7d3b3eedb13f9ccba7f42b3eda5f261d8b7e9e7c5
size 15062170

3
scribus-1.3.9.tar.bz2 Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:3e58a6e127a2c0d4aab8c60a28324572124b75bd3147eae0c689d8cf4c9cf8a4
size 35727555

View File

@ -1,3 +1,14 @@
-------------------------------------------------------------------
Tue Dec 14 10:08:30 UTC 2010 - mrdocs@opensuse.org
-spec file clean-ups from darix and remove all non-Suse related bits
-------------------------------------------------------------------
Thu Dec 9 20:22:40 UTC 2010 - mrdocs@opensuse.org
- 1.3.9 release
+ 60+ bug fixes
+ addtional templates
-------------------------------------------------------------------
Thu Mar 25 23:12:01 UTC 2010 - mrdocs@opensuse.org

View File

@ -1,62 +0,0 @@
[Desktop Entry]
Version=1.0
Encoding=UTF-8
Name=Scribus
Comment=Graphic Page Layout and Publication
Name[ar]=سكريبس
Name[fa]=اسکریباس
Name[lo]=
Name[ta]=ிி
GenericName=Page Layout (Stable)
GenericName[af]=Werkskerm Publisering
GenericName[bg]=Издателска програма
GenericName[bs]=Stono izdavaštvo (DTP)
GenericName[ca]=Publicació d'escriptori
GenericName[cs]=Publikační systém (DTP)
GenericName[cy]=Cyhoeddi Penbwrdd
GenericName[da]=Dtp
GenericName[eo]=DTP-programo
GenericName[es]=Publicación de escritorio
GenericName[et]=Küljendusrakendus
GenericName[fa]=نشر میزکار
GenericName[fi]=Julkaisuohjelma
GenericName[fr]=Publication assistée par ordinateur (PAO)
GenericName[he]=הוצאה לאור שולחנית
GenericName[hr]=Stolno izdavaštvo
GenericName[hu]=Kiadványszerkesztés
GenericName[it]=Pubblicazioni
GenericName[ja]=
GenericName[lo]=
GenericName[lt]=Darbastalio leidykla
GenericName[nb]=Datatrykkeprogram
GenericName[nn]=Datatrykk
GenericName[nso]=Kwalakwatso ya Desktop
GenericName[pl]=Program do składu tekstu
GenericName[pt]=Publicação no Ecrã
GenericName[pt_BR]=Publicação do Ambiente de Trabalho
GenericName[ru]=Настольное издательство
GenericName[sl]=Namizno založništvo
GenericName[sr]=Стоно издаваштво
GenericName[ss]=Kushicelela ku desktop
GenericName[sv]=Desktop Publishing
GenericName[th]=
GenericName[tr]=Masaüstü Yayıncılık
GenericName[uk]=Видавнича система
GenericName[uz]=Кичик нашриёт
GenericName[ven]=U andadza Desikithopo
GenericName[xh]=Upapasho lwe Desktop
GenericName[zh_CN]=
GenericName[zh_TW]=
GenericName[zu]=Ukushicilelwa kwe-Desktop
TryExec=scribus
Exec=scribus %f
MimeType=application/vnd.scribus
Terminal=false
Icon=scribusicon
Type=Application
X-StandardInstall=false
Categories=Graphics;Publishing;Qt;
StartupWMClass=scribus
X-KDE-SubstituteUID=false
X-KDE-Username=
DocPath=scribus

View File

@ -1,109 +1,111 @@
#
# spec file for package scribus (Version 1.3.3.14)
# spec file for package scribus (Version 1.3.9)
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) Peter Linnell and 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# 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: GPLv2+
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.14
Release: 1
%define tar_version %version
Source: %{name}-%{tar_version}.tar.bz2
Source1: vnd.%name.desktop
Source2: %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
Version: 1.3.9
Release: 0
License: GPL
Summary: Open Source Page Layout and Desktop Publishing (DTP)
Url: http://www.scribus.net/
Group: Productivity/Publishing/Other
Source: %{name}-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: aspell-devel
BuildRequires: boost-devel
BuildRequires: cairo-devel
BuildRequires: cmake >= 2.6.0
BuildRequires: cups-devel
BuildRequires: fontconfig-devel
BuildRequires: libQtWebKit-devel
BuildRequires: libpodofo-devel
BuildRequires: libqt4-devel >= 4.6.0
BuildRequires: libtiff-devel
BuildRequires: libxml2-devel
BuildRequires: openssl-devel
BuildRequires: pkgconfig
BuildRequires: python-devel
BuildRequires: shared-mime-info
BuildRequires: update-desktop-files
%if 0%{?suse_version} > 1000
Requires: ghostscript-library
Requires: python-imaging
Requires: tk
Suggests: AdobeICCProfiles
%endif
%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.
Scribus is a open source page layout program which
produces commercial grade output in PDF and Postscript, primarily,
though not exclusively, 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
While the goals of the program are ease of use and simple
easy-to-understand tools, Scribus support for professional
publishing features, such as CMYK and spot colors, easy PDF creation,
Encapsulated Postscript import and export and creation of color
separations.
* Easy PDF creation
%package devel
Summary: Open Source Page Layout / Desktop Publishing (DTP)
Group: Development/Libraries/Other
Requires: %{name} = %{version}
Requires: freetype2-devel
Requires: glibc-devel
Requires: libstdc++-devel
Requires: zlib-devel
* Encapsulated Postscript import and export
%description devel
This package provides the development headers for %{name}. It is most useful
for developing plugins for %{name}.
* 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
%define prefix /usr
%prep
%setup -q -n %name-%tar_version
#%patch1
%patch3
%setup -q
%build
export CXXFLAGS="%{optflags} -fno-strict-aliasing"
export CFLAGS="$CXXFLAGS -fno-strict-aliasing"
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 VERBOSE=1
cmake \
-DCMAKE_INSTALL_PREFIX=%prefix \
%if "%{_lib}" == "lib64"
-DWANT_LIB64=1 \
%endif
-DWANT_CAIRO=1 \
-DCMAKE_BUILD_WITH_INSTALL_RPATH=FALSE \
-DCMAKE_SKIP_RPATH=TRUE \
../
make %{?jobs:-j %jobs}
%install
cd build
%makeinstall
cd ..
mkdir -p $RPM_BUILD_ROOT%{_docdir}/%{name}
install -m 644 -D $RPM_BUILD_ROOT/usr/share/scribus/icons/scribus.png $RPM_BUILD_ROOT/usr/share/icons/hicolor/48x48/apps/scribus.png
rm -rf $RPM_BUILD_ROOT/usr/share/mimelnk
install -m 644 -D %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/applications/vnd.scribus.desktop
%suse_update_desktop_file -r vnd.%name Office WordProcessor
install -m 644 -D scribus.xml $RPM_BUILD_ROOT%{_datadir}/mime/packages/scribus.xml
cd build
make install \
DESTDIR=%{buildroot}
mkdir -p %{buildroot}%{_datadir}/doc/packages/scribus
%if 0%{?suse_version} > 1000
%suse_update_desktop_file -i %{buildroot}%{_datadir}/mimelnk/application/vnd.scribus.desktop Office WordProcessor
%endif
#update the mime database
%post
if [ -f /usr/bin/update-mime-database ]; then
/usr/bin/update-mime-database /usr/share/mime > /dev/null
@ -115,20 +117,28 @@ if [ -f /usr/bin/update-mime-database ]; then
fi
%clean
rm -rf $RPM_BUILD_ROOT
rm -rf %{buildroot}
%files
%defattr(-, root, root)
%doc %_defaultdocdir/%name
%{_bindir}/*
/usr/share/applications/vnd*.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/scribus.png
%dir /usr/share/man/pl
%dir /usr/share/man/pl/man1
%doc %{_datadir}/doc/packages/scribus
%changelog
%{_bindir}/scribus
%{_mandir}/man?/*.*
%{_mandir}/*/man?/*.*
%{_libdir}/scribus
%{_datadir}/mime/packages/scribus.xml
%{_datadir}/scribus
%{_datadir}/doc/scribus-%{version}
# This should be owned by filesystem or man, but there are only scribus files:
%lang(pl) %dir %{_mandir}/pl
%dir %{_datadir}/mimelnk
%dir %{_datadir}/mimelnk/application
%{_datadir}/mimelnk/application/vnd.scribus.desktop
%files devel
%defattr(-, root, root)
%{_includedir}/scribus
%changelog -n scribus

View File

@ -1,55 +0,0 @@
[Desktop Entry]
Type=Application
Name=Scribus
GenericName=Page Layout
MimeType=application/vnd.scribus;
Icon=scribus
Exec=scribus %f
Comment=Page Layout and Publication (Stable)
Comment[ar]=سكريبس
Comment[fa]=اسکریباس
#Comment[lo]=
Comment[ta]=ிி
Comment[af]=Werkskerm Publisering
Comment[bg]=Издателска програма
Comment[bs]=Stono izdavaštvo (DTP)
Comment[ca]=Publicació d'escriptori
Comment[cs]=Publikační systém (DTP)
Comment[cy]=Cyhoeddi Penbwrdd
Comment[da]=Dtp
Comment[eo]=DTP-programo
Comment[es]=Publicación de escritorio
Comment[et]=Küljendusrakendus
#Comment[fa]=نشر میزکار
Comment[fi]=Julkaisuohjelma
Comment[fr]=Publication assistée par ordinateur (PAO)
Comment[he]=הוצאה לאור שולחנית
Comment[hr]=Stolno izdavaštvo
Comment[hu]=Kiadványszerkesztés
Comment[it]=Pubblicazioni
Comment[ja]=
Comment[lo]=
Comment[lt]=Darbastalio leidykla
Comment[nb]=Datatrykkeprogram
Comment[nn]=Datatrykk
Comment[nso]=Kwalakwatso ya Desktop
Comment[pl]=Program do składu tekstu
Comment[pt]=Publicação no Ecrã
Comment[pt_BR]=Publicação do Ambiente de Trabalho
Comment[ru]=Настольное издательство
Comment[sl]=Namizno založništvo
Comment[sr]=Стоно издаваштво
Comment[ss]=Kushicelela ku desktop
Comment[sv]=Desktop Publishing
Comment[th]=
Comment[tr]=Masaüstü Yayıncılık
Comment[uk]=Видавнича система
Comment[uz]=Кичик нашриёт
Comment[ven]=U andadza Desikithopo
Comment[xh]=Upapasho lwe Desktop
Comment[zh_CN]=
Comment[zh_TW]=
Comment[zu]=Ukushicilelwa kwe-Desktop
[X-Property::X-KDE-NativeExtension]
Type=QString
Value=.sla