]>
Commit | Line | Data |
---|---|---|
1 | Summary: JavaScript bindings for GNOME | |
2 | Summary(pl.UTF-8): Wiązania JavaScript dla GNOME | |
3 | Name: gjs | |
4 | Version: 1.30.0 | |
5 | Release: 2 | |
6 | License: MIT and (MPL v1.1 / GPL v2+ / LGPL v2+) | |
7 | Group: Libraries | |
8 | Source0: http://ftp.gnome.org/pub/GNOME/sources/gjs/1.30/%{name}-%{version}.tar.xz | |
9 | # Source0-md5: 908c1c8654d141d64aac07d57de9a457 | |
10 | Patch0: %{name}-rpath.patch | |
11 | URL: http://live.gnome.org/Gjs | |
12 | BuildRequires: autoconf >= 2.61 | |
13 | BuildRequires: automake | |
14 | BuildRequires: cairo-devel | |
15 | BuildRequires: cairo-gobject-devel | |
16 | BuildRequires: dbus-glib-devel | |
17 | BuildRequires: gettext-devel | |
18 | BuildRequires: glib2-devel >= 1:2.18.0 | |
19 | BuildRequires: gobject-introspection-devel >= 1.29.17 | |
20 | BuildRequires: libstdc++-devel | |
21 | BuildRequires: libtool | |
22 | BuildRequires: pkgconfig | |
23 | BuildRequires: readline-devel | |
24 | BuildRequires: xulrunner-devel >= 1.9.2 | |
25 | %requires_eq xulrunner-libs | |
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 | |
43 | Requires: glib2-devel >= 1:2.18.0 | |
44 | Requires: gobject-introspection-devel >= 1.29.17 | |
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 | |
55 | %patch0 -p1 | |
56 | ||
57 | %build | |
58 | %{__libtoolize} | |
59 | %{__aclocal} | |
60 | %{__autoconf} | |
61 | %{__autoheader} | |
62 | %{__automake} | |
63 | %configure \ | |
64 | --disable-silent-rules | |
65 | %{__make} | |
66 | ||
67 | %install | |
68 | rm -rf $RPM_BUILD_ROOT | |
69 | install -d $RPM_BUILD_ROOT{%{_examplesdir}/%{name}-%{version},%{_datadir}/gir-1.0,%{_libdir}/girepository-1.0} | |
70 | ||
71 | %{__make} -j1 install \ | |
72 | DESTDIR=$RPM_BUILD_ROOT | |
73 | ||
74 | cp examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
75 | ||
76 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/gjs-1.0/*.la \ | |
77 | $RPM_BUILD_ROOT%{_libdir}/*.la | |
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-gdbus.so.*.*.* | |
93 | %attr(755,root,root) %ghost %{_libdir}/libgjs-gdbus.so.0 | |
94 | %attr(755,root,root) %{_libdir}/libgjs.so.*.*.* | |
95 | %attr(755,root,root) %ghost %{_libdir}/libgjs.so.0 | |
96 | %dir %{_libdir}/gjs | |
97 | %{_libdir}/gjs/*.typelib | |
98 | %dir %{_libdir}/gjs-1.0 | |
99 | %attr(755,root,root) %{_libdir}/gjs-1.0/cairoNative.so | |
100 | %attr(755,root,root) %{_libdir}/gjs-1.0/console.so | |
101 | %attr(755,root,root) %{_libdir}/gjs-1.0/dbusNative.so | |
102 | %attr(755,root,root) %{_libdir}/gjs-1.0/debugger.so | |
103 | %attr(755,root,root) %{_libdir}/gjs-1.0/gettextNative.so | |
104 | %attr(755,root,root) %{_libdir}/gjs-1.0/langNative.so | |
105 | %attr(755,root,root) %{_libdir}/gjs-1.0/mainloop.so | |
106 | %{_datadir}/gjs-1.0 | |
107 | ||
108 | %files devel | |
109 | %defattr(644,root,root,755) | |
110 | %attr(755,root,root) %{_libdir}/libgjs-dbus.so | |
111 | %attr(755,root,root) %{_libdir}/libgjs-gdbus.so | |
112 | %attr(755,root,root) %{_libdir}/libgjs.so | |
113 | %{_libdir}/gjs/*.gir | |
114 | %{_includedir}/gjs-1.0 | |
115 | %{_pkgconfigdir}/gjs-1.0.pc | |
116 | %{_pkgconfigdir}/gjs-dbus-1.0.pc | |
117 | %{_pkgconfigdir}/gjs-internals-1.0.pc | |
118 | %{_examplesdir}/%{name}-%{version} |