]>
Commit | Line | Data |
---|---|---|
d1e21e3e MB |
1 | Summary: JavaScript bindings for GNOME |
2 | Summary(pl.UTF-8): Wiązania JavaScript dla GNOME | |
3 | Name: gjs | |
4c027a48 | 4 | Version: 1.30.0 |
15b10eab | 5 | Release: 2 |
d1e21e3e MB |
6 | License: MIT and (MPL v1.1 / GPL v2+ / LGPL v2+) |
7 | Group: Libraries | |
4c027a48 ŁK |
8 | Source0: http://ftp.gnome.org/pub/GNOME/sources/gjs/1.30/%{name}-%{version}.tar.xz |
9 | # Source0-md5: 908c1c8654d141d64aac07d57de9a457 | |
224f5b29 | 10 | Patch0: %{name}-rpath.patch |
d1e21e3e MB |
11 | URL: http://live.gnome.org/Gjs |
12 | BuildRequires: autoconf >= 2.61 | |
13 | BuildRequires: automake | |
d2570104 AF |
14 | BuildRequires: cairo-devel |
15 | BuildRequires: cairo-gobject-devel | |
d1e21e3e MB |
16 | BuildRequires: dbus-glib-devel |
17 | BuildRequires: gettext-devel | |
d2570104 | 18 | BuildRequires: glib2-devel >= 1:2.18.0 |
4c027a48 | 19 | BuildRequires: gobject-introspection-devel >= 1.29.17 |
a584de6c | 20 | BuildRequires: libstdc++-devel |
d1e21e3e MB |
21 | BuildRequires: libtool |
22 | BuildRequires: pkgconfig | |
d2570104 AF |
23 | BuildRequires: readline-devel |
24 | BuildRequires: xulrunner-devel >= 1.9.2 | |
f687dd2c | 25 | %requires_eq xulrunner-libs |
d1e21e3e MB |
26 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
27 | ||
28 | %description | |
29 | Gjs allows using GNOME libraries from JavaScript. It is mainly based | |
30 | on Spidermonkey JavaScript engine and the GObject introspection | |
31 | framework. | |
32 | ||
33 | %description -l pl.UTF-8 | |
34 | Gjs pozwala używać bibliotek GNOME z JavaScript. Bazuje głównie na | |
35 | silniku JavaScript Spidermonkey i systemie GObject introspection. | |
36 | ||
37 | %package devel | |
38 | Summary: Header files for gjs library | |
39 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki gjs | |
40 | Group: Development/Libraries | |
41 | Requires: %{name} = %{version}-%{release} | |
42 | Requires: dbus-devel | |
4c027a48 ŁK |
43 | Requires: glib2-devel >= 1:2.18.0 |
44 | Requires: gobject-introspection-devel >= 1.29.17 | |
d1e21e3e MB |
45 | Requires: xulrunner-devel |
46 | ||
47 | %description devel | |
48 | Header files for gjs library. | |
49 | ||
50 | %description devel -l pl.UTF-8 | |
51 | Pliki nagłówkowe biblioteki gjs. | |
52 | ||
53 | %prep | |
54 | %setup -q | |
224f5b29 | 55 | %patch0 -p1 |
d1e21e3e MB |
56 | |
57 | %build | |
58 | %{__libtoolize} | |
59 | %{__aclocal} | |
60 | %{__autoconf} | |
61 | %{__autoheader} | |
62 | %{__automake} | |
27b8a829 MB |
63 | %configure \ |
64 | --disable-silent-rules | |
d1e21e3e MB |
65 | %{__make} |
66 | ||
67 | %install | |
68 | rm -rf $RPM_BUILD_ROOT | |
4c027a48 | 69 | install -d $RPM_BUILD_ROOT{%{_examplesdir}/%{name}-%{version},%{_datadir}/gir-1.0,%{_libdir}/girepository-1.0} |
d1e21e3e | 70 | |
8eed3c7b | 71 | %{__make} -j1 install \ |
d1e21e3e MB |
72 | DESTDIR=$RPM_BUILD_ROOT |
73 | ||
74 | cp examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
75 | ||
d2570104 AF |
76 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/gjs-1.0/*.la \ |
77 | $RPM_BUILD_ROOT%{_libdir}/*.la | |
d1e21e3e MB |
78 | |
79 | %clean | |
80 | rm -rf $RPM_BUILD_ROOT | |
81 | ||
82 | %post -p /sbin/ldconfig | |
83 | %postun -p /sbin/ldconfig | |
84 | ||
85 | %files | |
86 | %defattr(644,root,root,755) | |
87 | %doc COPYING NEWS README | |
88 | %attr(755,root,root) %{_bindir}/gjs | |
89 | %attr(755,root,root) %{_bindir}/gjs-console | |
90 | %attr(755,root,root) %{_libdir}/libgjs-dbus.so.*.*.* | |
91 | %attr(755,root,root) %ghost %{_libdir}/libgjs-dbus.so.0 | |
4c027a48 ŁK |
92 | %attr(755,root,root) %{_libdir}/libgjs-gdbus.so.*.*.* |
93 | %attr(755,root,root) %ghost %{_libdir}/libgjs-gdbus.so.0 | |
d1e21e3e MB |
94 | %attr(755,root,root) %{_libdir}/libgjs.so.*.*.* |
95 | %attr(755,root,root) %ghost %{_libdir}/libgjs.so.0 | |
4c027a48 ŁK |
96 | %dir %{_libdir}/gjs |
97 | %{_libdir}/gjs/*.typelib | |
d1e21e3e | 98 | %dir %{_libdir}/gjs-1.0 |
d25f671f | 99 | %attr(755,root,root) %{_libdir}/gjs-1.0/cairoNative.so |
d1e21e3e MB |
100 | %attr(755,root,root) %{_libdir}/gjs-1.0/console.so |
101 | %attr(755,root,root) %{_libdir}/gjs-1.0/dbusNative.so | |
d2570104 | 102 | %attr(755,root,root) %{_libdir}/gjs-1.0/debugger.so |
d1e21e3e | 103 | %attr(755,root,root) %{_libdir}/gjs-1.0/gettextNative.so |
40b359a2 | 104 | %attr(755,root,root) %{_libdir}/gjs-1.0/langNative.so |
d1e21e3e MB |
105 | %attr(755,root,root) %{_libdir}/gjs-1.0/mainloop.so |
106 | %{_datadir}/gjs-1.0 | |
107 | ||
108 | %files devel | |
109 | %defattr(644,root,root,755) | |
110 | %attr(755,root,root) %{_libdir}/libgjs-dbus.so | |
4c027a48 | 111 | %attr(755,root,root) %{_libdir}/libgjs-gdbus.so |
d1e21e3e | 112 | %attr(755,root,root) %{_libdir}/libgjs.so |
4c027a48 | 113 | %{_libdir}/gjs/*.gir |
d1e21e3e MB |
114 | %{_includedir}/gjs-1.0 |
115 | %{_pkgconfigdir}/gjs-1.0.pc | |
116 | %{_pkgconfigdir}/gjs-dbus-1.0.pc | |
1e73c220 | 117 | %{_pkgconfigdir}/gjs-internals-1.0.pc |
d1e21e3e | 118 | %{_examplesdir}/%{name}-%{version} |