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