]> git.pld-linux.org Git - packages/gnome-builder.git/blob - gnome-builder.spec
2ab153d7d559573a4b92d756c7de1c7d8fe04856
[packages/gnome-builder.git] / gnome-builder.spec
1 # TODO:
2 # - deviced plugin (BR: libdeviced-devel >= 3.27.4)
3 #
4 # Conditional build:
5 %bcond_without  sysprof         # sysprof system profiler plugin
6 %bcond_without  vala_pack       # vala pack plugin
7 %bcond_without  apidocs         # Sphinx based help + gtk-doc API documentation
8 #
9 Summary:        IDE for writing GNOME-based software
10 Summary(pl.UTF-8):      IDE do tworzenia oprogramowania opartego na GNOME
11 Name:           gnome-builder
12 Version:        3.38.0
13 Release:        1
14 License:        GPL v3+
15 Group:          X11/Applications
16 Source0:        http://ftp.gnome.org/pub/GNOME/sources/gnome-builder/3.38/%{name}-%{version}.tar.xz
17 # Source0-md5:  b9ae0e78733ea88971f8feeb3deb26a7
18 URL:            https://wiki.gnome.org/Apps/Builder
19 BuildRequires:  appstream-glib
20 BuildRequires:  clang-devel >= 3.5
21 BuildRequires:  desktop-file-utils
22 BuildRequires:  devhelp-devel >= 3.26.0
23 BuildRequires:  enchant2-devel >= 2
24 BuildRequires:  flatpak-devel >= 0.8.0
25 # -std=gnu11 for C
26 BuildRequires:  gcc >= 6:4.7
27 BuildRequires:  gettext-tools >= 0.19.8
28 BuildRequires:  gjs-devel >= 1.42.0
29 BuildRequires:  glade-devel >= 3.22.0
30 BuildRequires:  glib2-devel >= 1:2.65.0
31 BuildRequires:  gobject-introspection-devel >= 1.48.0
32 BuildRequires:  gspell-devel >= 1.2.0
33 BuildRequires:  gtk+3-devel >= 3.22.26
34 %{?with_apidocs:BuildRequires:  gtk-doc >= 1.11}
35 BuildRequires:  gtk-webkit4-devel >= 2.26
36 BuildRequires:  gtksourceview4-devel >= 4.0.0
37 BuildRequires:  json-glib-devel >= 1.2.0
38 BuildRequires:  jsonrpc-glib-devel >= 3.30.0
39 BuildRequires:  libdazzle-devel >= 3.37.0
40 BuildRequires:  libgit2-glib-devel >= 0.25.0
41 BuildRequires:  libpeas-devel >= 1.22.0
42 BuildRequires:  libportal-devel >= 0.3
43 BuildRequires:  libsoup-devel >= 2.52.0
44 # C++11
45 BuildRequires:  libstdc++-devel >= 6:4.7
46 BuildRequires:  libtool >= 2:2.2
47 BuildRequires:  libxml2-devel >= 1:2.9.0
48 BuildRequires:  llvm-devel >= 3.5
49 BuildRequires:  meson >= 0.54.0
50 BuildRequires:  ninja >= 1.5
51 BuildRequires:  ostree-devel
52 BuildRequires:  pango-devel >= 1:1.38.0
53 BuildRequires:  pcre-devel
54 BuildRequires:  pkgconfig >= 1:0.22
55 BuildRequires:  python3-devel >= 1:3.2.3
56 BuildRequires:  python3-pygobject3-devel >= 3.22.0
57 BuildRequires:  rpmbuild(macros) >= 1.736
58 %{?with_apidocs:BuildRequires:  sphinx-pdg-3}
59 %{?with_sysprof:BuildRequires:  sysprof-ui-devel >= 3.37.1}
60 BuildRequires:  tar >= 1:1.22
61 BuildRequires:  template-glib-devel >= 3.28.0
62 BuildRequires:  vala >= 2:0.30.0.55
63 BuildRequires:  vala-gtksourceview4 >= 4.0.0
64 BuildRequires:  vala-libdazzle >= 3.37.0
65 BuildRequires:  vala-libgit2-glib >= 0.25.0
66 BuildRequires:  vala-template-glib >= 3.28.0
67 BuildRequires:  vala-vte >= 0.46
68 BuildRequires:  vte-devel >= 0.46
69 BuildRequires:  xz
70 BuildRequires:  yelp-tools
71 Requires(post,postun):  glib2 >= 1:2.65.0
72 Requires(post,postun):  gtk-update-icon-cache
73 Requires:       ctags
74 Requires:       devhelp-libs >= 3.26.0
75 Requires:       enchant2 >= 2
76 Requires:       flatpak-libs >= 0.8.0
77 Requires:       gjs >= 1.42.0
78 Requires:       glade-libs >= 3.22.0
79 Requires:       glib2 >= 1:2.65.0
80 Requires:       gspell >= 1.2.0
81 Requires:       gtk+3 >= 3.22.26
82 Requires:       gtk-webkit4 >= 2.26
83 Requires:       gtksourceview4 >= 4.0.0
84 Requires:       hicolor-icon-theme
85 Requires:       json-glib >= 1.2.0
86 Requires:       jsonrpc-glib >= 3.30.0
87 Requires:       libdazzle >= 3.37.0
88 Requires:       libgit2-glib >= 0.25.0
89 Requires:       libpeas >= 1.22.0
90 Requires:       libportal >= 0.3
91 Requires:       libsoup >= 2.52.0
92 Requires:       libxml2 >= 1:2.9.0
93 Requires:       pango >= 1:1.38.0
94 Requires:       python3-modules >= 1:3.2.3
95 Requires:       python3-pygobject3 >= 3.22.0
96 %{?with_sysprof:Requires:       sysprof-ui-libs >= 3.37.1}
97 Requires:       template-glib >= 3.28.0
98 Requires:       vte >= 0.46
99 Suggests:       python3-jedi
100 Suggests:       python3-lxml
101 Obsoletes:      gnome-builder-mm
102 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
103
104 %define         apiver  3.38
105
106 %description
107 Builder attempts to be an IDE for writing software for GNOME. It does
108 not try to be a generic IDE, but one specialized for writing GNOME
109 software.
110
111 %description -l pl.UTF-8
112 Builder jest próbą stworzenia IDE do rozwijania oprogramowania dla
113 GNOME. Nie próbuje być ogólnym IDE, ale wyspecjalizowanym do pisania
114 oprogramowania dla GNOME.
115
116 %package devel
117 Summary:        Development files for GNOME Builder
118 Summary(pl.UTF-8):      Pliki programistyczne GNOME Buildera
119 Group:          Development/Libraries
120 Requires:       %{name} = %{version}-%{release}
121 Requires:       glib2-devel >= 1:2.65.0
122 Requires:       gtk+3-devel >= 3.22.26
123 Requires:       gtksourceview4-devel >= 4.0.0
124 Requires:       jsonrpc-glib-devel >= 3.30.0
125 Requires:       libdazzle-devel >= 3.37.0
126 Requires:       libpeas-devel >= 1.22.0
127 Requires:       pango-devel >= 1:1.38.0
128 Requires:       template-glib-devel >= 3.28.0
129 Requires:       vte-devel >= 0.46
130 Obsoletes:      gnome-builder-mm-devel
131 Obsoletes:      vala-gnome-builder < 3.36
132
133 %description devel
134 This package provides development files for GNOME Builder.
135
136 %description devel -l pl.UTF-8
137 Ten pakiet zawiera pliki programistyczne GNOME Buildera.
138
139 %package doc
140 Summary:        GNOME Builder documentation
141 Summary(pl.UTF-8):      Dokumentacja do GNOME Buildera
142 Group:          Documentation
143 Requires:       %{name} = %{version}-%{release}
144 %if "%{_rpmversion}" >= "4.6"
145 BuildArch:      noarch
146 %endif
147
148 %description doc
149 GNOME Builder documentation.
150
151 %description doc -l pl.UTF-8
152 Dokumentacja do GNOME Buildera.
153
154 %package apidocs
155 Summary:        API documentation for GNOME Builder libraries
156 Summary(pl.UTF-8):      Dokumentacja API bibliotek GNOME Buildera
157 Group:          Documentation
158 %if "%{_rpmversion}" >= "4.6"
159 BuildArch:      noarch
160 %endif
161
162 %description apidocs
163 API documentation for GNOME Builder libraries.
164
165 %description apidocs -l pl.UTF-8
166 Dokumentacja API bibliotek GNOME Buildera.
167
168 %prep
169 %setup -q
170
171 grep -rl /usr/bin/env src/plugins src/libide | xargs sed -i -e '1{
172         s,^#!.*bin/env python3,#!%{__python3},
173         s,^#!.*bin/env python$,#!%{__python},
174 }'
175
176 %build
177 %meson build \
178 %if %{with apidocs}
179         -Ddocs=true \
180         -Dhelp=true \
181 %endif
182         -Dplugin_rls=true \
183         -Dplugin_sysprof=%{__true_false sysprof} \
184         -Dplugin_vagrant=true \
185         -Dplugin_vala=%{__true_false vala_pack}
186 # -Dplugin_deviced=true
187
188 %meson_build -C build
189
190 %install
191 rm -rf $RPM_BUILD_ROOT
192
193 %meson_install -C build
194
195 %if %{with apidocs}
196 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/gnome-builder/en/{.buildinfo,_sources,objects.inv}
197 %endif
198
199 %find_lang %{name} --with-gnome
200
201 %clean
202 rm -rf $RPM_BUILD_ROOT
203
204 %post
205 %glib_compile_schemas
206 %update_icon_cache hicolor
207
208 %postun
209 %glib_compile_schemas
210 %update_icon_cache hicolor
211
212 %files -f %{name}.lang
213 %defattr(644,root,root,755)
214 %doc AUTHORS NEWS README.md
215 %attr(755,root,root) %{_bindir}/gnome-builder
216 %dir %{_libdir}/gnome-builder
217 %dir %{_libdir}/gnome-builder/girepository-1.0
218 %{_libdir}/gnome-builder/girepository-1.0/Ide-%{apiver}.typelib
219 %dir %{_libdir}/gnome-builder/plugins
220 %attr(755,root,root) %{_libexecdir}/gnome-builder-clang
221 %attr(755,root,root) %{_libexecdir}/gnome-builder-git
222 %dir %{_datadir}/gnome-builder
223 %{_datadir}/gnome-builder/fonts
224 %{_datadir}/gnome-builder/icons
225
226 %{_libdir}/gnome-builder/plugins/cargo.plugin
227 %{_libdir}/gnome-builder/plugins/cargo_plugin.py
228
229 %{_libdir}/gnome-builder/plugins/copyright.plugin
230 %{_libdir}/gnome-builder/plugins/copyright_plugin.py
231 %{_datadir}/glib-2.0/schemas/org.gnome.builder.plugins.copyright.gschema.xml
232
233 %{_libdir}/gnome-builder/plugins/eslint.plugin
234 %{_libdir}/gnome-builder/plugins/eslint_plugin.py
235 %{_datadir}/glib-2.0/schemas/org.gnome.builder.plugins.eslint.gschema.xml
236
237 %{_libdir}/gnome-builder/plugins/find-other-file.plugin
238 %{_libdir}/gnome-builder/plugins/find_other_file.py
239
240 %{_libdir}/gnome-builder/plugins/gjs_symbols.plugin
241 %{_libdir}/gnome-builder/plugins/gjs_symbols.py
242
243 %{_libdir}/gnome-builder/plugins/go-langserv.plugin
244 %{_libdir}/gnome-builder/plugins/go_langserver_plugin.py
245
246 %{_libdir}/gnome-builder/plugins/gvls.plugin
247 %{_libdir}/gnome-builder/plugins/gvls_plugin.py
248
249 %{_libdir}/gnome-builder/plugins/html_preview.gresource
250 %{_libdir}/gnome-builder/plugins/html-preview.plugin
251 %{_libdir}/gnome-builder/plugins/html_preview.py
252
253 %{_libdir}/gnome-builder/plugins/jedi.plugin
254 %{_libdir}/gnome-builder/plugins/jedi_plugin.py
255
256 %{_libdir}/gnome-builder/plugins/jhbuild.plugin
257 %{_libdir}/gnome-builder/plugins/jhbuild_plugin.py
258
259 %{_libdir}/gnome-builder/plugins/make.plugin
260 %{_libdir}/gnome-builder/plugins/make_plugin.gresource
261 %{_libdir}/gnome-builder/plugins/make_plugin.py
262
263 %{_libdir}/gnome-builder/plugins/meson-templates.plugin
264 %{_libdir}/gnome-builder/plugins/meson_templates.gresource
265 %{_libdir}/gnome-builder/plugins/meson_templates.py
266
267 %{_libdir}/gnome-builder/plugins/mono.plugin
268 %{_libdir}/gnome-builder/plugins/mono_plugin.py
269
270 %{_libdir}/gnome-builder/plugins/npm.plugin
271 %{_libdir}/gnome-builder/plugins/npm_plugin.py
272
273 %{_libdir}/gnome-builder/plugins/phpize.plugin
274 %{_libdir}/gnome-builder/plugins/phpize_plugin.py
275
276 %{_libdir}/gnome-builder/plugins/python-gi-imports-completion.plugin
277 %{_libdir}/gnome-builder/plugins/python_gi_imports_completion.py
278
279 %{_libdir}/gnome-builder/plugins/rustup.plugin
280 %{_libdir}/gnome-builder/plugins/rustup_plugin.gresource
281 %{_libdir}/gnome-builder/plugins/rustup_plugin.py
282
283 %{_libdir}/gnome-builder/plugins/gradle.plugin
284 %{_libdir}/gnome-builder/plugins/gradle_plugin.py
285
286 %{_libdir}/gnome-builder/plugins/maven.plugin
287 %{_libdir}/gnome-builder/plugins/maven_plugin.py
288
289 %{_libdir}/gnome-builder/plugins/rls.plugin
290 %{_libdir}/gnome-builder/plugins/rls_plugin.py
291
292 %{_libdir}/gnome-builder/plugins/stylelint.plugin
293 %{_libdir}/gnome-builder/plugins/stylelint_plugin.py
294 %{_datadir}/glib-2.0/schemas/org.gnome.builder.plugins.stylelint.gschema.xml
295
296 %{_libdir}/gnome-builder/plugins/waf.plugin
297 %{_libdir}/gnome-builder/plugins/waf_plugin.py
298
299 %if %{with sysprof}
300 # not installed since 3.28
301 #%{_libdir}/gnome-builder/plugins/sysprof.plugin
302 %endif
303
304 %if %{with vala_pack}
305 %{_libdir}/gnome-builder/plugins/vala-pack.plugin
306 %{_libdir}/gnome-builder/plugins/vala_pack_plugin.py
307 %endif
308
309 %{_libdir}/gnome-builder/plugins/valgrind.plugin
310 %{_libdir}/gnome-builder/plugins/valgrind_plugin.gresource
311 %{_libdir}/gnome-builder/plugins/valgrind_plugin.py
312
313 %{_datadir}/dbus-1/services/org.gnome.Builder.service
314 %{_datadir}/glib-2.0/schemas/org.gnome.builder.gschema.xml
315 %{_datadir}/glib-2.0/schemas/org.gnome.builder.build.gschema.xml
316 %{_datadir}/glib-2.0/schemas/org.gnome.builder.clang.gschema.xml
317 %{_datadir}/glib-2.0/schemas/org.gnome.builder.code-insight.gschema.xml
318 %{_datadir}/glib-2.0/schemas/org.gnome.builder.editor.gschema.xml
319 %{_datadir}/glib-2.0/schemas/org.gnome.builder.editor.language.gschema.xml
320 %{_datadir}/glib-2.0/schemas/org.gnome.builder.extension-type.gschema.xml
321 %{_datadir}/glib-2.0/schemas/org.gnome.builder.gnome-code-assistance.gschema.xml
322 %{_datadir}/glib-2.0/schemas/org.gnome.builder.plugin.gschema.xml
323 %{_datadir}/glib-2.0/schemas/org.gnome.builder.plugins.color_picker_plugin.gschema.xml
324 %{_datadir}/glib-2.0/schemas/org.gnome.builder.project.gschema.xml
325 %{_datadir}/glib-2.0/schemas/org.gnome.builder.project-tree.gschema.xml
326 %{_datadir}/glib-2.0/schemas/org.gnome.builder.rust-analyzer.gschema.xml
327 %{_datadir}/glib-2.0/schemas/org.gnome.builder.terminal.gschema.xml
328 %{_datadir}/glib-2.0/schemas/org.gnome.builder.workbench.gschema.xml
329 %{_datadir}/gtksourceview-4/styles/Adwaita*.style-scheme.xml
330 %{_datadir}/gtksourceview-4/styles/builder*.style-scheme.xml
331 %{_datadir}/metainfo/org.gnome.Builder.appdata.xml
332 %{_desktopdir}/org.gnome.Builder.desktop
333 %{_iconsdir}/hicolor/scalable/apps/org.gnome.Builder-symbolic.svg
334 %{_iconsdir}/hicolor/scalable/apps/org.gnome.Builder.svg
335 %{py3_sitedir}/gi/overrides/Ide.py
336
337 %files devel
338 %defattr(644,root,root,755)
339 %{_includedir}/gnome-builder
340 %{_includedir}/gnome-builder-%{apiver}
341 %dir %{_datadir}/gnome-builder/gir-1.0
342 %{_datadir}/gnome-builder/gir-1.0/Ide-%{apiver}.gir
343 %dir %{_libdir}/gnome-builder/pkgconfig
344 %{_libdir}/gnome-builder/pkgconfig/gnome-builder-%{apiver}.pc
345
346 %if %{with apidocs}
347 %files doc
348 %defattr(644,root,root,755)
349 %dir %{_docdir}/gnome-builder
350 %{_docdir}/gnome-builder/en
351
352 %files apidocs
353 %defattr(644,root,root,755)
354 %{_gtkdocdir}/libide
355 %endif
This page took 0.407877 seconds and 2 git commands to generate.