]>
Commit | Line | Data |
---|---|---|
0202eed1 | 1 | # |
2 | # Conditional build | |
41394cda | 3 | %bcond_with dbus # DBus interface |
ac61fe9a | 4 | %bcond_with relocation # Enable binary relocation support |
48ae4e95 | 5 | %bcond_with imagick # ImageMagick 6.x instead of GraphicsMagick |
efb4548f | 6 | # |
a52a6383 | 7 | |
efb4548f | 8 | Summary: Scalable vector graphics editor |
2ae499ae | 9 | Summary(pl.UTF-8): Edytor skalowalnej grafiki wektorowej |
597867c7 | 10 | Name: inkscape |
dab787ec | 11 | Version: 1.1.2 |
42a2ddce | 12 | Release: 2 |
8bb0fc46 | 13 | License: GPL v2+, LGPL v2.1+ |
fa7e1cfb | 14 | Group: X11/Applications/Graphics |
41577449 | 15 | # download: follow https://inkscape.org/release/ |
eac4f609 | 16 | Source0: https://media.inkscape.org/dl/resources/file/%{name}-%{version}.tar.xz |
dab787ec | 17 | # Source0-md5: a486807ffdf89a1d7ce9425dd60555ec |
42a2ddce | 18 | Patch0: %{name}-poppler.patch |
41577449 | 19 | URL: https://inkscape.org/ |
48ae4e95 JB |
20 | %{!?with_imagick:BuildRequires: GraphicsMagick-c++-devel} |
21 | %{?with_imagick:BuildRequires: ImageMagick6-c++-devel < 7} | |
fa7e1cfb | 22 | BuildRequires: aspell-devel |
6feea007 | 23 | BuildRequires: boost-devel >= 1.36 |
41394cda JB |
24 | BuildRequires: cairo-devel >= 1.10 |
25 | BuildRequires: cairomm-devel >= 1.9.8 | |
48ae4e95 JB |
26 | BuildRequires: cmake >= 3.1.0 |
27 | %if %{with dbus} | |
28 | BuildRequires: dbus-devel | |
29 | BuildRequires: dbus-glib-devel | |
30 | %endif | |
31 | BuildRequires: double-conversion-devel | |
32 | BuildRequires: fontconfig-devel | |
35f78de7 | 33 | BuildRequires: freetype-devel >= 2.0 |
41394cda | 34 | BuildRequires: gc-devel >= 7.2 |
48ae4e95 | 35 | BuildRequires: gdl-devel >= 3.6 |
41394cda JB |
36 | BuildRequires: gettext-tools >= 0.17 |
37 | BuildRequires: glib2-devel >= 1:2.28 | |
38 | BuildRequires: glibmm-devel >= 2.28 | |
8bb0fc46 | 39 | BuildRequires: gsl-devel |
e147fdb2 | 40 | BuildRequires: gspell-devel >= 1.0 |
48ae4e95 JB |
41 | BuildRequires: gtk+3-devel >= 3.22 |
42 | BuildRequires: gtkmm3-devel >= 3.22 | |
48ae4e95 | 43 | BuildRequires: harfbuzz-devel |
6feea007 | 44 | BuildRequires: lcms2-devel >= 2 |
e147fdb2 | 45 | BuildRequires: lib2geom-devel >= 1.1 |
41394cda JB |
46 | BuildRequires: libcdr-devel >= 0.1 |
47 | BuildRequires: libexif-devel | |
6feea007 | 48 | BuildRequires: libgomp-devel |
41394cda | 49 | BuildRequires: libjpeg-devel |
91f416f3 | 50 | BuildRequires: libpng-devel >= 1.2 |
41394cda | 51 | BuildRequires: librevenge-devel |
e47d40b1 | 52 | BuildRequires: libsigc++-devel >= 2.0.17 |
0ed466fa | 53 | BuildRequires: libsoup-devel >= 2.42 |
41394cda | 54 | BuildRequires: libstdc++-devel >= 6:4.7 |
41394cda | 55 | BuildRequires: libvisio-devel >= 0.1 |
6feea007 | 56 | BuildRequires: libwpd-devel >= 0.9 |
41394cda | 57 | BuildRequires: libwpg-devel >= 0.3 |
e47d40b1 | 58 | BuildRequires: libxml2-devel >= 1:2.6.26 |
59 | BuildRequires: libxslt-devel >= 1.1.17 | |
41394cda | 60 | BuildRequires: pango-devel >= 1:1.24 |
35f78de7 | 61 | BuildRequires: pkgconfig |
41394cda | 62 | BuildRequires: poppler-glib-devel >= 0.29.0 |
efb4548f | 63 | BuildRequires: popt-devel |
41394cda | 64 | BuildRequires: potrace-devel |
ee6d403c | 65 | BuildRequires: rpm-pythonprov |
283c18ba | 66 | BuildRequires: rpmbuild(macros) >= 1.752 |
fa7e1cfb | 67 | BuildRequires: sed >= 4.0 |
48ae4e95 | 68 | BuildRequires: xorg-lib-libX11-devel |
91f416f3 | 69 | BuildRequires: zlib-devel |
fa7e1cfb | 70 | Requires(post,postun): desktop-file-utils |
41394cda JB |
71 | Requires: cairo >= 1.10 |
72 | Requires: cairomm >= 1.9.8 | |
73 | Requires: gc >= 7.2 | |
48ae4e95 | 74 | Requires: gdl >= 3.6 |
41394cda JB |
75 | Requires: glib2 >= 1:2.28 |
76 | Requires: glibmm >= 2.28 | |
48ae4e95 JB |
77 | Requires: gtk+3 >= 3.22 |
78 | Requires: gtkmm3 >= 3.22 | |
6feea007 JB |
79 | Requires: libsigc++ >= 2.0.17 |
80 | Requires: libxml2 >= 1:2.6.26 | |
81 | Requires: libxslt >= 1.1.17 | |
41394cda | 82 | Requires: pango >= 1:1.24 |
e5d3652d | 83 | Requires: perl-XML-XQL |
41394cda | 84 | Requires: poppler-glib >= 0.29.0 |
8ccd877c | 85 | Suggests: python-lxml |
2478b7d2 | 86 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
597867c7 | 87 | |
88 | %description | |
efb4548f JB |
89 | Inkscape is a program for viewing, making, and editing two-dimensional |
90 | vector drawings. | |
597867c7 | 91 | |
ab944b4b JR |
92 | %description -l pl.UTF-8 |
93 | Inkscape jest programem do przeglądania, tworzenia i edycji | |
efb4548f | 94 | dwuwymiarowej grafiki wektorowej. |
597867c7 | 95 | |
283c18ba JB |
96 | %package -n bash-completion-inkscape |
97 | Summary: Bash completion for inkscape arguments | |
98 | Summary(pl.UTF-8): Bashowe dopełnianie argumentów programu inkscape | |
99 | Group: Applications/Shells | |
100 | Requires: %{name} = %{version}-%{release} | |
101 | Requires: bash-completion >= 2.0 | |
45e9cb58 | 102 | BuildArch: noarch |
283c18ba JB |
103 | |
104 | %description -n bash-completion-inkscape | |
105 | Bash completion for inkscape arguments. | |
106 | ||
107 | %description -n bash-completion-inkscape -l pl.UTF-8 | |
108 | Bashowe dopełnianie argumentów programu inkscape. | |
109 | ||
597867c7 | 110 | %prep |
dab787ec | 111 | %setup -q -n %{name}-%{version}_2022-02-04_0a00cf5339 |
42a2ddce | 112 | %patch0 -p1 |
c58cbea3 | 113 | |
5700ea5c JB |
114 | # python3-only |
115 | %{__sed} -i -e '1s,/usr/bin/env python3,%{__python3},' \ | |
116 | CMakeScripts/cmake_consistency_check.py \ | |
117 | buildtools/check_license_headers.py \ | |
118 | share/extensions/*.py \ | |
119 | share/extensions/tests/add_pylint.py \ | |
120 | share/*/i18n.py | |
c58cbea3 | 121 | |
5700ea5c JB |
122 | # look python2/3 compatible |
123 | %{__sed} -i -e '1s,/usr/bin/env python$,%{__python3},' \ | |
124 | buildtools/msys2checkdeps.py \ | |
125 | share/extensions/*.py \ | |
126 | share/extensions/inkex/tester/inx.py \ | |
127 | share/extensions/tests/test_*.py \ | |
128 | ||
129 | # python2-only | |
130 | %{__sed} -i -e '1s,/usr/bin/python$,%{__python},' \ | |
131 | packaging/scripts/lp-mark-bugs-released | |
132 | ||
133 | %{__sed} -i -e '1s,/usr/bin/env perl$,%{__perl},' \ | |
134 | share/attributes/genMapDataCSS.pl \ | |
135 | share/attributes/genMapDataSVG.pl | |
c58cbea3 | 136 | |
597867c7 | 137 | %build |
695e9cbe JR |
138 | mkdir -p build |
139 | cd build | |
140 | ||
48ae4e95 | 141 | %cmake .. \ |
695e9cbe JR |
142 | -DBUILD_SHARED_LIBS:BOOL=OFF \ |
143 | %{cmake_on_off relocation ENABLE_BINRELOC} \ | |
48ae4e95 JB |
144 | %{cmake_on_off dbus WITH_DBUS} \ |
145 | %{cmake_on_off imagick WITH_IMAGE_MAGICK} | |
35f78de7 JB |
146 | |
147 | %{__make} | |
597867c7 | 148 | |
149 | %install | |
150 | rm -rf $RPM_BUILD_ROOT | |
597867c7 | 151 | |
695e9cbe | 152 | %{__make} -C build install \ |
35f78de7 | 153 | DESTDIR=$RPM_BUILD_ROOT |
597867c7 | 154 | |
41394cda JB |
155 | # unify locale name, overwrite outdated bn |
156 | %{__mv} $RPM_BUILD_ROOT%{_localedir}/{bn_BD,bn}/LC_MESSAGES/inkscape.mo | |
41394cda JB |
157 | # unify names |
158 | %{__mv} $RPM_BUILD_ROOT%{_localedir}/{ks@aran,ks} | |
159 | %{__mv} $RPM_BUILD_ROOT%{_localedir}/{ks@deva,ks@devanagari} | |
160 | %{__mv} $RPM_BUILD_ROOT%{_localedir}/{sd@deva,sd@devanagari} | |
161 | # unsupported variants | |
162 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/{kok@latin,mni@beng,sat@deva} | |
6a74624a | 163 | |
dab787ec | 164 | %{__rm} $RPM_BUILD_ROOT%{_datadir}/inkscape/extensions/{.pylintrc,LICENSE.txt,MANIFEST.in,README.md,TESTING.md,doxygen-main.dox,setup.cfg,setup.py,tox.ini} |
283c18ba | 165 | |
401cfdca JB |
166 | %find_lang %{name} |
167 | ||
597867c7 | 168 | %clean |
169 | rm -rf $RPM_BUILD_ROOT | |
170 | ||
22c15797 | 171 | %post |
fa7e1cfb | 172 | %update_desktop_database_post |
22c15797 | 173 | |
174 | %postun | |
fa7e1cfb | 175 | %update_desktop_database_postun |
22c15797 | 176 | |
401cfdca | 177 | %files -f %{name}.lang |
597867c7 | 178 | %defattr(644,root,root,755) |
695e9cbe | 179 | %doc AUTHORS CONTRIBUTING.md NEWS.md README.md |
fa7e1cfb MB |
180 | %attr(755,root,root) %{_bindir}/inkscape |
181 | %attr(755,root,root) %{_bindir}/inkview | |
60fad862 | 182 | %dir %{_datadir}/inkscape |
183 | %{_datadir}/inkscape/[!e]* | |
184 | %{_datadir}/inkscape/examples | |
185 | %dir %{_datadir}/inkscape/extensions | |
41394cda JB |
186 | %{_datadir}/inkscape/extensions/Poly3DObjects |
187 | %{_datadir}/inkscape/extensions/alphabet_soup | |
695e9cbe JR |
188 | %{_datadir}/inkscape/extensions/barcode |
189 | %{_datadir}/inkscape/extensions/ink2canvas_lib | |
190 | %{_datadir}/inkscape/extensions/inkex | |
191 | %{_datadir}/inkscape/extensions/svg_fonts | |
192 | %{_datadir}/inkscape/extensions/tools | |
41394cda | 193 | %{_datadir}/inkscape/extensions/xaml2svg |
41394cda | 194 | %attr(755,root,root) %{_datadir}/inkscape/extensions/*.py |
41394cda | 195 | %attr(755,root,root) %{_datadir}/inkscape/extensions/*.sh |
283c18ba | 196 | %{_datadir}/inkscape/extensions/dxf14_*.txt |
60fad862 | 197 | %{_datadir}/inkscape/extensions/*.inx |
a52a6383 | 198 | %{_datadir}/inkscape/extensions/*.js |
41394cda | 199 | %{_datadir}/inkscape/extensions/*.svg |
34cd2370 PZ |
200 | %{_datadir}/inkscape/extensions/*.xml |
201 | %{_datadir}/inkscape/extensions/*.xsl | |
d0824210 | 202 | %{_datadir}/inkscape/extensions/*.xslt |
a5d5a7c6 JR |
203 | %{_datadir}/inkscape/extensions/fontfix.conf |
204 | %{_datadir}/inkscape/extensions/inkscape.extension.rng | |
695e9cbe JR |
205 | %{_datadir}/metainfo/org.inkscape.Inkscape.appdata.xml |
206 | %{_iconsdir}/hicolor/*/apps/org.inkscape.Inkscape.png | |
0ed466fa JR |
207 | %{_iconsdir}/hicolor/scalable/apps/org.inkscape.Inkscape.svg |
208 | %{_iconsdir}/hicolor/symbolic/apps/org.inkscape.Inkscape-symbolic.svg | |
695e9cbe | 209 | %{_desktopdir}/org.inkscape.Inkscape.desktop |
41394cda JB |
210 | %{_mandir}/man1/inkscape.1* |
211 | %{_mandir}/man1/inkview.1* | |
212 | %lang(de) %{_mandir}/de/man1/inkscape.1* | |
41394cda | 213 | %lang(fr) %{_mandir}/fr/man1/inkscape.1* |
695e9cbe JR |
214 | %lang(hr) %{_mandir}/hr/man1/inkscape.1* |
215 | %lang(hu) %{_mandir}/hu/man1/inkscape.1* | |
0ed466fa | 216 | %lang(zh_TW) %{_mandir}/zh_TW/man1/inkscape.1* |
695e9cbe JR |
217 | %lang(de) %{_mandir}/de/man1/inkview.1* |
218 | %lang(es) %{_mandir}/es/man1/inkview.1* | |
219 | %lang(fr) %{_mandir}/fr/man1/inkview.1* | |
220 | %lang(hr) %{_mandir}/hr/man1/inkview.1* | |
221 | %lang(hu) %{_mandir}/hu/man1/inkview.1* | |
222 | %lang(pt_BR) %{_mandir}/pt_BR/man1/inkview.1* | |
0ed466fa | 223 | %lang(zh_TW) %{_mandir}/zh_TW/man1/inkview.1* |
283c18ba JB |
224 | |
225 | %files -n bash-completion-inkscape | |
226 | %defattr(644,root,root,755) | |
227 | %{bash_compdir}/inkscape |