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