]>
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 ŁK |
4 | Version: 0.7.14 |
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 |
44f13053 | 9 | # Source0-md5: 0e1487e066df8937317da34545f7b548 |
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 AF |
18 | BuildRequires: glib2-devel >= 1:2.18.0 |
19 | BuildRequires: gobject-introspection-devel >= 0.10.1 | |
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 | |
1e73c220 MB |
43 | Requires: glib2-devel >= 1:2.16.0 |
44 | Requires: gobject-introspection-devel >= 0.9.5 | |
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 | |
69 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
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 | |
92 | %attr(755,root,root) %{_libdir}/libgjs-gi.so.*.*.* | |
93 | %attr(755,root,root) %ghost %{_libdir}/libgjs-gi.so.0 | |
94 | %attr(755,root,root) %{_libdir}/libgjs.so.*.*.* | |
95 | %attr(755,root,root) %ghost %{_libdir}/libgjs.so.0 | |
96 | %dir %{_libdir}/gjs-1.0 | |
d25f671f | 97 | %attr(755,root,root) %{_libdir}/gjs-1.0/cairoNative.so |
d1e21e3e MB |
98 | %attr(755,root,root) %{_libdir}/gjs-1.0/console.so |
99 | %attr(755,root,root) %{_libdir}/gjs-1.0/dbusNative.so | |
d2570104 | 100 | %attr(755,root,root) %{_libdir}/gjs-1.0/debugger.so |
d1e21e3e MB |
101 | %attr(755,root,root) %{_libdir}/gjs-1.0/gettextNative.so |
102 | %attr(755,root,root) %{_libdir}/gjs-1.0/gi.so | |
40b359a2 | 103 | %attr(755,root,root) %{_libdir}/gjs-1.0/langNative.so |
d1e21e3e MB |
104 | %attr(755,root,root) %{_libdir}/gjs-1.0/mainloop.so |
105 | %{_datadir}/gjs-1.0 | |
106 | ||
107 | %files devel | |
108 | %defattr(644,root,root,755) | |
109 | %attr(755,root,root) %{_libdir}/libgjs-dbus.so | |
110 | %attr(755,root,root) %{_libdir}/libgjs-gi.so | |
111 | %attr(755,root,root) %{_libdir}/libgjs.so | |
d1e21e3e MB |
112 | %{_includedir}/gjs-1.0 |
113 | %{_pkgconfigdir}/gjs-1.0.pc | |
114 | %{_pkgconfigdir}/gjs-dbus-1.0.pc | |
115 | %{_pkgconfigdir}/gjs-gi-1.0.pc | |
1e73c220 | 116 | %{_pkgconfigdir}/gjs-internals-1.0.pc |
d1e21e3e | 117 | %{_examplesdir}/%{name}-%{version} |