]>
Commit | Line | Data |
---|---|---|
d1e21e3e MB |
1 | Summary: JavaScript bindings for GNOME |
2 | Summary(pl.UTF-8): Wiązania JavaScript dla GNOME | |
3 | Name: gjs | |
1e73c220 | 4 | Version: 0.7.5 |
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 |
1e73c220 | 9 | # Source0-md5: e832a9dcc20160b10d271dff0ddf74f6 |
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 | |
1e73c220 | 17 | BuildRequires: gobject-introspection-devel >= 0.9.5 |
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} | |
59 | %configure | |
60 | %{__make} | |
61 | ||
62 | %install | |
63 | rm -rf $RPM_BUILD_ROOT | |
64 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
65 | ||
8eed3c7b | 66 | %{__make} -j1 install \ |
d1e21e3e MB |
67 | DESTDIR=$RPM_BUILD_ROOT |
68 | ||
69 | cp examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
70 | ||
71 | rm -f $RPM_BUILD_ROOT%{_libdir}/gjs-1.0/*.la | |
72 | ||
73 | %clean | |
74 | rm -rf $RPM_BUILD_ROOT | |
75 | ||
76 | %post -p /sbin/ldconfig | |
77 | %postun -p /sbin/ldconfig | |
78 | ||
79 | %files | |
80 | %defattr(644,root,root,755) | |
81 | %doc COPYING NEWS README | |
82 | %attr(755,root,root) %{_bindir}/gjs | |
83 | %attr(755,root,root) %{_bindir}/gjs-console | |
84 | %attr(755,root,root) %{_libdir}/libgjs-dbus.so.*.*.* | |
85 | %attr(755,root,root) %ghost %{_libdir}/libgjs-dbus.so.0 | |
86 | %attr(755,root,root) %{_libdir}/libgjs-gi.so.*.*.* | |
87 | %attr(755,root,root) %ghost %{_libdir}/libgjs-gi.so.0 | |
88 | %attr(755,root,root) %{_libdir}/libgjs.so.*.*.* | |
89 | %attr(755,root,root) %ghost %{_libdir}/libgjs.so.0 | |
90 | %dir %{_libdir}/gjs-1.0 | |
d25f671f | 91 | %attr(755,root,root) %{_libdir}/gjs-1.0/cairoNative.so |
d1e21e3e MB |
92 | %attr(755,root,root) %{_libdir}/gjs-1.0/console.so |
93 | %attr(755,root,root) %{_libdir}/gjs-1.0/dbusNative.so | |
224f5b29 | 94 | #%attr(755,root,root) %{_libdir}/gjs-1.0/debugger.so |
d1e21e3e MB |
95 | %attr(755,root,root) %{_libdir}/gjs-1.0/gettextNative.so |
96 | %attr(755,root,root) %{_libdir}/gjs-1.0/gi.so | |
40b359a2 | 97 | %attr(755,root,root) %{_libdir}/gjs-1.0/langNative.so |
d1e21e3e MB |
98 | %attr(755,root,root) %{_libdir}/gjs-1.0/mainloop.so |
99 | %{_datadir}/gjs-1.0 | |
100 | ||
101 | %files devel | |
102 | %defattr(644,root,root,755) | |
103 | %attr(755,root,root) %{_libdir}/libgjs-dbus.so | |
104 | %attr(755,root,root) %{_libdir}/libgjs-gi.so | |
105 | %attr(755,root,root) %{_libdir}/libgjs.so | |
106 | %{_libdir}/libgjs-dbus.la | |
107 | %{_libdir}/libgjs-gi.la | |
108 | %{_libdir}/libgjs.la | |
109 | %{_includedir}/gjs-1.0 | |
110 | %{_pkgconfigdir}/gjs-1.0.pc | |
111 | %{_pkgconfigdir}/gjs-dbus-1.0.pc | |
112 | %{_pkgconfigdir}/gjs-gi-1.0.pc | |
1e73c220 | 113 | %{_pkgconfigdir}/gjs-internals-1.0.pc |
d1e21e3e | 114 | %{_examplesdir}/%{name}-%{version} |