]>
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 |
46fc9286 | 8 | Version: 1.46.0 |
5826bbaf | 9 | Release: 1 |
ae612451 | 10 | License: MIT and (MPL v1.1 or GPL v2+ or LGPL v2+) |
d1e21e3e | 11 | Group: Libraries |
46fc9286 MB |
12 | Source0: http://ftp.gnome.org/pub/GNOME/sources/gjs/1.46/%{name}-%{version}.tar.xz |
13 | # Source0-md5: 25574b60f4e1173fee0bd4920231df3e | |
95911c7e | 14 | Patch0: %{name}-systemtap.patch |
d1e21e3e MB |
15 | URL: http://live.gnome.org/Gjs |
16 | BuildRequires: autoconf >= 2.61 | |
17 | BuildRequires: automake | |
d2570104 AF |
18 | BuildRequires: cairo-devel |
19 | BuildRequires: cairo-gobject-devel | |
dee0d724 | 20 | BuildRequires: gettext-tools |
46fc9286 MB |
21 | BuildRequires: glib2-devel >= 1:2.42.0 |
22 | BuildRequires: gnome-common | |
b636f078 | 23 | BuildRequires: gobject-introspection-devel >= 1.41.4 |
45bcb8fc | 24 | BuildRequires: gtk+3-devel >= 3.0 |
118870d4 | 25 | BuildRequires: libffi-devel |
a584de6c | 26 | BuildRequires: libstdc++-devel |
d1e21e3e | 27 | BuildRequires: libtool |
1da5aa73 | 28 | BuildRequires: mozjs24-devel |
d1e21e3e | 29 | BuildRequires: pkgconfig |
d2570104 | 30 | BuildRequires: readline-devel |
95911c7e | 31 | %{?with_systemtap:BuildRequires: systemtap-sdt-devel} |
46fc9286 | 32 | Requires: glib2 >= 1:2.42.0 |
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 | |
46fc9286 | 50 | Requires: glib2-devel >= 1:2.42.0 |
b636f078 | 51 | Requires: gobject-introspection-devel >= 1.41.4 |
1da5aa73 | 52 | Requires: mozjs24-devel |
d1e21e3e MB |
53 | |
54 | %description devel | |
55 | Header files for gjs library. | |
56 | ||
57 | %description devel -l pl.UTF-8 | |
58 | Pliki nagłówkowe biblioteki gjs. | |
59 | ||
95911c7e JB |
60 | %package -n systemtap-gjs |
61 | Summary: systemtap/dtrace probes for gjs | |
62 | Summary(pl.UTF-8): Sondy systemtap/dtrace dla gjs | |
63 | Group: Development/Tools | |
64 | Requires: %{name} = %{version}-%{release} | |
65 | Requires: systemtap-client | |
66 | ||
67 | %description -n systemtap-gjs | |
68 | systemtap/dtrace probes for gjs. | |
69 | ||
70 | %description -n systemtap-gjs -l pl.UTF-8 | |
71 | Sondy systemtap/dtrace dla gjs. | |
72 | ||
d1e21e3e MB |
73 | %prep |
74 | %setup -q | |
95911c7e | 75 | %patch0 -p1 |
d1e21e3e MB |
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 | |
1e73c220 | 121 | %{_pkgconfigdir}/gjs-internals-1.0.pc |
d1e21e3e | 122 | %{_examplesdir}/%{name}-%{version} |
95911c7e JB |
123 | |
124 | %files -n systemtap-gjs | |
125 | %defattr(644,root,root,755) | |
126 | %{_datadir}/systemtap/tapset/gjs.stp |