Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37799837
en ru br
Репозитории ALT
S:1.5.8-alt2
5.1: 1.3.5.1-alt4.M50P.1
4.1: 1.3.4-alt5
4.0: 1.3.4-alt3.M40.1
3.0: 1.2.2-alt1.cvs20050405
+backports:1.3.3.7-alt0.M30.1
www.altlinux.org/Changes

Группа :: Издательство
Пакет: scribus

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Name: scribus
Version: 1.3.5.1
Release: alt4.M50P.1
Serial: 1

Summary: DeskTop Publishing application written in Qt

Group: Publishing
License: GPLv2+
Url: http://www.scribus.net/
Packager: Vitaly Kuznetsov <vitty at altlinux.ru>

Source: http://downloads.sourceforge.net/%name/%name-%version.tar.bz2
Patch: %name-1.3.5-system-hyphen.patch
#Patch1: scribus-1.3.5.1-localization-alt.patch
Patch2: scribus-1.3.5.1-plugindir-alt.patch

# Automatically added by buildreq on Tue Aug 25 2009

BuildRequires: boost-devel cmake gcc-c++ libXfixes-devel libcairo-devel
BuildRequires: libcups-devel libhyphen-devel libjpeg-devel liblcms-devel
BuildRequires: libqt3-devel libqt4-devel libxml2-devel python-devel
BuildRequires: libaspell-devel desktop-file-utils

Requires: %name-doc = %version-%release
Requires: %name-data = %version-%release

%add_findreq_skiplist %_datadir/%name/samples/*

%description
Scribus is an desktop open source page layout program with
the aim of producing commercial grade output in PDF and
Postscript, primarily, though not exclusively for Linux.

While the goals of the program are for ease of use and simple easy to
understand tools, Scribus offers support for professional publishing
features, such as CMYK color, easy PDF creation, Encapsulated Postscript
import/export and creation of color separations.

%package devel
Summary: Header files for Scribus
Group: Development/C++
Requires: %name = %version-%release

%description devel
Header files for Scribus.

%package data
Summary: Data files of Scribus
Group: Publishing
BuildArch: noarch
Conflicts: %name < %version-%release

%description data
Data files of Scribus.

%package doc
Summary: Documentation files for Scribus
Group: Development/Tools
Requires: %name = %version-%release
BuildArch: noarch

%description doc
%summary

%prep
%setup -q -n %name-%version
%patch0 -p1 -b .system-hyphen
#patch1 -p1
%patch2 -p1

# recode man page to UTF-8

pushd scribus/manpages
iconv -f ISO8859-2 -t UTF-8 scribus.1.pl > tmp
touch -r scribus.1.pl tmp
mv tmp scribus.1.pl
popd

# fix permissions

chmod a-x scribus/pageitem_latexframe.h

%build
mkdir build
pushd build
%ifarch x86_64
cmake -DCMAKE_INSTALL_PREFIX:PATH='/usr' -DWANT_LIB64=true -DWANT_DISTROBUILD=true ..
%else
cmake -DCMAKE_INSTALL_PREFIX:PATH='/usr' -DWANT_DISTROBUILD=true ..
%endif

make VERBOSE=1
popd

%install
pushd build
%makeinstall_std
popd

install -p -D -m0644 %buildroot%_datadir/scribus/icons/scribus.png %buildroot%_pixmapsdir/scribus.png
install -p -D -m0644 %buildroot%_datadir/scribus/icons/scribusdoc.png %buildroot%_pixmapsdir/x-scribus.png

find %buildroot -type f -name "*.la" -exec rm -f {} ';'

# install the global desktop file

rm -f %buildroot%_datadir/mimelnk/application/*scribus.desktop
desktop-file-install --dir=%buildroot%_desktopdir scribus.desktop

# move icons into %%_?iconsdir

install -d %buildroot%_liconsdir
install -d %buildroot%_niconsdir
mv %buildroot%_pixmapsdir/%name.png %buildroot%_liconsdir
mv %buildroot%_pixmapsdir/x-%name.png %buildroot%_niconsdir

for i in $(ls ChangeLog*); do
bzip2 $i
done

%files
%dir %_docdir/%name-%version
%doc %_docdir/%name-%version/AUTHORS
%doc %_docdir/%name-%version/ChangeLog*
%doc %_docdir/%name-%version/ChangeLogSVN
%doc %_docdir/%name-%version/COPYING
%doc %_docdir/%name-%version/README
%doc %_docdir/%name-%version/TODO
%_bindir/%name
%_desktopdir/scribus.desktop
%_datadir/mime/packages/scribus.xml
#_pixmapsdir/*
%_liconsdir/*
%_niconsdir/*
%_libdir/%name
%_man1dir/*

%files data
%_datadir/%name

%files devel
%doc AUTHORS COPYING
%_includedir/%name

%files doc
%dir %_docdir/%name-%version
%_docdir/%name-%version/BUILDING
%_docdir/%name-%version/NEWS
%_docdir/%name-%version/PACKAGING
%_docdir/%name-%version/LINKS
%_docdir/%name-%version/TRANSLATION
%_docdir/%name-%version/en

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin