]>
Commit | Line | Data |
---|---|---|
95911c7e JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without systemtap # systemtap/dtrace trace support | |
68e1bbed | 4 | # |
d1e21e3e | 5 | Summary: JavaScript bindings for GNOME |
ae612451 | 6 | Summary(pl.UTF-8): Wiązania JavaScriptu dla GNOME |
d1e21e3e | 7 | Name: gjs |
6e22755c | 8 | Version: 1.48.1 |
9762e2fa | 9 | Release: 1 |
ae612451 | 10 | License: MIT and (MPL v1.1 or GPL v2+ or LGPL v2+) |
d1e21e3e | 11 | Group: Libraries |
9762e2fa | 12 | Source0: http://ftp.gnome.org/pub/GNOME/sources/gjs/1.48/%{name}-%{version}.tar.xz |
6e22755c | 13 | # Source0-md5: 8c1e9ab69a8e204af930f3a66ba9deca |
d1e21e3e | 14 | URL: http://live.gnome.org/Gjs |
9762e2fa MB |
15 | BuildRequires: autoconf >= 2.64 |
16 | BuildRequires: automake >= 1:1.11.1 | |
d2570104 AF |
17 | BuildRequires: cairo-devel |
18 | BuildRequires: cairo-gobject-devel | |
dee0d724 | 19 | BuildRequires: gettext-tools |
9762e2fa | 20 | BuildRequires: glib2-devel >= 1:2.50.0 |
46fc9286 | 21 | BuildRequires: gnome-common |
b636f078 | 22 | BuildRequires: gobject-introspection-devel >= 1.41.4 |
9762e2fa | 23 | BuildRequires: gtk+3-devel >= 3.20 |
118870d4 | 24 | BuildRequires: libffi-devel |
a584de6c | 25 | BuildRequires: libstdc++-devel |
d1e21e3e | 26 | BuildRequires: libtool |
9762e2fa | 27 | BuildRequires: mozjs38-devel |
d1e21e3e | 28 | BuildRequires: pkgconfig |
d2570104 | 29 | BuildRequires: readline-devel |
95911c7e | 30 | %{?with_systemtap:BuildRequires: systemtap-sdt-devel} |
9762e2fa MB |
31 | Requires: glib2 >= 1:2.50.0 |
32 | Requires: gtk+3 >= 3.20 | |
d1e21e3e MB |
33 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
34 | ||
35 | %description | |
36 | Gjs allows using GNOME libraries from JavaScript. It is mainly based | |
37 | on Spidermonkey JavaScript engine and the GObject introspection | |
38 | framework. | |
39 | ||
40 | %description -l pl.UTF-8 | |
ae612451 JB |
41 | Gjs pozwala używać bibliotek GNOME z JavaScriptem. Jest oparty głównie |
42 | na silniku JavaScriptu Spidermonkey i systemie GObject introspection. | |
d1e21e3e MB |
43 | |
44 | %package devel | |
45 | Summary: Header files for gjs library | |
46 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki gjs | |
47 | Group: Development/Libraries | |
48 | Requires: %{name} = %{version}-%{release} | |
49 | Requires: dbus-devel | |
9762e2fa | 50 | Requires: glib2-devel >= 1:2.50.0 |
b636f078 | 51 | Requires: gobject-introspection-devel >= 1.41.4 |
9762e2fa MB |
52 | Requires: gtk+3-devel >= 3.20 |
53 | Requires: mozjs38-devel | |
d1e21e3e MB |
54 | |
55 | %description devel | |
56 | Header files for gjs library. | |
57 | ||
58 | %description devel -l pl.UTF-8 | |
59 | Pliki nagłówkowe biblioteki gjs. | |
60 | ||
95911c7e JB |
61 | %package -n systemtap-gjs |
62 | Summary: systemtap/dtrace probes for gjs | |
63 | Summary(pl.UTF-8): Sondy systemtap/dtrace dla gjs | |
64 | Group: Development/Tools | |
65 | Requires: %{name} = %{version}-%{release} | |
66 | Requires: systemtap-client | |
67 | ||
68 | %description -n systemtap-gjs | |
69 | systemtap/dtrace probes for gjs. | |
70 | ||
71 | %description -n systemtap-gjs -l pl.UTF-8 | |
72 | Sondy systemtap/dtrace dla gjs. | |
73 | ||
d1e21e3e MB |
74 | %prep |
75 | %setup -q | |
76 | ||
77 | %build | |
78 | %{__libtoolize} | |
79 | %{__aclocal} | |
80 | %{__autoconf} | |
81 | %{__autoheader} | |
82 | %{__automake} | |
27b8a829 | 83 | %configure \ |
95911c7e JB |
84 | --disable-silent-rules \ |
85 | %{?with_systemtap:--enable-systemtap} | |
d1e21e3e MB |
86 | %{__make} |
87 | ||
88 | %install | |
89 | rm -rf $RPM_BUILD_ROOT | |
0a8630ec | 90 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
d1e21e3e | 91 | |
8eed3c7b | 92 | %{__make} -j1 install \ |
d1e21e3e MB |
93 | DESTDIR=$RPM_BUILD_ROOT |
94 | ||
95 | cp examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
96 | ||
e6d72c2a | 97 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la |
d1e21e3e MB |
98 | |
99 | %clean | |
100 | rm -rf $RPM_BUILD_ROOT | |
101 | ||
102 | %post -p /sbin/ldconfig | |
103 | %postun -p /sbin/ldconfig | |
104 | ||
105 | %files | |
106 | %defattr(644,root,root,755) | |
107 | %doc COPYING NEWS README | |
108 | %attr(755,root,root) %{_bindir}/gjs | |
109 | %attr(755,root,root) %{_bindir}/gjs-console | |
d1e21e3e MB |
110 | %attr(755,root,root) %{_libdir}/libgjs.so.*.*.* |
111 | %attr(755,root,root) %ghost %{_libdir}/libgjs.so.0 | |
1ec4cb2a ŁK |
112 | %dir %{_libdir}/gjs |
113 | %dir %{_libdir}/gjs/girepository-1.0 | |
114 | %{_libdir}/gjs/girepository-1.0/GjsPrivate-1.0.typelib | |
d1e21e3e MB |
115 | |
116 | %files devel | |
117 | %defattr(644,root,root,755) | |
d1e21e3e | 118 | %attr(755,root,root) %{_libdir}/libgjs.so |
d1e21e3e MB |
119 | %{_includedir}/gjs-1.0 |
120 | %{_pkgconfigdir}/gjs-1.0.pc | |
d1e21e3e | 121 | %{_examplesdir}/%{name}-%{version} |
95911c7e JB |
122 | |
123 | %files -n systemtap-gjs | |
124 | %defattr(644,root,root,755) | |
125 | %{_datadir}/systemtap/tapset/gjs.stp |