]>
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 |
d45821ee | 11 | Version: 1.4.1 |
0877d2e0 | 12 | Release: 1 |
a4e72ede | 13 | License: GPL v2+ |
67c32cbe | 14 | Group: X11/Applications/Publishing |
459a4257 | 15 | Source0: http://downloads.sourceforge.net/scribus/%{name}-%{version}.tar.bz2 |
d45821ee | 16 | # Source0-md5: aa6b74528c295153ab3bda88c86ba0d6 |
602a2888 | 17 | Source1: %{name}.desktop |
7a70ce42 | 18 | Patch1: %{name}-standard-font-paths.patch |
a8772e1d | 19 | Patch2: %{name}-docs.patch |
c284ad46 | 20 | Patch3: %{name}-sparc.patch |
a403755d | 21 | URL: http://www.scribus.net/ |
b4112dc3 | 22 | BuildRequires: QtCore-devel |
23 | BuildRequires: QtGui-devel | |
24 | BuildRequires: QtNetwork-devel | |
25 | BuildRequires: QtXml-devel | |
7d196615 | 26 | %{?with_cairo:BuildRequires: cairo-devel >= 1.2.0} |
27 | BuildRequires: cmake >= 2.4.5 | |
11cd77a7 | 28 | %if %{with cups} |
29 | BuildRequires: cups-devel | |
30 | %else | |
31 | BuildConflicts: cups-devel | |
32 | %endif | |
b49fb994 | 33 | BuildRequires: freetype-devel >= 2.1.0 |
1440920d | 34 | BuildRequires: lcms-devel >= 1.09 |
00a821e5 | 35 | %{!?with_cairo:BuildRequires: libart_lgpl-devel >= 2.3.14} |
713772d9 | 36 | BuildRequires: libjpeg-devel |
4a24a55c | 37 | BuildRequires: libpng-devel |
713772d9 | 38 | BuildRequires: libtiff-devel |
1ae741fd | 39 | BuildRequires: libxml2-devel |
4d90d975 | 40 | BuildRequires: openssl-devel |
b3c3b72a | 41 | BuildRequires: pkgconfig |
0c6cf346 | 42 | BuildRequires: podofo-devel |
b895bb3d | 43 | BuildRequires: python-devel |
c7dadba1 | 44 | BuildRequires: python-modules |
b4112dc3 | 45 | BuildRequires: qt4-build |
46 | BuildRequires: qt4-linguist | |
47 | BuildRequires: qt4-qmake | |
00a821e5 | 48 | BuildRequires: rpm-pythonprov |
a4e72ede | 49 | BuildRequires: rpmbuild(macros) >= 1.577 |
4308c310 | 50 | BuildRequires: sed >= 4.0 |
713772d9 | 51 | BuildRequires: zlib-devel |
0de1be40 | 52 | Requires: desktop-file-utils |
a01bbbed | 53 | Requires: python-PIL |
1c58f170 | 54 | Requires: python-tkinter |
0c6cf346 | 55 | Requires: shared-mime-info |
b895bb3d | 56 | Obsoletes: scribus-scripting |
c7dadba1 | 57 | Obsoletes: scribus-short-words |
4308c310 | 58 | Obsoletes: scribus-svg |
8e2b55ee | 59 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
713772d9 | 60 | |
49babc8e | 61 | %define specflags_ia32 -fomit-frame-pointer |
f4305d96 | 62 | |
713772d9 | 63 | %description |
602a2888 | 64 | Scribus is an open source desktop page layout program with the aim of |
65 | producing commerical grade output in PDF and Postscript, primarily, | |
66 | though not exclusively for Linux(R). | |
5e506b22 | 67 | |
8451357c JR |
68 | %description -l pl.UTF-8 |
69 | Scribus jest to program do tworzenia publikacji z założenia generujący | |
70 | dokumenty PDF oraz Postscript nadające się do użytku komercyjnego, | |
71 | przeznaczony głównie, lecz nie tylko, dla systemu Linux(R). | |
713772d9 | 72 | |
e3bcc0d4 | 73 | %package devel |
93305aac | 74 | Summary: Header files for Scribus plugins development |
bbb6acff | 75 | Summary(pl.UTF-8): Pliki nagłówkowe do tworzenia wtyczek Scribusa |
5e506b22 | 76 | Group: Development/Libraries |
a5f14381 | 77 | # currently it doesn't require base |
93305aac | 78 | Requires: qt-devel |
e3bcc0d4 AM |
79 | |
80 | %description devel | |
93305aac JB |
81 | Header files for Scribus plugins development. |
82 | ||
8451357c JR |
83 | %description devel -l pl.UTF-8 |
84 | Pliki nagłówkowe do tworzenia wtyczek Scribusa. | |
e3bcc0d4 | 85 | |
42a08130 | 86 | %package docs |
87 | Summary: Documentation for Scribus | |
bbb6acff | 88 | Summary(pl.UTF-8): Dokumentacja dla Scribusa |
42a08130 | 89 | License: custom OPL (see License),FDL |
90 | Group: X11/Applications/Publishing | |
42a08130 | 91 | |
92 | %description docs | |
2250e404 | 93 | User documentation for Scribus. |
42a08130 | 94 | |
8451357c JR |
95 | %description docs -l pl.UTF-8 |
96 | Dokumentacja użytkownika dla Scribusa. | |
42a08130 | 97 | |
1ae741fd | 98 | %package icc |
99 | Summary: ICC profiles for Scribus | |
bbb6acff | 100 | Summary(pl.UTF-8): Profile ICC dla Scribusa |
1ae741fd | 101 | License: freely distributable |
764d5cec | 102 | Group: X11/Applications/Publishing |
be47d660 | 103 | Requires: %{name} = %{version}-%{release} |
1ae741fd | 104 | |
105 | %description icc | |
4308c310 ER |
106 | Some standard ICM CMYK and RGB profiles for use with Scribus. You |
107 | should take care to use custom ones! | |
1ae741fd | 108 | |
8451357c JR |
109 | %description icc -l pl.UTF-8 |
110 | Standardowe profile ICM w formacie CMYK i RGB do użycia w Scribusie. | |
111 | Zalecane jest używanie własnych profili zamiast nich! | |
1ae741fd | 112 | |
94bc87f8 | 113 | %package templates-base |
114 | Summary: Default document templates | |
bbb6acff | 115 | Summary(pl.UTF-8): Domyślne szablony dokumentów |
94bc87f8 | 116 | License: GPL v2 |
117 | Group: X11/Applications/Publishing | |
be47d660 | 118 | Requires: %{name} = %{version}-%{release} |
602a2888 | 119 | Obsoletes: scribus-templates < 1.2.1 |
94bc87f8 | 120 | |
121 | %description templates-base | |
122 | Default document templates shipped with Scribus. | |
123 | ||
8451357c JR |
124 | %description templates-base -l pl.UTF-8 |
125 | Domyślne szablony dokumentów dostarczane wraz ze Scribusem. | |
94bc87f8 | 126 | |
713772d9 | 127 | %prep |
d45821ee | 128 | %setup -q -n Scribus |
46d83971 | 129 | %patch1 -p1 |
a8772e1d | 130 | %patch2 -p1 |
c284ad46 | 131 | %patch3 -p1 |
a99af5fe | 132 | |
713772d9 | 133 | %build |
4308c310 ER |
134 | export QTDIR=%{_prefix} |
135 | export KDEDIR=%{_prefix} | |
d39c4b27 | 136 | |
6f654875 | 137 | %cmake . \ |
d45821ee | 138 | -DASPELL_EXECUTABLE=%{_bindir}/aspell \ |
6f654875 | 139 | %if %{with cairo} |
7d196615 | 140 | -DWANT_CAIRO=1 |
6f654875 | 141 | %else |
7d196615 | 142 | -DWANT_LIBART=1 |
6f654875 | 143 | %endif |
7d196615 | 144 | |
a8772e1d | 145 | %{__make} -j1 |
713772d9 | 146 | |
147 | %install | |
148 | rm -rf $RPM_BUILD_ROOT | |
7d196615 | 149 | install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}} |
c7dadba1 | 150 | |
151 | %{__make} install \ | |
152 | DESTDIR=$RPM_BUILD_ROOT | |
153 | ||
602a2888 | 154 | install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir} |
bfe85468 | 155 | install $RPM_BUILD_ROOT%{_datadir}/%{name}/icons/scribus.png $RPM_BUILD_ROOT%{_pixmapsdir} |
7d196615 | 156 | |
a8772e1d | 157 | mv $RPM_BUILD_ROOT%{_datadir}/%{name}/translations/%{name}.lt_LT.qm $RPM_BUILD_ROOT%{_datadir}/%{name}/translations/%{name}.lt.qm |
d585a1e1 | 158 | |
a4e72ede | 159 | %{__rm} $RPM_BUILD_ROOT%{_datadir}/%{name}/doc/{AUTHORS,BUILDING,COPYING,ChangeLog,ChangeLogSVN,NEWS,PACKAGING,README,README.MacOSX,TODO} |
4308c310 | 160 | |
0c6cf346 | 161 | # currently not used, -devel subpackage? |
a4e72ede | 162 | %{__rm} -r $RPM_BUILD_ROOT%{_includedir}/%{name} |
0c6cf346 | 163 | |
4a24a55c JB |
164 | %clean |
165 | rm -rf $RPM_BUILD_ROOT | |
713772d9 | 166 | |
c7dadba1 | 167 | %post |
020fe03a | 168 | %update_desktop_database_post |
169 | %update_mime_database | |
c7dadba1 | 170 | |
602a2888 | 171 | %postun |
020fe03a | 172 | %update_desktop_database_postun |
173 | %update_mime_database | |
c7dadba1 | 174 | |
713772d9 | 175 | %files |
176 | %defattr(644,root,root,755) | |
a8772e1d | 177 | %doc AUTHORS ChangeLog ChangeLogSVN NEWS README |
ad3c195f | 178 | %attr(755,root,root) %{_bindir}/scribus |
db3339e2 | 179 | %dir %{_libdir}/%{name} |
180 | %{_libdir}/%{name}/import.prolog | |
0c6cf346 | 181 | %{_datadir}/%{name}/unicodenameslist.txt |
e3bcc0d4 | 182 | # don't mark dictionaries with lang() --misiek |
a8772e1d | 183 | %{_datadir}/%{name}/dicts |
0c6cf346 AM |
184 | %{_datadir}/%{name}/editorconfig |
185 | %{_datadir}/%{name}/keysets | |
db3339e2 | 186 | %dir %{_libdir}/%{name}/plugins |
187 | %attr(755,root,root) %{_libdir}/%{name}/plugins/*.so* | |
188 | %dir %{_libdir}/%{name}/plugins/gettext | |
189 | %attr(755,root,root) %{_libdir}/%{name}/plugins/gettext/*.so* | |
d45821ee | 190 | %dir %{_datadir}/%{name}/profiles |
a8772e1d | 191 | %dir %{_datadir}/%{name}/translations |
037ff8bc | 192 | %{_datadir}/%%{name}/translations/scribus*.qm |
d45821ee AM |
193 | %dir %{_datadir}/%{name}/swatches |
194 | %{_datadir}/%{name}/swatches/* | |
f5005763 | 195 | %dir %{_datadir}/%{name} |
a8906c46 | 196 | %{_datadir}/%{name}/dtd |
f5005763 | 197 | %{_datadir}/%{name}/icons |
a8906c46 | 198 | %{_datadir}/%{name}/loremipsum |
c7dadba1 | 199 | %{_datadir}/mime/packages/scribus.xml |
200 | %dir %{_datadir}/%{name}/plugins | |
00a821e5 | 201 | %{_datadir}/%{name}/plugins/* |
020fe03a | 202 | %dir %{_datadir}/%{name}/samples |
203 | %{_datadir}/%{name}/samples/*.py | |
204 | %dir %{_datadir}/%{name}/scripts | |
037ff8bc | 205 | %{_datadir}/%{name}/scripts/* |
d585a1e1 | 206 | %{_desktopdir}/%{name}.desktop |
7cad08e8 | 207 | %{_mandir}/man1/%{name}.1* |
0c6cf346 | 208 | %lang(de) %{_mandir}/de/man1/%{name}.1* |
c2773227 | 209 | %lang(pl) %{_mandir}/pl/man1/%{name}.1* |
bfe85468 | 210 | %{_pixmapsdir}/%{name}.png |
c2773227 | 211 | %{_datadir}/mimelnk/application/vnd.scribus.desktop |
d39c4b27 | 212 | |
7d196615 | 213 | #%files devel |
214 | #%defattr(644,root,root,755) | |
215 | #%{_includedir}/scribus | |
42a08130 | 216 | |
a8772e1d | 217 | %files docs |
7cad08e8 | 218 | %defattr(644,root,root,755) |
a8772e1d | 219 | %dir %{_datadir}/%{name}/doc |
037ff8bc | 220 | %{_datadir}/%{name}/doc/* |
221 | ##%dir %{_datadir}/%{name}/doc/en | |
222 | ##%{_datadir}/%{name}/doc/en/* | |
223 | ##%dir %{_datadir}/%{name}/doc/it | |
224 | ##%{_datadir}/%{name}/doc/it/* | |
a4e72ede | 225 | #%%lang(cs) %dir %{_datadir}/%{name}/doc/cs |
226 | #%%lang(cs) %dir %{_datadir}/%{name}/doc/cs/tutorials | |
227 | #%%lang(cs) %dir %{_datadir}/%{name}/doc/cs/tutorials/scribus-short-words | |
228 | #%%lang(cs) %{_datadir}/%{name}/doc/cs/tutorials/scribus-short-words/* | |
229 | #%%lang(de) %dir %{_datadir}/%{name}/doc/de | |
230 | #%%lang(de) %{_datadir}/%{name}/doc/de/* | |
231 | #%%lang(fr) %dir %{_datadir}/%{name}/doc/fr | |
232 | #%%lang(fr) %{_datadir}/%{name}/doc/fr/*.*ml | |
233 | #%%lang(fr) %dir %{_datadir}/%{name}/doc/fr/tutorials | |
234 | #%%lang(fr) %dir %{_datadir}/%{name}/doc/fr/tutorials/scribus-short-words | |
235 | #%%lang(fr) %{_datadir}/%{name}/doc/fr/tutorials/scribus-short-words/* | |
236 | #%%lang(pl) %dir %{_datadir}/%{name}/doc/pl | |
237 | #%%lang(pl) %dir %{_datadir}/%{name}/doc/pl/tutorials | |
238 | #%%lang(pl) %dir %{_datadir}/%{name}/doc/pl/tutorials/scribus-short-words | |
239 | #%%lang(pl) %{_datadir}/%{name}/doc/pl/tutorials/scribus-short-words/* | |
a8772e1d | 240 | |
1ae741fd | 241 | %files icc |
242 | %defattr(644,root,root,755) | |
d45821ee | 243 | %{_datadir}/scribus/profiles/* |
1ae741fd | 244 | |
94bc87f8 | 245 | %files templates-base |
246 | %defattr(644,root,root,755) | |
247 | %dir %{_datadir}/%{name}/templates | |
248 | %{_datadir}/%{name}/templates/*.xml | |
249 | %dir %{_datadir}/%{name}/templates/br1 | |
250 | %{_datadir}/%{name}/templates/br1/* | |
251 | %dir %{_datadir}/%{name}/templates/nl1 | |
252 | %{_datadir}/%{name}/templates/nl1/* | |
a4e72ede | 253 | #%%dir %{_datadir}/%{name}/templates/sc_presentation |
254 | #%%{_datadir}/%{name}/templates/sc_presentation/* | |
94bc87f8 | 255 | %dir %{_datadir}/%{name}/templates/textbased |
256 | %{_datadir}/%{name}/templates/textbased/* | |
037ff8bc | 257 | %dir %{_datadir}/%{name}/templates/buscard* |
258 | %{_datadir}/%{name}/templates/buscard*/* | |
259 | %dir %{_datadir}/%{name}/templates/cover* | |
260 | %{_datadir}/%{name}/templates/cover*/* | |
261 | %dir %{_datadir}/%{name}/templates/grid_* | |
262 | %{_datadir}/%{name}/templates/grid_*/* | |
263 | %dir %{_datadir}/%{name}/templates/cc | |
264 | %{_datadir}/%{name}/templates/cc/* | |
265 | %dir %{_datadir}/%{name}/templates/mc | |
266 | %{_datadir}/%{name}/templates/mc/* | |
267 | %dir %{_datadir}/%{name}/templates/pres_backgr* | |
268 | %{_datadir}/%{name}/templates/pres_backgr*/* | |
9a1ed208 | 269 | |
270 | %if 0 | |
271 | /usr/lib/scribus/import_la.prolog | |
9a1ed208 | 272 | /usr/share/scribus/scripts/ChangeLog |
273 | /usr/share/scribus/scripts/NEWS | |
274 | /usr/share/scribus/scripts/ReadMe | |
275 | /usr/share/scribus/scripts/TODO | |
276 | /usr/share/scribus/unicodenameslist.txt | |
277 | %endif |