]> git.pld-linux.org Git - packages/inkscape.git/blame - inkscape.spec
- fix building with poppler 0.69
[packages/inkscape.git] / inkscape.spec
CommitLineData
0202eed1 1#
2# Conditional build
41394cda
JB
3%bcond_with dbus # DBus interface
4%bcond_with gtk3 # GTK+ 3 interface [experimental]
b65d9413 5%bcond_without gnomevfs # Don't use gnome vfs for loading files
ac61fe9a 6%bcond_with relocation # Enable binary relocation support
efb4548f 7#
a52a6383 8
efb4548f 9Summary: Scalable vector graphics editor
2ae499ae 10Summary(pl.UTF-8): Edytor skalowalnej grafiki wektorowej
597867c7 11Name: inkscape
a9a78faf 12Version: 0.92.3
f3dc1445 13Release: 4
8bb0fc46 14License: GPL v2+, LGPL v2.1+
fa7e1cfb 15Group: X11/Applications/Graphics
a9a78faf
JP
16Source0: https://media.inkscape.org/dl/resources/file/%{name}-%{version}.tar.bz2
17# Source0-md5: 4ef7171cc1de9e1608d8c49b77fed99e
41394cda
JB
18Patch0: %{name}-man.patch
19Patch1: %{name}-gtk3.patch
0d4a0b2e 20Patch2: %{name}-poppler.patch
f3dc1445 21Patch3: poppler0.69.patch
597867c7 22URL: http://www.inkscape.org/
fa7e1cfb
MB
23BuildRequires: ImageMagick-c++-devel
24BuildRequires: aspell-devel
41394cda 25BuildRequires: autoconf >= 2.64
25641cda 26BuildRequires: automake >= 1:1.9.4-2
6feea007 27BuildRequires: boost-devel >= 1.36
41394cda
JB
28BuildRequires: cairo-devel >= 1.10
29BuildRequires: cairomm-devel >= 1.9.8
30%{?with_dbus:BuildRequires: dbus-glib-devel}
35f78de7 31BuildRequires: freetype-devel >= 2.0
41394cda
JB
32BuildRequires: gc-devel >= 7.2
33BuildRequires: gettext-tools >= 0.17
34BuildRequires: glib2-devel >= 1:2.28
35BuildRequires: glibmm-devel >= 2.28
b65d9413 36%{?with_gnomevfs:BuildRequires: gnome-vfs2-devel >= 2.15.2}
8bb0fc46 37BuildRequires: gsl-devel
41394cda 38BuildRequires: intltool >= 0.40.0
6feea007 39BuildRequires: lcms2-devel >= 2
41394cda
JB
40BuildRequires: libcdr-devel >= 0.1
41BuildRequires: libexif-devel
6feea007 42BuildRequires: libgomp-devel
41394cda 43BuildRequires: libjpeg-devel
91f416f3 44BuildRequires: libpng-devel >= 1.2
41394cda 45BuildRequires: librevenge-devel
e47d40b1 46BuildRequires: libsigc++-devel >= 2.0.17
41394cda
JB
47BuildRequires: libstdc++-devel >= 6:4.7
48BuildRequires: libtool >= 2:2.2
49BuildRequires: libvisio-devel >= 0.1
6feea007 50BuildRequires: libwpd-devel >= 0.9
41394cda 51BuildRequires: libwpg-devel >= 0.3
e47d40b1 52BuildRequires: libxml2-devel >= 1:2.6.26
53BuildRequires: libxslt-devel >= 1.1.17
41394cda 54BuildRequires: pango-devel >= 1:1.24
35f78de7 55BuildRequires: pkgconfig
41394cda 56BuildRequires: poppler-glib-devel >= 0.29.0
efb4548f 57BuildRequires: popt-devel
41394cda 58BuildRequires: potrace-devel
ee6d403c 59BuildRequires: rpm-pythonprov
fa7e1cfb 60BuildRequires: sed >= 4.0
91f416f3 61BuildRequires: zlib-devel
41394cda
JB
62%if %{with gtk3}
63BuildRequires: gdl-devel >= 3.6
64BuildRequires: gtk+3-devel >= 3.8
65BuildRequires: gtkmm3-devel >= 3.10
66BuildRequires: gtkspell3-devel >= 3.0
67%else
68BuildRequires: gtk+2-devel >= 2:2.24
69BuildRequires: gtkmm-devel >= 2.24
70BuildRequires: gtkspell-devel >= 2.0.11
71%endif
fa7e1cfb 72Requires(post,postun): desktop-file-utils
41394cda
JB
73Requires: cairo >= 1.10
74Requires: cairomm >= 1.9.8
75Requires: gc >= 7.2
76Requires: glib2 >= 1:2.28
77Requires: glibmm >= 2.28
b65d9413 78%{?with_gnomevfs:Requires: gnome-vfs2 >= 2.15.2}
6feea007
JB
79Requires: libsigc++ >= 2.0.17
80Requires: libxml2 >= 1:2.6.26
81Requires: libxslt >= 1.1.17
41394cda 82Requires: pango >= 1:1.24
e5d3652d 83Requires: perl-XML-XQL
41394cda
JB
84Requires: poppler-glib >= 0.29.0
85%if %{with gtk3}
86Requires: gdl >= 3.6
87Requires: gtk+3 >= 3.8
88Requires: gtkmm3 >= 3.10
89%else
90Requires: gtk+2 >= 2:2.24
91Requires: gtkmm >= 2.24
92Requires: gtkspell >= 2.0.11
93%endif
8ccd877c 94Suggests: python-lxml
2478b7d2 95# sr@Latn vs. sr@latin
96Conflicts: glibc-misc < 6:2.7
97BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
597867c7 98
99%description
efb4548f
JB
100Inkscape is a program for viewing, making, and editing two-dimensional
101vector drawings.
597867c7 102
ab944b4b
JR
103%description -l pl.UTF-8
104Inkscape jest programem do przeglądania, tworzenia i edycji
efb4548f 105dwuwymiarowej grafiki wektorowej.
597867c7 106
107%prep
41394cda 108%setup -q
fa7e1cfb 109%patch0 -p1
f6400ea8 110%patch1 -p1
0d4a0b2e 111%patch2 -p1
f3dc1445 112%patch3 -p1
41394cda
JB
113
114%{__sed} -i -e 's,po/Makefile.in,,' configure.ac
ddf104ba 115
597867c7 116%build
efb4548f 117%{__libtoolize}
41394cda 118%{__gettextize}
ea00493b 119%{__intltoolize}
efb4548f 120%{__aclocal}
41394cda 121%{__autoconf}
efb4548f
JB
122%{__autoheader}
123%{__automake}
0202eed1 124%configure \
22c15797 125 %{?with_relocation:--enable-binreloc} \
41394cda
JB
126 %{?with_dbus:--enable-dbusapi} \
127 %{?with_gtk3:--enable-gtk3-experimental} \
128 --disable-silent-rules \
129 %{!?with_gnomevfs:--without-gnome-vfs}
35f78de7
JB
130
131%{__make}
597867c7 132
133%install
134rm -rf $RPM_BUILD_ROOT
597867c7 135
35f78de7
JB
136%{__make} install \
137 DESTDIR=$RPM_BUILD_ROOT
597867c7 138
41394cda
JB
139# localized manuals cleanup
140for manlang in de el fr ja sk zh_TW ; do
141 %{__mv} $RPM_BUILD_ROOT%{_mandir}/${manlang}/man1/{inkscape.${manlang}.1,inkscape.1}
142 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/inkscape.${manlang}.1
143done
144
145# unify locale name, overwrite outdated bn
146%{__mv} $RPM_BUILD_ROOT%{_localedir}/{bn_BD,bn}/LC_MESSAGES/inkscape.mo
147# joke language, unsupported
148%{__rm} -r $RPM_BUILD_ROOT%{_localedir}/en_US@piglatin
149# unify names
150%{__mv} $RPM_BUILD_ROOT%{_localedir}/{ks@aran,ks}
151%{__mv} $RPM_BUILD_ROOT%{_localedir}/{ks@deva,ks@devanagari}
152%{__mv} $RPM_BUILD_ROOT%{_localedir}/{sd@deva,sd@devanagari}
153# unsupported variants
154%{__rm} -r $RPM_BUILD_ROOT%{_localedir}/{kok@latin,mni@beng,sat@deva}
6a74624a 155
401cfdca
JB
156%find_lang %{name}
157
597867c7 158%clean
159rm -rf $RPM_BUILD_ROOT
160
22c15797 161%post
fa7e1cfb 162%update_desktop_database_post
22c15797 163
164%postun
fa7e1cfb 165%update_desktop_database_postun
22c15797 166
401cfdca 167%files -f %{name}.lang
597867c7 168%defattr(644,root,root,755)
8bb0fc46 169%doc AUTHORS ChangeLog NEWS README TRANSLATORS doc/HACKING.txt
90b51ec4 170%lang(ca) %doc README.ca.txt
41394cda 171%lang(de) %doc README.de.txt doc/HACKING.de.txt
90b51ec4 172%lang(es) %doc README.es.txt
41394cda
JB
173%lang(fr) %doc README.fr.txt doc/HACKING.fr.txt
174%lang(it) %doc README.it.txt doc/HACKING.it.txt
175%lang(pt_BR) %doc README.pt_BR.txt doc/HACKING.pt_BR.txt
176%lang(sk) %doc README.sk.txt
177%lang(sr) %doc README.sr.txt
fa7e1cfb
MB
178%attr(755,root,root) %{_bindir}/inkscape
179%attr(755,root,root) %{_bindir}/inkview
60fad862 180%dir %{_datadir}/inkscape
181%{_datadir}/inkscape/[!e]*
182%{_datadir}/inkscape/examples
183%dir %{_datadir}/inkscape/extensions
41394cda
JB
184%dir %{_datadir}/inkscape/extensions/Barcode
185%attr(755,root,root) %{_datadir}/inkscape/extensions/Barcode/*.py
186%{_datadir}/inkscape/extensions/Poly3DObjects
187%{_datadir}/inkscape/extensions/alphabet_soup
188%dir %{_datadir}/inkscape/extensions/ink2canvas
189%attr(755,root,root) %{_datadir}/inkscape/extensions/ink2canvas/*.py
190%{_datadir}/inkscape/extensions/test
191%{_datadir}/inkscape/extensions/xaml2svg
192%attr(755,root,root) %{_datadir}/inkscape/extensions/*.pl
193%attr(755,root,root) %{_datadir}/inkscape/extensions/*.py
194%attr(755,root,root) %{_datadir}/inkscape/extensions/*.rb
195%attr(755,root,root) %{_datadir}/inkscape/extensions/*.sh
60fad862 196%{_datadir}/inkscape/extensions/*.inx
a52a6383 197%{_datadir}/inkscape/extensions/*.js
41394cda 198%{_datadir}/inkscape/extensions/*.svg
34cd2370
PZ
199%{_datadir}/inkscape/extensions/*.xml
200%{_datadir}/inkscape/extensions/*.xsl
d0824210 201%{_datadir}/inkscape/extensions/*.xslt
a5d5a7c6
JR
202%{_datadir}/inkscape/extensions/fontfix.conf
203%{_datadir}/inkscape/extensions/inkscape.extension.rng
41394cda 204%{_datadir}/appdata/inkscape.appdata.xml
8bb0fc46 205%{_iconsdir}/hicolor/*/apps/inkscape.png
fa7e1cfb 206%{_desktopdir}/inkscape.desktop
41394cda
JB
207%{_mandir}/man1/inkscape.1*
208%{_mandir}/man1/inkview.1*
209%lang(de) %{_mandir}/de/man1/inkscape.1*
210%lang(el) %{_mandir}/el/man1/inkscape.1*
211%lang(fr) %{_mandir}/fr/man1/inkscape.1*
212%lang(ja) %{_mandir}/ja/man1/inkscape.1*
213%lang(sk) %{_mandir}/sk/man1/inkscape.1*
214%lang(zh_TW) %{_mandir}/zh_TW/man1/inkscape.1*
This page took 0.137759 seconds and 4 git commands to generate.