]>
Commit | Line | Data |
---|---|---|
d1e21e3e MB |
1 | Summary: JavaScript bindings for GNOME |
2 | Summary(pl.UTF-8): Wiązania JavaScript dla GNOME | |
3 | Name: gjs | |
44f13053 | 4 | Version: 0.7.14 |
1e245ecd | 5 | Release: 7 |
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 |
44f13053 | 9 | # Source0-md5: 0e1487e066df8937317da34545f7b548 |
224f5b29 | 10 | Patch0: %{name}-rpath.patch |
90b603ad | 11 | Patch1: %{name}-xulrunner-5.0.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 AF |
19 | BuildRequires: glib2-devel >= 1:2.18.0 |
20 | BuildRequires: gobject-introspection-devel >= 0.10.1 | |
a584de6c | 21 | BuildRequires: libstdc++-devel |
d1e21e3e MB |
22 | BuildRequires: libtool |
23 | BuildRequires: pkgconfig | |
d2570104 AF |
24 | BuildRequires: readline-devel |
25 | BuildRequires: xulrunner-devel >= 1.9.2 | |
f687dd2c | 26 | %requires_eq xulrunner-libs |
d1e21e3e MB |
27 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
28 | ||
29 | %description | |
30 | Gjs allows using GNOME libraries from JavaScript. It is mainly based | |
31 | on Spidermonkey JavaScript engine and the GObject introspection | |
32 | framework. | |
33 | ||
34 | %description -l pl.UTF-8 | |
35 | Gjs pozwala używać bibliotek GNOME z JavaScript. Bazuje głównie na | |
36 | silniku JavaScript Spidermonkey i systemie GObject introspection. | |
37 | ||
38 | %package devel | |
39 | Summary: Header files for gjs library | |
40 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki gjs | |
41 | Group: Development/Libraries | |
42 | Requires: %{name} = %{version}-%{release} | |
43 | Requires: dbus-devel | |
1e73c220 MB |
44 | Requires: glib2-devel >= 1:2.16.0 |
45 | Requires: gobject-introspection-devel >= 0.9.5 | |
d1e21e3e MB |
46 | Requires: xulrunner-devel |
47 | ||
48 | %description devel | |
49 | Header files for gjs library. | |
50 | ||
51 | %description devel -l pl.UTF-8 | |
52 | Pliki nagłówkowe biblioteki gjs. | |
53 | ||
54 | %prep | |
55 | %setup -q | |
224f5b29 | 56 | %patch0 -p1 |
90b603ad | 57 | %patch1 -p1 |
d1e21e3e MB |
58 | |
59 | %build | |
60 | %{__libtoolize} | |
61 | %{__aclocal} | |
62 | %{__autoconf} | |
63 | %{__autoheader} | |
64 | %{__automake} | |
27b8a829 MB |
65 | %configure \ |
66 | --disable-silent-rules | |
d1e21e3e MB |
67 | %{__make} |
68 | ||
69 | %install | |
70 | rm -rf $RPM_BUILD_ROOT | |
71 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
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 | |
94 | %attr(755,root,root) %{_libdir}/libgjs-gi.so.*.*.* | |
95 | %attr(755,root,root) %ghost %{_libdir}/libgjs-gi.so.0 | |
96 | %attr(755,root,root) %{_libdir}/libgjs.so.*.*.* | |
97 | %attr(755,root,root) %ghost %{_libdir}/libgjs.so.0 | |
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 MB |
103 | %attr(755,root,root) %{_libdir}/gjs-1.0/gettextNative.so |
104 | %attr(755,root,root) %{_libdir}/gjs-1.0/gi.so | |
40b359a2 | 105 | %attr(755,root,root) %{_libdir}/gjs-1.0/langNative.so |
d1e21e3e MB |
106 | %attr(755,root,root) %{_libdir}/gjs-1.0/mainloop.so |
107 | %{_datadir}/gjs-1.0 | |
108 | ||
109 | %files devel | |
110 | %defattr(644,root,root,755) | |
111 | %attr(755,root,root) %{_libdir}/libgjs-dbus.so | |
112 | %attr(755,root,root) %{_libdir}/libgjs-gi.so | |
113 | %attr(755,root,root) %{_libdir}/libgjs.so | |
d1e21e3e MB |
114 | %{_includedir}/gjs-1.0 |
115 | %{_pkgconfigdir}/gjs-1.0.pc | |
116 | %{_pkgconfigdir}/gjs-dbus-1.0.pc | |
117 | %{_pkgconfigdir}/gjs-gi-1.0.pc | |
1e73c220 | 118 | %{_pkgconfigdir}/gjs-internals-1.0.pc |
d1e21e3e | 119 | %{_examplesdir}/%{name}-%{version} |