Name: scribus Version: 1.4.6 Release: 3%{?dist} Summary: DeskTop Publishing application written in Qt Group: Applications/Productivity # swatches bring in the fun licenses License: GPLv2+ and OGL and CC0 and CC-BY and CC-BY-SA and Public Domain and ASL 2.0 and LGPLv2+ URL: http://www.scribus.net/ # ./make-free-archive %{version} Vendor: bww bitwise works GmbH %scm_source svn http://svn.netlabs.org/repos/ports/scribus/trunk 2228 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) #Source0: %{name}-%{version}-free.tar.xz #Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.xz #Source1: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.xz.asc #Source2: scribus.png # Patch1: %{name}-1.4.4-qreal_double.patch # fix build with non-free content removed # Patch2: %{name}-1.4.2-nonfree.patch # Fix necessary LPPL attribution # Patch3: %{name}-1.4.5-lppl-fixes.patch BuildRequires: cmake BuildRequires: cups-devel # BuildRequires: desktop-file-utils BuildRequires: lcms2-devel # BuildRequires: libart_lgpl-devel BuildRequires: libjpeg-devel BuildRequires: libpng-devel BuildRequires: libtiff-devel BuildRequires: libxml2-devel BuildRequires: openssl-devel BuildRequires: python-devel # BuildRequires: python-imaging-devel BuildRequires: libqt4-devel BuildRequires: zlib-devel BuildRequires: freetype-devel # BuildRequires: gnutls-devel BuildRequires: cairo-devel BuildRequires: hunspell-devel # BuildRequires: boost-devel # BuildRequires: podofo-devel # BuildRequires: hyphen-devel Requires: ghostscript Requires: python # Requires: python-imaging Requires: tkinter #Requires: shared-mime-info Obsoletes: %{name}-doc < %{version}-%{release} Obsoletes: %{name}-devel < %{version}-%{release} #filter_provides_in %{_libdir}/%{name}/plugins #filter_setup %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. #%setup -q #%patch1 -p1 -b .double #%patch2 -p1 -b .nonfree #%patch3 -p1 %debug_package %prep %scm_setup # recode man page to UTF-8 #pushd scribus/manpages #cd 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 #cd ../.. # fix permissions chmod a-x scribus/pageitem_latexframe.h # drop shebang lines from python scripts #for f in scribus/plugins/scriptplugin/{samples,scripts}/*.py #do # sed '1{/#!\/usr\/bin\/env\|#!\/usr\/bin\/python/d}' $f > $f.new # touch -r $f $f.new # mv $f.new $f #done %build mkdir build #pushd build cd build %cmake -DWANT_DISTROBUILD=YES -DWANT_HUNSPELL=YES -DWANT_NOHEADERINSTALL=YES .. make VERBOSE=1 %{?_smp_mflags} #popd cd .. %install #pushd build cd build make install DESTDIR=$RPM_BUILD_ROOT #popd cd .. #install -p -D -m0644 %SOURCE2 ${RPM_BUILD_ROOT}%{_datadir}/pixmaps/scribus.png install -p -D -m0644 ${RPM_BUILD_ROOT}%{_datadir}/scribus/icons/scribusdoc.png ${RPM_BUILD_ROOT}%{_datadir}/pixmaps/x-scribus.png find ${RPM_BUILD_ROOT} -type f -name "*.la" -exec rm -f {} ';' # install the global desktop file rm -f ${RPM_BUILD_ROOT}%{_datadir}/mimelnk/application/*scribus.desktop #desktop-file-install \ #%if (0%{?fedora} && 0%{?fedora} < 19) || (0%{?rhel} && 0%{?rhel} < 7) # --vendor="fedora" \ #%endif # --dir=${RPM_BUILD_ROOT}%{_datadir}/applications \ # scribus.desktop # remove unwanted stuff rm -rf ${RPM_BUILD_ROOT}%{_defaultdocdir}/%{name} # Register as an application to be visible in the software center # # NOTE: It would be *awesome* if this file was maintained by the upstream # project, translated and installed into the right place during `make install`. # # See http://www.freedesktop.org/software/appstream/docs/ for more details. # #mkdir -p $RPM_BUILD_ROOT%{_datadir}/appdata #cat > $RPM_BUILD_ROOT%{_datadir}/appdata/%{name}.appdata.xml < # # # # scribus.desktop # CC0-1.0 # #

# Scribus is a desktop publishing application that allows you to create posters, # magazines and books ready to send off to a printing house. # It supports professional publishing features, such color separations, CMYK and # spot colors, ICC color management, and versatile PDF creation. #

# #
# http://scribus.net/ # # http://upload.wikimedia.org/wikipedia/commons/f/f4/Scribus-1.3-Linux.png # # #
#EOF %post #touch --no-create %{_datadir}/mime/packages &> /dev/null || : %postun #if [ $1 -eq 0 ] ; then #touch --no-create %{_datadir}/mime/packages &> /dev/null || : #update-desktop-database &> /dev/null || : #update-mime-database %{?fedora:-n} %{_datadir}/mime &> /dev/null || : #fi %posttrans #update-desktop-database &> /dev/null || : #update-mime-database %{?fedora:-n} %{_datadir}/mime &> /dev/null || : %files %doc AUTHORS ChangeLog COPYING LINKS README %{_bindir}/%{name}.exe %{_libdir}/%{name}.dll %{_libdir}/%{name}/ #%{_datadir}/appdata/*%{name}.appdata.xml #%{_datadir}/applications/*%{name}.desktop %{_datadir}/mime/packages/%{name}.xml %{_datadir}/pixmaps/* %{_datadir}/%{name}/ %exclude %{_datadir}/%{name}/samples/*.py %exclude %{_datadir}/%{name}/scripts/*.py %{_mandir}/man1/* %{_mandir}/pl/man1/* %{_mandir}/de/man1/* %changelog * Mon Aug 14 2017 Elbert Pol - 1.4.6-3 - remove the scribus.png * Sat Aug 12 2017 Elbert Pol - 1.4.6-2 - Fix a wrong requires. * Sun Jul 30 2017 Elbert Pol - 1.4.6-1 - First OS/2 build.