]>
Commit | Line | Data |
---|---|---|
26452bb6 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without llvm # (LLVM based) C backend | |
4 | %bcond_without golang # Go backend | |
5 | # | |
c266b159 | 6 | %ifarch ppc64 |
26452bb6 JB |
7 | %undefine with_llvm |
8 | %endif | |
9 | %ifnarch %{ix86} %{x8664} %{arm} | |
10 | %undefine with_golang | |
11 | %endif | |
d22a8724 JB |
12 | Summary: Common code assistance services for code editors |
13 | Summary(pl.UTF-8): Wspólne usługi wspierające pracę z kodem dla edytorów kodu | |
14 | Name: gnome-code-assistance | |
6af7a056 JB |
15 | Version: 3.16.1 |
16 | Release: 1 | |
d22a8724 JB |
17 | License: GPL v2+ |
18 | Group: X11/Applications/Editors | |
19 | Source0: http://ftp.gnome.org/pub/GNOME/sources/gnome-code-assistance/3.16/%{name}-%{version}.tar.xz | |
6af7a056 | 20 | # Source0-md5: 5579574b1102abb21b2f5e64d619b153 |
d22a8724 | 21 | URL: https://wiki.gnome.org/Projects/CodeAssistance |
d22a8724 JB |
22 | BuildRequires: gjs-devel |
23 | BuildRequires: glib2 >= 1:2.36 | |
24 | BuildRequires: gobject-introspection | |
25 | # version with just "go" executable | |
24b1a6a5 JB |
26 | %{?with_golang:BuildRequires: golang >= 1.3} |
27 | %{?with_llvm:BuildRequires: llvm-devel} | |
d22a8724 JB |
28 | BuildRequires: pkgconfig |
29 | BuildRequires: python3 >= 1:3.2 | |
30 | BuildRequires: python3-dbus | |
31 | BuildRequires: python3-pygobject3 >= 3.8 | |
32 | BuildRequires: python3-simplejson | |
33 | # with ripper module | |
34 | BuildRequires: ruby >= 1:1.9.1 | |
35 | BuildRequires: ruby-dbus | |
36 | BuildRequires: ruby-sass >= 3.3 | |
37 | BuildRequires: tar >= 1:1.22 | |
38 | BuildRequires: vala >= 2:0.20 | |
39 | BuildRequires: vala-libgee >= 0.8 | |
40 | BuildRequires: xz | |
41 | Requires: glib2 >= 1:2.36 | |
42 | Requires: gobject-introspection | |
43 | Requires: libgee >= 0.8 | |
44 | Requires: python3 >= 1:3.2 | |
45 | Requires: python3-dbus | |
46 | Requires: python3-pygobject3 >= 3.8 | |
47 | Requires: python3-simplejson | |
48 | Requires: ruby >= 1:1.9.1 | |
49 | Requires: ruby-dbus | |
50 | Requires: ruby-sass >= 3.3 | |
51 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
52 | ||
0c59dde7 JB |
53 | %if %{with golang} |
54 | %define _enable_debug_packages 0 | |
55 | %endif | |
56 | ||
d22a8724 JB |
57 | %description |
58 | gnome-code-assistance is a project which aims to provide common code | |
59 | assistance services for code editors (simple editors as well as IDEs). | |
60 | It is an effort to provide a centralized code-assistance as a service | |
61 | for the GNOME platform instead of having every editor implement their | |
62 | own solution. | |
63 | ||
64 | %description -l pl.UTF-8 | |
65 | gnome-code-assistance to projekt mający na celu dostarczenie wspólnych | |
66 | usług wspierających pracę z kodem dla edytorów kodu (zarówno prostych | |
67 | edytorów, jak i IDE). Jest to próba zapewnienia centralnego wsparcia | |
68 | edycji kodu jako usługi dla platformy GNOME zamiast implementowania | |
69 | własnego rozwiązania w każdym edytorze. | |
70 | ||
71 | %prep | |
72 | %setup -q | |
73 | ||
74 | %build | |
092500e2 JR |
75 | %{__aclocal} |
76 | %{__autoconf} | |
77 | %{__autoheader} | |
78 | %{__automake} | |
d22a8724 | 79 | %configure \ |
26452bb6 JB |
80 | %{!?with_llvm:--disable-c} \ |
81 | %{!?with_golang:--disable-go} \ | |
d22a8724 JB |
82 | --disable-silent-rules |
83 | ||
84 | %{__make} | |
85 | ||
86 | %install | |
87 | rm -rf $RPM_BUILD_ROOT | |
88 | ||
89 | %{__make} install \ | |
90 | DESTDIR=$RPM_BUILD_ROOT | |
91 | ||
92 | %{__sed} -i -e '1s,/usr/bin/env gjs,/usr/bin/gjs,' $RPM_BUILD_ROOT%{_libexecdir}/gnome-code-assistance/js | |
29752993 JB |
93 | %if %{with llvm} |
94 | %{__sed} -i -e '1s,/usr/bin/env python3,/usr/bin/python3,' $RPM_BUILD_ROOT%{_libexecdir}/gnome-code-assistance/c | |
95 | %endif | |
96 | %{__sed} -i -e '1s,/usr/bin/env python3,/usr/bin/python3,' $RPM_BUILD_ROOT%{_libexecdir}/gnome-code-assistance/{json,python,sh,xml} | |
d22a8724 JB |
97 | %{__sed} -i -e '1s,/usr/bin/env ruby,/usr/bin/ruby,' $RPM_BUILD_ROOT%{_libexecdir}/gnome-code-assistance/{css,ruby} |
98 | ||
99 | %clean | |
100 | rm -rf $RPM_BUILD_ROOT | |
101 | ||
102 | %files | |
103 | %defattr(644,root,root,755) | |
104 | %doc AUTHORS ChangeLog NEWS README | |
105 | %dir %{_libexecdir}/gnome-code-assistance | |
26452bb6 | 106 | %if %{with llvm} |
d22a8724 JB |
107 | # R: python3, llvm |
108 | %attr(755,root,root) %{_libexecdir}/gnome-code-assistance/c | |
26452bb6 | 109 | %endif |
d22a8724 JB |
110 | # R: ruby, ruby-sass |
111 | %attr(755,root,root) %{_libexecdir}/gnome-code-assistance/css | |
26452bb6 | 112 | %if %{with golang} |
d22a8724 | 113 | %attr(755,root,root) %{_libexecdir}/gnome-code-assistance/go |
26452bb6 | 114 | %endif |
d22a8724 JB |
115 | # R: gjs |
116 | %attr(755,root,root) %{_libexecdir}/gnome-code-assistance/js | |
117 | # R: python3, python3-simplejson | |
118 | %attr(755,root,root) %{_libexecdir}/gnome-code-assistance/json | |
119 | # R: python3 | |
120 | %attr(755,root,root) %{_libexecdir}/gnome-code-assistance/python | |
121 | # R: ruby | |
122 | %attr(755,root,root) %{_libexecdir}/gnome-code-assistance/ruby | |
123 | # R: python3 | |
124 | %attr(755,root,root) %{_libexecdir}/gnome-code-assistance/sh | |
125 | # R: glib2 libgee | |
126 | %attr(755,root,root) %{_libexecdir}/gnome-code-assistance/vala | |
127 | # R: vala (libvala) | |
128 | %attr(755,root,root) %{_libexecdir}/gnome-code-assistance/valahelper | |
129 | # R: python3 | |
130 | %attr(755,root,root) %{_libexecdir}/gnome-code-assistance/xml | |
131 | %dir %{_libexecdir}/gnome-code-assistance/backends | |
132 | %{_libexecdir}/gnome-code-assistance/backends/js | |
133 | # R: python3-dbus | |
134 | %{_libexecdir}/gnome-code-assistance/backends/py | |
135 | # R: ruby-dbus | |
136 | %{_libexecdir}/gnome-code-assistance/backends/rb | |
137 | %{_datadir}/dbus-1/services/org.gnome.CodeAssist.v1.*.service | |
138 | %{_datadir}/glib-2.0/schemas/org.gnome.codeassistance.gschema.xml |