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