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