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