%global origname scribus Name: scribus156 Version: 1.5.6.1 %global fversion %{version} Release: 2%{?dist} Summary: Open Source Page Layout License: GPLv2+ URL: http://www.scribus.net/ # svn export svn://scribus.net/trunk/Scribus scribus # tar --exclude-vcs -cJf scribus-1.5.0-20161204svn21568.tar.xz scribus # sf sucks Source0: https://downloads.sourceforge.net/%{origname}/%{origname}-%{version}.tar.gz Patch0: 0001-fix-ctor-for-scribus-1.5.6.patch Patch1: 0001-16427-Fix-build-failure-with-podofo-0.9.7.patch BuildRequires: boost-devel BuildRequires: cmake BuildRequires: cups-devel BuildRequires: desktop-file-utils BuildRequires: gcc-c++ BuildRequires: ghostscript BuildRequires: GraphicsMagick-devel BuildRequires: GraphicsMagick-c++-devel BuildRequires: hyphen-devel BuildRequires: hunspell-devel BuildRequires: lcms2-devel BuildRequires: libappstream-glib BuildRequires: libcdr-devel BuildRequires: libfreehand-devel BuildRequires: libjpeg-turbo-devel BuildRequires: libmspub-devel BuildRequires: libpagemaker-devel BuildRequires: libqxp-devel BuildRequires: librevenge-devel BuildRequires: libvisio-devel BuildRequires: libwpd-devel BuildRequires: libwpg-devel BuildRequires: libxml2-devel # Dependency needed for development repository BuildRequires: libzmf-devel BuildRequires: OpenSceneGraph-devel BuildRequires: openssl-devel BuildRequires: podofo-devel BuildRequires: poppler-cpp-devel BuildRequires: poppler-data-devel BuildRequires: poppler-devel BuildRequires: pkgconfig(python3) BuildRequires: python3-setuptools BuildRequires: python3-pillow-devel BuildRequires: python3-qt5-devel BuildRequires: python3-tkinter BuildRequires: qt5-qtbase-devel BuildRequires: qt5-qtdeclarative-devel BuildRequires: qt5-qttools-devel BuildRequires: qt5-qtwebkit-devel BuildRequires: tk-devel # Some libraries have pkconfig files so use them BuildRequires: pkgconfig(cairo) BuildRequires: pkgconfig(fontconfig) BuildRequires: pkgconfig(freetype2) BuildRequires: pkgconfig(gnutls) BuildRequires: pkgconfig(harfbuzz) BuildRequires: pkgconfig(icu-uc) BuildRequires: pkgconfig(libpng) BuildRequires: pkgconfig(libtiff-4) BuildRequires: pkgconfig(zlib) %if 0%{?fedora} >= 23 || 0%{?rhel} > 7 Supplements: %{name}-doc = %{version}-%{release} %else Requires: %{name}-doc = %{version}-%{release} %endif %filter_provides_in %{_libdir}/%{origname}-%{version}/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. %package devel Summary: Header files for Scribus Requires: %{name} = %{version}-%{release} %description devel #Header files for Scribus. %package doc Summary: Documentation files for Scribus Requires: %{name} = %{version}-%{release} %if 0%{?fedora} > 9 BuildArch: noarch Obsoletes: %{name}-doc < 1.3.5-0.12.beta %endif %description doc %{summary} %prep %autosetup -n %{origname}-%{version} -p1 # fix permissions chmod a-x scribus/pageitem_latexframe.h # drop shebang lines from python scripts pathfix.py -pni "%{__python3} %{py3_shbang_opts}" \ %{origname}/plugins/scriptplugin/{samples,scripts}/*.py %build %cmake -DWANT_CCACHE=YES \ -DWANT_DISTROBUILD=YES \ -DWANT_GRAPHICSMAGICK=1 \ -DWANT_HUNSPELL=1 \ %if "%{_lib}" == "lib64" -DWANT_LIB64=YES \ %endif -DWANT_NORPATH=1 \ -DWANT_VERSIONING=YES \ -DWITH_BOOST=1 \ -DWITH_PODOFO=1 %cmake_build %install %cmake_install find %{buildroot} -type f -name "*.la" -exec rm -f {} ';' %check desktop-file-validate %{buildroot}%{_datadir}/applications/%{origname}-%{fversion}.desktop appstream-util validate-relax --nonet \ %{buildroot}/%{_metainfodir}/%{origname}-%{fversion}.appdata.xml %files %doc %{_defaultdocdir}/%{origname}-%{fversion}/AUTHORS %doc %{_defaultdocdir}/%{origname}-%{fversion}/ChangeLog %doc %{_defaultdocdir}/%{origname}-%{fversion}/COPYING %doc %{_defaultdocdir}/%{origname}-%{fversion}/README %{_bindir}/%{origname}-%{fversion} %{_libdir}/%{origname}-%{fversion}/ %{_metainfodir}/%{origname}-%{fversion}.appdata.xml %{_datadir}/applications/%{origname}-%{fversion}.desktop %{_datadir}/mime/packages/%{origname}-%{fversion}.xml %{_datadir}/icons/hicolor/16x16/apps/%{origname}-%{fversion}.png %{_datadir}/icons/hicolor/32x32/apps/%{origname}-%{fversion}.png %{_datadir}/icons/hicolor/128x128/apps/%{origname}-%{fversion}.png %{_datadir}/icons/hicolor/256x256/apps/%{origname}-%{fversion}.png %{_datadir}/icons/hicolor/512x512/apps/%{origname}-%{fversion}.png %{_datadir}/icons/hicolor/1024x1024/apps/%{origname}-%{fversion}.png %{_datadir}/%{origname}-%{fversion}/ %{_mandir}/man1/* %{_mandir}/pl/man1/* %{_mandir}/de/man1/* %files devel %doc AUTHORS COPYING %files doc %dir %{_defaultdocdir}/%{origname}-%{fversion} %lang(de) %{_defaultdocdir}/%{origname}-%{fversion}/de %lang(en) %{_defaultdocdir}/%{origname}-%{fversion}/en %lang(it) %{_defaultdocdir}/%{origname}-%{fversion}/it %lang(ru) %{_defaultdocdir}/%{origname}-%{fversion}/ru %{_defaultdocdir}/%{origname}-%{fversion}/README* %{_defaultdocdir}/%{origname}-%{fversion}/LINKS %{_defaultdocdir}/%{origname}-%{fversion}/TRANSLATION %changelog * Wed Feb 24 2021 Michael J Gruber - 1.5.6.1-2 - fix build failure with podofo 0.9.7 * Sun Nov 15 2020 Michael J Gruber - 1.5.6.1-1 - release of 1.5.6.1 (hunspell bugfix) * Thu Nov 12 2020 Michael J Gruber - 1.5.6-2 - fix missing plugin symbols * Wed Nov 11 2020 Michael J Gruber - 1.5.6-1 - release of 1.5.6 * Wed Nov 11 2020 Michael J Gruber - 1.5.6-0.20201111git - rebase with fedora spec file for 1.5.6-0.13 * Wed Jul 22 2020 Michael J Gruber - 1.5.6-0.20200722git - adjust to new cmake macros * Mon Nov 04 2019 Michael J Gruber - 1.5.6-0.20191104git - remove upstreamed patch * Sat Nov 02 2019 Michael J Gruber - 1.5.6-0.20191102git - fix build with python 3.8 * Fri Nov 01 2019 Michael J Gruber - 1.5.6-0.20191101git - scribus scripter uses py3 now, hooray! * Wed Aug 14 2019 Michael J Gruber - 1.5.6-0.20190814git - make scribus fit for rawhide (py == py3) until they kill off py2 * Mon Aug 12 2019 Michael J Gruber - 1.5.6-0.20190812git - 1.5.5 is released, svn is 1.5.6 now * Fri Dec 07 2018 Michael J Gruber - 1.5.5-0.20181207git - rename to allow easier parallel install * Thu Nov 22 2018 Luya Tshimbalanga - 1.5.5-0-20181122git - Snapshot svn 22773 * Wed Nov 14 2018 Luya Tshimbalanga - 1.5.5-0-20181114git - Snapshot svn 22756 * Sat Nov 03 2018 Luya Tshimbalanga - 1.5.5-0-20181101git - Snapshot svn 22751 * Thu Oct 25 2018 Luya Tshimbalanga - 1.5.5-0-20181022git - Snapshot svn 22741 * Thu Oct 25 2018 Luya Tshimbalanga - 1.5.5-0-20181021git - Snapshot svn 22740 * Sat Oct 13 2018 Luya Tshimbalanga - 1.5.5-0.20181013git - Snapshot svn 22730 * Mon Oct 01 2018 Luya Tshimbalanga - 1.5.5-0-20181001git - Snapshot svn 22716 * Mon Sep 24 2018 Luya Tshimbalanga - 1.5.5-0-20180924git - Snapshot svn 22704 * Fri Sep 07 2018 Luya Tshimbalanga - 1.5.5-0-20180907git - Snapshot svn 22672 * Fri Aug 24 2018 Luya Tshimbalanga - 1.5.5-0-20180824git - Snapshot svn 22649 * Wed Aug 22 2018 Luya Tshimbalanga - 1.5.5-0-20180822git - Snapshot svn 22641 * Tue Aug 07 2018 Luya Tshimbalanga - 1.5.5-0-20180807git - Snapshot svn 22620 - Add gcc-c++ dependencies * Sun Jul 22 2018 Luya Tshimbalanga - 1.5.5-0-20180722git - Snapshot svn 22597 * Thu Jun 21 2018 Luya Tshimbalanga - 1.5.5-0-20180621git - New snapshot * Wed Jun 06 2018 Luya Tshimbalanga - 1.5.5-0-20180606git - Snapshot svn 22578 * Tue May 29 2018 Luya Tshimbalanga - 1.5.5-0-20180529git - Snapshot svn 22563 * Fri May 04 2018 Luya Tshimbalanga - 1.5.5-0-20180504git - Snapshot svn 22522 * Wed May 02 2018 Luya Tshimbalanga - 1.5.5-0-20180502git - Snapshot svn 22514 * Mon Apr 30 2018 Luya Tshimbalanga - 1.5.5-0.20180430git - Snapshot svn 22496 * Mon Apr 23 2018 Luya Tshimbalanga - 1.5.4-0.20180423git - Snapshot svn 22473 * Wed Apr 18 2018 Luya Tshimbalanga - 1.5.4-0-20180418git - Snapshot svn 22469 * Tue Apr 10 2018 Luya Tshimbalanga - 1.5.4-0.20180410git - Snapshot svn 22466