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

146 lines
3.6 KiB
RPMSpec
Raw Normal View History

#
# spec file for package scribus (Version 1.3.9)
#
# 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.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: scribus
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 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 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.
%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
%description devel
This package provides the development headers for %{name}. It is most useful
for developing plugins for %{name}.
%define prefix /usr
%prep
%setup -q
%build
export CXXFLAGS="%{optflags} -fno-strict-aliasing"
export CFLAGS="$CXXFLAGS -fno-strict-aliasing"
mkdir build
cd build
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
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
fi
%postun
if [ -f /usr/bin/update-mime-database ]; then
/usr/bin/update-mime-database /usr/share/mime > /dev/null
fi
%clean
rm -rf %{buildroot}
%files
%defattr(-, root, root)
%doc %{_datadir}/doc/packages/scribus
%{_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
%{_mandir}/pl/man1
%dir %{_datadir}/mimelnk
%dir %{_datadir}/mimelnk/application
%{_datadir}/mimelnk/application/vnd.scribus.desktop
%files devel
%defattr(-, root, root)
%{_includedir}/scribus
%changelog -n scribus