]>
Commit | Line | Data |
---|---|---|
d1e21e3e MB |
1 | Summary: JavaScript bindings for GNOME |
2 | Summary(pl.UTF-8): Wiązania JavaScript dla GNOME | |
3 | Name: gjs | |
8b1beac3 ŁK |
4 | Version: 1.30.1 |
5 | Release: 1 | |
d1e21e3e MB |
6 | License: MIT and (MPL v1.1 / GPL v2+ / LGPL v2+) |
7 | Group: Libraries | |
4c027a48 | 8 | Source0: http://ftp.gnome.org/pub/GNOME/sources/gjs/1.30/%{name}-%{version}.tar.xz |
8b1beac3 | 9 | # Source0-md5: 7f8842aea298a033f0c8d725278e1e50 |
224f5b29 | 10 | Patch0: %{name}-rpath.patch |
8bc6e50a | 11 | Patch1: am.patch |
d1e21e3e MB |
12 | URL: http://live.gnome.org/Gjs |
13 | BuildRequires: autoconf >= 2.61 | |
14 | BuildRequires: automake | |
d2570104 AF |
15 | BuildRequires: cairo-devel |
16 | BuildRequires: cairo-gobject-devel | |
d1e21e3e MB |
17 | BuildRequires: dbus-glib-devel |
18 | BuildRequires: gettext-devel | |
d2570104 | 19 | BuildRequires: glib2-devel >= 1:2.18.0 |
4c027a48 | 20 | BuildRequires: gobject-introspection-devel >= 1.29.17 |
8b1beac3 | 21 | BuildRequires: js185-devel |
a584de6c | 22 | BuildRequires: libstdc++-devel |
d1e21e3e MB |
23 | BuildRequires: libtool |
24 | BuildRequires: pkgconfig | |
d2570104 | 25 | BuildRequires: readline-devel |
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 | |
8b1beac3 | 45 | Requires: js185-devel |
d1e21e3e MB |
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 |
8bc6e50a | 56 | %patch1 -p1 |
d1e21e3e MB |
57 | |
58 | %build | |
59 | %{__libtoolize} | |
60 | %{__aclocal} | |
61 | %{__autoconf} | |
62 | %{__autoheader} | |
63 | %{__automake} | |
27b8a829 | 64 | %configure \ |
91ba7de1 | 65 | --disable-silent-rules \ |
8b1beac3 | 66 | --with-js-package=mozjs185 |
d1e21e3e MB |
67 | %{__make} |
68 | ||
69 | %install | |
70 | rm -rf $RPM_BUILD_ROOT | |
4c027a48 | 71 | install -d $RPM_BUILD_ROOT{%{_examplesdir}/%{name}-%{version},%{_datadir}/gir-1.0,%{_libdir}/girepository-1.0} |
d1e21e3e | 72 | |
8eed3c7b | 73 | %{__make} -j1 install \ |
d1e21e3e MB |
74 | DESTDIR=$RPM_BUILD_ROOT |
75 | ||
76 | cp examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
77 | ||
d2570104 AF |
78 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/gjs-1.0/*.la \ |
79 | $RPM_BUILD_ROOT%{_libdir}/*.la | |
d1e21e3e MB |
80 | |
81 | %clean | |
82 | rm -rf $RPM_BUILD_ROOT | |
83 | ||
84 | %post -p /sbin/ldconfig | |
85 | %postun -p /sbin/ldconfig | |
86 | ||
87 | %files | |
88 | %defattr(644,root,root,755) | |
89 | %doc COPYING NEWS README | |
90 | %attr(755,root,root) %{_bindir}/gjs | |
91 | %attr(755,root,root) %{_bindir}/gjs-console | |
92 | %attr(755,root,root) %{_libdir}/libgjs-dbus.so.*.*.* | |
93 | %attr(755,root,root) %ghost %{_libdir}/libgjs-dbus.so.0 | |
4c027a48 ŁK |
94 | %attr(755,root,root) %{_libdir}/libgjs-gdbus.so.*.*.* |
95 | %attr(755,root,root) %ghost %{_libdir}/libgjs-gdbus.so.0 | |
d1e21e3e MB |
96 | %attr(755,root,root) %{_libdir}/libgjs.so.*.*.* |
97 | %attr(755,root,root) %ghost %{_libdir}/libgjs.so.0 | |
4c027a48 ŁK |
98 | %dir %{_libdir}/gjs |
99 | %{_libdir}/gjs/*.typelib | |
d1e21e3e | 100 | %dir %{_libdir}/gjs-1.0 |
d25f671f | 101 | %attr(755,root,root) %{_libdir}/gjs-1.0/cairoNative.so |
d1e21e3e MB |
102 | %attr(755,root,root) %{_libdir}/gjs-1.0/console.so |
103 | %attr(755,root,root) %{_libdir}/gjs-1.0/dbusNative.so | |
d2570104 | 104 | %attr(755,root,root) %{_libdir}/gjs-1.0/debugger.so |
d1e21e3e | 105 | %attr(755,root,root) %{_libdir}/gjs-1.0/gettextNative.so |
40b359a2 | 106 | %attr(755,root,root) %{_libdir}/gjs-1.0/langNative.so |
d1e21e3e MB |
107 | %attr(755,root,root) %{_libdir}/gjs-1.0/mainloop.so |
108 | %{_datadir}/gjs-1.0 | |
109 | ||
110 | %files devel | |
111 | %defattr(644,root,root,755) | |
112 | %attr(755,root,root) %{_libdir}/libgjs-dbus.so | |
4c027a48 | 113 | %attr(755,root,root) %{_libdir}/libgjs-gdbus.so |
d1e21e3e | 114 | %attr(755,root,root) %{_libdir}/libgjs.so |
4c027a48 | 115 | %{_libdir}/gjs/*.gir |
d1e21e3e MB |
116 | %{_includedir}/gjs-1.0 |
117 | %{_pkgconfigdir}/gjs-1.0.pc | |
118 | %{_pkgconfigdir}/gjs-dbus-1.0.pc | |
1e73c220 | 119 | %{_pkgconfigdir}/gjs-internals-1.0.pc |
d1e21e3e | 120 | %{_examplesdir}/%{name}-%{version} |