Name: scribus Version: 1.6.0 Release: %autorelease Summary: Desktop Publishing application written in Qt # swatches bring in the fun licenses License: GPL-2.0-or-later AND OGL-UK-3.0 AND CC0-1.0 AND CC-BY-4.0 AND CC-BY-SA-4.0 AND LicenseRef-Fedora-Public-Domain AND Apache-2.0 AND LGPL-2.0-or-later URL: http://www.scribus.net/ # svn export svn://scribus.net/trunk/Scribus scribus-%%{version} # tar --exclude-vcs -cJf scribus-%%{version}.tar.xz scribus-%%{version} ## The following script removes non free contents # ./make-free-archive %%{version} 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 BuildRequires: boost-devel >= 1.76 BuildRequires: cmake BuildRequires: cups-devel BuildRequires: desktop-file-utils BuildRequires: gcc-c++ BuildRequires: ghostscript BuildRequires: hyphen-devel BuildRequires: libappstream-glib BuildRequires: pkgconfig(cairo) >= 1.17.6 BuildRequires: pkgconfig(fontconfig) BuildRequires: pkgconfig(freetype2) >= 2.13.2 BuildRequires: pkgconfig(gnutls) BuildRequires: pkgconfig(GraphicsMagick) BuildRequires: pkgconfig(GraphicsMagick++) BuildRequires: pkgconfig(harfbuzz) BuildRequires: pkgconfig(hunspell) >= 1.7.2 BuildRequires: pkgconfig(icu-uc) BuildRequires: pkgconfig(lcms2) BuildRequires: pkgconfig(libcdr-0.1) BuildRequires: pkgconfig(libfreehand-0.1) BuildRequires: pkgconfig(libjpeg) BuildRequires: pkgconfig(libmspub-0.1) BuildRequires: pkgconfig(libpagemaker-0.0) BuildRequires: pkgconfig(libpng) BuildRequires: podofo0.9-devel BuildRequires: pkgconfig(libqxp-0.0) BuildRequires: pkgconfig(librevenge-0.0) BuildRequires: pkgconfig(libtiff-4) BuildRequires: pkgconfig(libvisio-0.1) BuildRequires: pkgconfig(libwpd-0.10) BuildRequires: pkgconfig(libwpg-0.3) BuildRequires: pkgconfig(libxml-2.0) BuildRequires: pkgconfig(libzmf-0.0) BuildRequires: pkgconfig(openscenegraph) BuildRequires: pkgconfig(openssl) BuildRequires: pkgconfig(poppler) BuildRequires: pkgconfig(poppler-cpp) BuildRequires: pkgconfig(poppler-data) BuildRequires: pkgconfig(python3) BuildRequires: pkgconfig(Qt5) > 5.14 BuildRequires: pkgconfig(Qt5Quick) BuildRequires: pkgconfig(Qt5UiTools) BuildRequires: pkgconfig(Qt5WebKit) BuildRequires: pkgconfig(tk) BuildRequires: pkgconfig(zlib) BuildRequires: python3dist(pillow) BuildRequires: python3-qt5-devel BuildRequires: python3dist(setuptools) BuildRequires: python3-tkinter %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. %prep %autosetup -p1 # fix permissions chmod a-x scribus/pageitem_latexframe.h # drop shebang lines from python scripts %py3_shebang_fix %{name}/plugins/scriptplugin/{samples,scripts}/*.py %build %cmake \ -DCMAKE_CXX_STANDARD=17 \ -DWANT_CPP17=ON \ -DWANT_CCACHE=YES \ -DWANT_DISTROBUILD=YES \ -DWANT_GRAPHICSMAGICK=1 \ -DWANT_HUNSPELL=1 \ %if "%{_lib}" == "lib64" -DWANT_LIB64=YES \ %endif -DWANT_NOHEADERINSTALL=1 \ -DWANT_NORPATH=1 \ -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/%{name}.desktop appstream-util validate-relax --nonet \ %{buildroot}%{_metainfodir}/%{name}.appdata.xml %files %license COPYING %doc AUTHORS ChangeLog COPYING README LINKS TRANSLATION %{_bindir}/%{name} %{_libdir}/%{name}/ %{_metainfodir}/%{name}.appdata.xml %{_datadir}/applications/%{name}.desktop %{_datadir}/mime/packages/%{name}.xml %{_datadir}/icons/hicolor/16x16/apps/%{name}.png %{_datadir}/icons/hicolor/32x32/apps/%{name}.png %{_datadir}/icons/hicolor/128x128/apps/%{name}.png %{_datadir}/icons/hicolor/256x256/apps/%{name}.png %{_datadir}/icons/hicolor/512x512/apps/%{name}.png %{_datadir}/icons/hicolor/1024x1024/apps/%{name}.png %{_datadir}/icons/hicolor/16x16/mimetypes/application-vnd.%{name}.png %{_datadir}/icons/hicolor/32x32/mimetypes/application-vnd.%{name}.png %{_datadir}/icons/hicolor/64x64/mimetypes/application-vnd.%{name}.png %{_datadir}/icons/hicolor/128x128/mimetypes/application-vnd.%{name}.png %{_datadir}/icons/hicolor/256x256/mimetypes/application-vnd.%{name}.png %{_datadir}/%{name}/ %{_mandir}/man1/* %{_mandir}/pl/man1/* %{_mandir}/de/man1/* %changelog %autochangelog