]>
Commit | Line | Data |
---|---|---|
5cd30316 | 1 | # |
a4e72ede | 2 | # TODO: files (docs and some translations) |
3 | # | |
28c2013c | 4 | # Conditional build: |
b4112dc3 | 5 | %bcond_without cairo # build with cairo support |
65b6f844 | 6 | %bcond_without cups # build without CUPS support |
28c2013c | 7 | # |
602a2888 | 8 | Summary: Scribus - Open Source Desktop Publishing |
bbb6acff | 9 | Summary(pl.UTF-8): Scribus - DTP dla Wolnego Oprogramowania |
713772d9 | 10 | Name: scribus |
1b7df6e5 JR |
11 | Version: 1.5.5 |
12 | Release: 1 | |
a4e72ede | 13 | License: GPL v2+ |
67c32cbe | 14 | Group: X11/Applications/Publishing |
9dfac7af | 15 | Source0: http://downloads.sourceforge.net/scribus/%{name}-%{version}.tar.xz |
1b7df6e5 | 16 | # Source0-md5: 6a9ddc8c45356d3c6c741e4c7bb0565a |
7a70ce42 | 17 | Patch1: %{name}-standard-font-paths.patch |
a8772e1d | 18 | Patch2: %{name}-docs.patch |
c284ad46 | 19 | Patch3: %{name}-sparc.patch |
1b7df6e5 JR |
20 | Patch4: qt-5.15.patch |
21 | Patch5: poppler-0.84.0.patch | |
22 | Patch6: poppler-0.86.0.patch | |
23 | Patch7: gcc10.patch | |
a403755d | 24 | URL: http://www.scribus.net/ |
1b7df6e5 JR |
25 | BuildRequires: GraphicsMagick-devel |
26 | BuildRequires: Qt5Core-devel | |
27 | BuildRequires: Qt5Gui-devel | |
28 | BuildRequires: Qt5Network-devel | |
29 | BuildRequires: Qt5OpenGL-devel | |
30 | BuildRequires: Qt5PrintSupport-devel | |
31 | BuildRequires: Qt5Widgets-devel | |
32 | BuildRequires: Qt5Xml-devel | |
7d196615 | 33 | %{?with_cairo:BuildRequires: cairo-devel >= 1.2.0} |
34 | BuildRequires: cmake >= 2.4.5 | |
11cd77a7 | 35 | %if %{with cups} |
36 | BuildRequires: cups-devel | |
37 | %else | |
38 | BuildConflicts: cups-devel | |
39 | %endif | |
1b7df6e5 | 40 | BuildRequires: fontconfig-devel |
b49fb994 | 41 | BuildRequires: freetype-devel >= 2.1.0 |
1b7df6e5 JR |
42 | BuildRequires: harfbuzz-devel |
43 | BuildRequires: harfbuzz-icu-devel | |
44 | BuildRequires: hunspell-devel | |
1440920d | 45 | BuildRequires: lcms-devel >= 1.09 |
00a821e5 | 46 | %{!?with_cairo:BuildRequires: libart_lgpl-devel >= 2.3.14} |
1b7df6e5 JR |
47 | BuildRequires: libcdr-devel |
48 | BuildRequires: libfreehand-devel | |
49 | BuildRequires: libicu-devel | |
713772d9 | 50 | BuildRequires: libjpeg-devel |
1b7df6e5 JR |
51 | BuildRequires: libmspub-devel |
52 | BuildRequires: libpagemaker-devel | |
4a24a55c | 53 | BuildRequires: libpng-devel |
1b7df6e5 JR |
54 | BuildRequires: libqxp-devel |
55 | BuildRequires: librevenge-devel | |
713772d9 | 56 | BuildRequires: libtiff-devel |
1b7df6e5 | 57 | BuildRequires: libvisio-devel |
1ae741fd | 58 | BuildRequires: libxml2-devel |
1b7df6e5 | 59 | BuildRequires: libzmf-devel |
4d90d975 | 60 | BuildRequires: openssl-devel |
b3c3b72a | 61 | BuildRequires: pkgconfig |
0c6cf346 | 62 | BuildRequires: podofo-devel |
1b7df6e5 JR |
63 | BuildRequires: poppler-cpp-devel |
64 | BuildRequires: poppler-devel | |
b895bb3d | 65 | BuildRequires: python-devel |
c7dadba1 | 66 | BuildRequires: python-modules |
1b7df6e5 JR |
67 | BuildRequires: qt5-build |
68 | BuildRequires: qt5-linguist | |
69 | BuildRequires: qt5-qmake | |
00a821e5 | 70 | BuildRequires: rpm-pythonprov |
a4e72ede | 71 | BuildRequires: rpmbuild(macros) >= 1.577 |
4308c310 | 72 | BuildRequires: sed >= 4.0 |
713772d9 | 73 | BuildRequires: zlib-devel |
0de1be40 | 74 | Requires: desktop-file-utils |
a01bbbed | 75 | Requires: python-PIL |
1c58f170 | 76 | Requires: python-tkinter |
0c6cf346 | 77 | Requires: shared-mime-info |
b895bb3d | 78 | Obsoletes: scribus-scripting |
c7dadba1 | 79 | Obsoletes: scribus-short-words |
4308c310 | 80 | Obsoletes: scribus-svg |
8e2b55ee | 81 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
713772d9 | 82 | |
49babc8e | 83 | %define specflags_ia32 -fomit-frame-pointer |
f4305d96 | 84 | |
713772d9 | 85 | %description |
602a2888 | 86 | Scribus is an open source desktop page layout program with the aim of |
87 | producing commerical grade output in PDF and Postscript, primarily, | |
88 | though not exclusively for Linux(R). | |
5e506b22 | 89 | |
8451357c JR |
90 | %description -l pl.UTF-8 |
91 | Scribus jest to program do tworzenia publikacji z założenia generujący | |
92 | dokumenty PDF oraz Postscript nadające się do użytku komercyjnego, | |
93 | przeznaczony głównie, lecz nie tylko, dla systemu Linux(R). | |
713772d9 | 94 | |
e3bcc0d4 | 95 | %package devel |
93305aac | 96 | Summary: Header files for Scribus plugins development |
bbb6acff | 97 | Summary(pl.UTF-8): Pliki nagłówkowe do tworzenia wtyczek Scribusa |
5e506b22 | 98 | Group: Development/Libraries |
e3bcc0d4 AM |
99 | |
100 | %description devel | |
93305aac JB |
101 | Header files for Scribus plugins development. |
102 | ||
8451357c JR |
103 | %description devel -l pl.UTF-8 |
104 | Pliki nagłówkowe do tworzenia wtyczek Scribusa. | |
e3bcc0d4 | 105 | |
42a08130 | 106 | %package docs |
107 | Summary: Documentation for Scribus | |
bbb6acff | 108 | Summary(pl.UTF-8): Dokumentacja dla Scribusa |
42a08130 | 109 | License: custom OPL (see License),FDL |
110 | Group: X11/Applications/Publishing | |
42a08130 | 111 | |
112 | %description docs | |
2250e404 | 113 | User documentation for Scribus. |
42a08130 | 114 | |
8451357c JR |
115 | %description docs -l pl.UTF-8 |
116 | Dokumentacja użytkownika dla Scribusa. | |
42a08130 | 117 | |
1ae741fd | 118 | %package icc |
119 | Summary: ICC profiles for Scribus | |
bbb6acff | 120 | Summary(pl.UTF-8): Profile ICC dla Scribusa |
1ae741fd | 121 | License: freely distributable |
764d5cec | 122 | Group: X11/Applications/Publishing |
be47d660 | 123 | Requires: %{name} = %{version}-%{release} |
1ae741fd | 124 | |
125 | %description icc | |
4308c310 ER |
126 | Some standard ICM CMYK and RGB profiles for use with Scribus. You |
127 | should take care to use custom ones! | |
1ae741fd | 128 | |
8451357c JR |
129 | %description icc -l pl.UTF-8 |
130 | Standardowe profile ICM w formacie CMYK i RGB do użycia w Scribusie. | |
131 | Zalecane jest używanie własnych profili zamiast nich! | |
1ae741fd | 132 | |
94bc87f8 | 133 | %package templates-base |
134 | Summary: Default document templates | |
bbb6acff | 135 | Summary(pl.UTF-8): Domyślne szablony dokumentów |
94bc87f8 | 136 | License: GPL v2 |
137 | Group: X11/Applications/Publishing | |
be47d660 | 138 | Requires: %{name} = %{version}-%{release} |
602a2888 | 139 | Obsoletes: scribus-templates < 1.2.1 |
94bc87f8 | 140 | |
141 | %description templates-base | |
142 | Default document templates shipped with Scribus. | |
143 | ||
8451357c JR |
144 | %description templates-base -l pl.UTF-8 |
145 | Domyślne szablony dokumentów dostarczane wraz ze Scribusem. | |
94bc87f8 | 146 | |
713772d9 | 147 | %prep |
9dfac7af | 148 | %setup -q |
46d83971 | 149 | %patch1 -p1 |
a8772e1d | 150 | %patch2 -p1 |
c284ad46 | 151 | %patch3 -p1 |
1b7df6e5 JR |
152 | %patch4 -p1 |
153 | %patch5 -p1 | |
154 | %patch6 -p1 | |
155 | %patch7 -p1 | |
a99af5fe | 156 | |
713772d9 | 157 | %build |
1b7df6e5 JR |
158 | mkdir -p build |
159 | cd build | |
d39c4b27 | 160 | |
1b7df6e5 | 161 | %cmake .. \ |
d45821ee | 162 | -DASPELL_EXECUTABLE=%{_bindir}/aspell \ |
1b7df6e5 | 163 | -DWANT_GRAPHICSMAGICK:BOOL=ON \ |
6f654875 | 164 | %if %{with cairo} |
7d196615 | 165 | -DWANT_CAIRO=1 |
6f654875 | 166 | %else |
7d196615 | 167 | -DWANT_LIBART=1 |
6f654875 | 168 | %endif |
7d196615 | 169 | |
1b7df6e5 | 170 | %{__make} |
713772d9 | 171 | |
172 | %install | |
173 | rm -rf $RPM_BUILD_ROOT | |
7d196615 | 174 | install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}} |
c7dadba1 | 175 | |
1b7df6e5 | 176 | %{__make} -C build install \ |
c7dadba1 | 177 | DESTDIR=$RPM_BUILD_ROOT |
178 | ||
1b7df6e5 | 179 | %{__mv} $RPM_BUILD_ROOT%{_datadir}/%{name}/translations/%{name}.lt_LT.qm $RPM_BUILD_ROOT%{_datadir}/%{name}/translations/%{name}.lt.qm |
7d196615 | 180 | |
1b7df6e5 | 181 | %{__rm} $RPM_BUILD_ROOT%{_datadir}/%{name}/doc/{AUTHORS,COPYING,ChangeLog,README,LINKS,TRANSLATION} |
0c6cf346 | 182 | |
4a24a55c JB |
183 | %clean |
184 | rm -rf $RPM_BUILD_ROOT | |
713772d9 | 185 | |
c7dadba1 | 186 | %post |
020fe03a | 187 | %update_desktop_database_post |
188 | %update_mime_database | |
c7dadba1 | 189 | |
602a2888 | 190 | %postun |
020fe03a | 191 | %update_desktop_database_postun |
192 | %update_mime_database | |
c7dadba1 | 193 | |
713772d9 | 194 | %files |
195 | %defattr(644,root,root,755) | |
1b7df6e5 | 196 | %doc AUTHORS ChangeLog NEWS README |
ad3c195f | 197 | %attr(755,root,root) %{_bindir}/scribus |
db3339e2 | 198 | %dir %{_libdir}/%{name} |
1b7df6e5 | 199 | %{_libdir}/%{name}/scribus.css |
db3339e2 | 200 | %dir %{_libdir}/%{name}/plugins |
201 | %attr(755,root,root) %{_libdir}/%{name}/plugins/*.so* | |
202 | %dir %{_libdir}/%{name}/plugins/gettext | |
203 | %attr(755,root,root) %{_libdir}/%{name}/plugins/gettext/*.so* | |
1b7df6e5 JR |
204 | %dir %{_datadir}/%{name} |
205 | %{_datadir}/%{name}/dicts | |
206 | %{_datadir}/%{name}/editorconfig | |
207 | %{_datadir}/%{name}/keysets | |
d45821ee | 208 | %dir %{_datadir}/%{name}/profiles |
a8772e1d | 209 | %dir %{_datadir}/%{name}/translations |
037ff8bc | 210 | %{_datadir}/%%{name}/translations/scribus*.qm |
d45821ee AM |
211 | %dir %{_datadir}/%{name}/swatches |
212 | %{_datadir}/%{name}/swatches/* | |
a8906c46 | 213 | %{_datadir}/%{name}/dtd |
f5005763 | 214 | %{_datadir}/%{name}/icons |
a8906c46 | 215 | %{_datadir}/%{name}/loremipsum |
c7dadba1 | 216 | %{_datadir}/mime/packages/scribus.xml |
217 | %dir %{_datadir}/%{name}/plugins | |
00a821e5 | 218 | %{_datadir}/%{name}/plugins/* |
020fe03a | 219 | %dir %{_datadir}/%{name}/samples |
220 | %{_datadir}/%{name}/samples/*.py | |
221 | %dir %{_datadir}/%{name}/scripts | |
037ff8bc | 222 | %{_datadir}/%{name}/scripts/* |
1b7df6e5 | 223 | %{_datadir}/%{name}/unicodenameslist.txt |
d585a1e1 | 224 | %{_desktopdir}/%{name}.desktop |
1b7df6e5 JR |
225 | %{_iconsdir}/hicolor/*x*/apps/scribus.png |
226 | %{_datadir}/metainfo/scribus.appdata.xml | |
7cad08e8 | 227 | %{_mandir}/man1/%{name}.1* |
0c6cf346 | 228 | %lang(de) %{_mandir}/de/man1/%{name}.1* |
c2773227 | 229 | %lang(pl) %{_mandir}/pl/man1/%{name}.1* |
42a08130 | 230 | |
a8772e1d | 231 | %files docs |
7cad08e8 | 232 | %defattr(644,root,root,755) |
a8772e1d | 233 | %dir %{_datadir}/%{name}/doc |
1b7df6e5 JR |
234 | %{_datadir}/%{name}/doc/en |
235 | %lang(de) %{_datadir}/%{name}/doc/de | |
236 | %lang(it) %{_datadir}/%{name}/doc/it | |
a8772e1d | 237 | |
1ae741fd | 238 | %files icc |
239 | %defattr(644,root,root,755) | |
d45821ee | 240 | %{_datadir}/scribus/profiles/* |
1ae741fd | 241 | |
94bc87f8 | 242 | %files templates-base |
243 | %defattr(644,root,root,755) | |
1b7df6e5 | 244 | %{_datadir}/%{name}/templates |