- rel 1
[packages/inkscape.git] / inkscape.spec
1 #
2 # Conditional build
3 %bcond_with     dbus            # DBus interface
4 %bcond_with     relocation      # Enable binary relocation support
5 #
6
7 Summary:        Scalable vector graphics editor
8 Summary(pl.UTF-8):      Edytor skalowalnej grafiki wektorowej
9 Name:           inkscape
10 Version:        1.0
11 Release:        1
12 License:        GPL v2+, LGPL v2.1+
13 Group:          X11/Applications/Graphics
14 # download: follow https://inkscape.org/release/
15 Source0:        https://media.inkscape.org/dl/resources/file/%{name}-%{version}.tar.xz
16 # Source0-md5:  e5f1ee6b32ac0a94bdd5d99190e7bb9e
17 URL:            https://inkscape.org/
18 BuildRequires:  GraphicsMagick-c++-devel
19 BuildRequires:  ImageMagick-c++-devel
20 BuildRequires:  aspell-devel
21 BuildRequires:  autoconf >= 2.64
22 BuildRequires:  automake >= 1:1.9.4-2
23 BuildRequires:  boost-devel >= 1.36
24 BuildRequires:  cairo-devel >= 1.10
25 BuildRequires:  cairomm-devel >= 1.9.8
26 %{?with_dbus:BuildRequires:     dbus-glib-devel}
27 BuildRequires:  freetype-devel >= 2.0
28 BuildRequires:  gc-devel >= 7.2
29 BuildRequires:  gettext-tools >= 0.17
30 BuildRequires:  glib2-devel >= 1:2.28
31 BuildRequires:  glibmm-devel >= 2.28
32 BuildRequires:  gsl-devel
33 BuildRequires:  intltool >= 0.40.0
34 BuildRequires:  lcms2-devel >= 2
35 BuildRequires:  libcdr-devel >= 0.1
36 BuildRequires:  libexif-devel
37 BuildRequires:  libgomp-devel
38 BuildRequires:  libjpeg-devel
39 BuildRequires:  libpng-devel >= 1.2
40 BuildRequires:  librevenge-devel
41 BuildRequires:  libsigc++-devel >= 2.0.17
42 BuildRequires:  libstdc++-devel >= 6:4.7
43 BuildRequires:  libtool >= 2:2.2
44 BuildRequires:  libvisio-devel >= 0.1
45 BuildRequires:  libwpd-devel >= 0.9
46 BuildRequires:  libwpg-devel >= 0.3
47 BuildRequires:  libxml2-devel >= 1:2.6.26
48 BuildRequires:  libxslt-devel >= 1.1.17
49 BuildRequires:  pango-devel >= 1:1.24
50 BuildRequires:  pkgconfig
51 BuildRequires:  poppler-glib-devel >= 0.29.0
52 BuildRequires:  popt-devel
53 BuildRequires:  potrace-devel
54 BuildRequires:  rpm-pythonprov
55 BuildRequires:  sed >= 4.0
56 BuildRequires:  zlib-devel
57 BuildRequires:  gdl-devel >= 3.6
58 BuildRequires:  gtk+3-devel >= 3.8
59 BuildRequires:  gtkmm3-devel >= 3.10
60 BuildRequires:  gtkspell3-devel >= 3.0
61 Requires(post,postun):  desktop-file-utils
62 Requires:       cairo >= 1.10
63 Requires:       cairomm >= 1.9.8
64 Requires:       gc >= 7.2
65 Requires:       glib2 >= 1:2.28
66 Requires:       glibmm >= 2.28
67 Requires:       libsigc++ >= 2.0.17
68 Requires:       libxml2 >= 1:2.6.26
69 Requires:       libxslt >= 1.1.17
70 Requires:       pango >= 1:1.24
71 Requires:       perl-XML-XQL
72 Requires:       poppler-glib >= 0.29.0
73 Requires:       gdl >= 3.6
74 Requires:       gtk+3 >= 3.8
75 Requires:       gtkmm3 >= 3.10
76 Suggests:       python-lxml
77 # sr@Latn vs. sr@latin
78 Conflicts:      glibc-misc < 6:2.7
79 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
80
81 %description
82 Inkscape is a program for viewing, making, and editing two-dimensional
83 vector drawings.
84
85 %description -l pl.UTF-8
86 Inkscape jest programem do przeglÄ…dania, tworzenia i edycji
87 dwuwymiarowej grafiki wektorowej.
88
89 %prep
90 %setup -q -n %{name}-%{version}_2020-05-01_4035a4fb49
91
92 %{__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,' \
93       CMakeScripts/cmake_consistency_check.py \
94       buildtools/msys2checkdeps.py \
95       packaging/scripts/lp-mark-bugs-released \
96       packaging/wix/*.py \
97       share/extensions/*.py \
98       share/extensions/*/*.py \
99       share/*/i18n.py
100
101 %{__sed} -E -i -e '1s,#!\s*/usr/bin/env\s+perl(\s|$),#!%{__perl}\1,' \
102       share/attributes/genMapDataCSS.pl \
103       share/attributes/genMapDataSVG.pl
104
105 %build
106 mkdir -p build
107 cd build
108
109 %cmake ../ \
110         -DBUILD_SHARED_LIBS:BOOL=OFF \
111         %{cmake_on_off relocation ENABLE_BINRELOC} \
112         %{cmake_on_off dbus WITH_DBUS}
113
114 %{__make}
115
116 %install
117 rm -rf $RPM_BUILD_ROOT
118
119 %{__make} -C build install \
120         DESTDIR=$RPM_BUILD_ROOT
121
122 # unify locale name, overwrite outdated bn
123 %{__mv} $RPM_BUILD_ROOT%{_localedir}/{bn_BD,bn}/LC_MESSAGES/inkscape.mo
124 # unify names
125 %{__mv} $RPM_BUILD_ROOT%{_localedir}/{ks@aran,ks}
126 %{__mv} $RPM_BUILD_ROOT%{_localedir}/{ks@deva,ks@devanagari}
127 %{__mv} $RPM_BUILD_ROOT%{_localedir}/{sd@deva,sd@devanagari}
128 # unsupported variants
129 %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/{kok@latin,mni@beng,sat@deva}
130
131 %find_lang %{name}
132
133 %clean
134 rm -rf $RPM_BUILD_ROOT
135
136 %post
137 %update_desktop_database_post
138
139 %postun
140 %update_desktop_database_postun
141
142 %files -f %{name}.lang
143 %defattr(644,root,root,755)
144 %doc AUTHORS CONTRIBUTING.md NEWS.md README.md
145 %attr(755,root,root) %{_bindir}/inkscape
146 %attr(755,root,root) %{_bindir}/inkview
147 %dir %{_datadir}/inkscape
148 %{_datadir}/inkscape/[!e]*
149 %{_datadir}/inkscape/examples
150 %dir %{_datadir}/inkscape/extensions
151 %{_datadir}/inkscape/extensions/Poly3DObjects
152 %{_datadir}/inkscape/extensions/alphabet_soup
153 %{_datadir}/inkscape/extensions/barcode
154 %{_datadir}/inkscape/extensions/ink2canvas_lib
155 %{_datadir}/inkscape/extensions/inkex
156 %{_datadir}/inkscape/extensions/svg_fonts
157 %{_datadir}/inkscape/extensions/tools
158 %{_datadir}/inkscape/extensions/xaml2svg
159 %attr(755,root,root) %{_datadir}/inkscape/extensions/*.py
160 %attr(755,root,root) %{_datadir}/inkscape/extensions/*.sh
161 %{_datadir}/inkscape/extensions/*.inx
162 %{_datadir}/inkscape/extensions/*.js
163 %{_datadir}/inkscape/extensions/*.svg
164 %{_datadir}/inkscape/extensions/*.xml
165 %{_datadir}/inkscape/extensions/*.xsl
166 %{_datadir}/inkscape/extensions/*.xslt
167 %{_datadir}/inkscape/extensions/fontfix.conf
168 %{_datadir}/inkscape/extensions/setup.cfg
169 %{_datadir}/inkscape/extensions/inkscape.extension.rng
170 %{_datadir}/metainfo/org.inkscape.Inkscape.appdata.xml
171 %{_iconsdir}/hicolor/*/apps/org.inkscape.Inkscape.png
172 %{_desktopdir}/org.inkscape.Inkscape.desktop
173 %{_mandir}/man1/inkscape.1*
174 %{_mandir}/man1/inkview.1*
175 %lang(de) %{_mandir}/de/man1/inkscape.1*
176 %lang(fr) %{_mandir}/fr/man1/inkscape.1*
177 %lang(hr) %{_mandir}/hr/man1/inkscape.1*
178 %lang(hu) %{_mandir}/hu/man1/inkscape.1*
179 %lang(de) %{_mandir}/de/man1/inkview.1*
180 %lang(es) %{_mandir}/es/man1/inkview.1*
181 %lang(fr) %{_mandir}/fr/man1/inkview.1*
182 %lang(hr) %{_mandir}/hr/man1/inkview.1*
183 %lang(hu) %{_mandir}/hu/man1/inkview.1*
184 %lang(pt_BR) %{_mandir}/pt_BR/man1/inkview.1*
This page took 0.082846 seconds and 3 git commands to generate.