]>
Commit | Line | Data |
---|---|---|
95911c7e JB |
1 | # |
2 | # Conditional build: | |
aee54d63 | 3 | %bcond_without sysprof # sysprof profiling |
95911c7e | 4 | %bcond_without systemtap # systemtap/dtrace trace support |
68e1bbed | 5 | # |
d1e21e3e | 6 | Summary: JavaScript bindings for GNOME |
ae612451 | 7 | Summary(pl.UTF-8): Wiązania JavaScriptu dla GNOME |
d1e21e3e | 8 | Name: gjs |
2a13e966 | 9 | Version: 1.58.5 |
41b9b4d3 | 10 | Release: 2 |
ae612451 | 11 | License: MIT and (MPL v1.1 or GPL v2+ or LGPL v2+) |
d1e21e3e | 12 | Group: Libraries |
aee54d63 | 13 | Source0: http://ftp.gnome.org/pub/GNOME/sources/gjs/1.58/%{name}-%{version}.tar.xz |
2a13e966 | 14 | # Source0-md5: 4e74456ccb16d4cc5004a441f6abbec1 |
c4adf36e | 15 | URL: https://wiki.gnome.org/Projects/Gjs |
9762e2fa MB |
16 | BuildRequires: autoconf >= 2.64 |
17 | BuildRequires: automake >= 1:1.11.1 | |
d2570104 AF |
18 | BuildRequires: cairo-devel |
19 | BuildRequires: cairo-gobject-devel | |
dee0d724 | 20 | BuildRequires: gettext-tools |
aee54d63 | 21 | BuildRequires: glib2-devel >= 1:2.58.0 |
b636f078 | 22 | BuildRequires: gobject-introspection-devel >= 1.41.4 |
118870d4 | 23 | BuildRequires: libffi-devel |
c4adf36e | 24 | BuildRequires: libstdc++-devel >= 6:5.0 |
ee5cf52a | 25 | BuildRequires: libtool >= 2:2.2.0 |
c4adf36e | 26 | BuildRequires: mozjs60-devel >= 60 |
d1e21e3e | 27 | BuildRequires: pkgconfig |
d2570104 | 28 | BuildRequires: readline-devel |
aee54d63 JB |
29 | # pkgconfig(sysprof-capture-3) |
30 | %{?with_sysprof:BuildRequires: sysprof-devel >= 3.34} | |
95911c7e | 31 | %{?with_systemtap:BuildRequires: systemtap-sdt-devel} |
1c06e8ee JB |
32 | BuildRequires: tar >= 1:1.22 |
33 | BuildRequires: xz | |
aee54d63 | 34 | Requires: glib2 >= 1:2.58.0 |
d1e21e3e MB |
35 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
36 | ||
37 | %description | |
38 | Gjs allows using GNOME libraries from JavaScript. It is mainly based | |
39 | on Spidermonkey JavaScript engine and the GObject introspection | |
40 | framework. | |
41 | ||
42 | %description -l pl.UTF-8 | |
ae612451 JB |
43 | Gjs pozwala używać bibliotek GNOME z JavaScriptem. Jest oparty głównie |
44 | na silniku JavaScriptu Spidermonkey i systemie GObject introspection. | |
d1e21e3e MB |
45 | |
46 | %package devel | |
47 | Summary: Header files for gjs library | |
48 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki gjs | |
49 | Group: Development/Libraries | |
50 | Requires: %{name} = %{version}-%{release} | |
ee5cf52a JB |
51 | Requires: cairo-devel |
52 | Requires: cairo-gobject-devel | |
aee54d63 | 53 | Requires: glib2-devel >= 1:2.58.0 |
b636f078 | 54 | Requires: gobject-introspection-devel >= 1.41.4 |
ee5cf52a | 55 | Requires: libffi-devel |
c4adf36e | 56 | Requires: mozjs60-devel >= 60 |
d1e21e3e MB |
57 | |
58 | %description devel | |
59 | Header files for gjs library. | |
60 | ||
61 | %description devel -l pl.UTF-8 | |
62 | Pliki nagłówkowe biblioteki gjs. | |
63 | ||
95911c7e JB |
64 | %package -n systemtap-gjs |
65 | Summary: systemtap/dtrace probes for gjs | |
66 | Summary(pl.UTF-8): Sondy systemtap/dtrace dla gjs | |
67 | Group: Development/Tools | |
68 | Requires: %{name} = %{version}-%{release} | |
69 | Requires: systemtap-client | |
70 | ||
71 | %description -n systemtap-gjs | |
72 | systemtap/dtrace probes for gjs. | |
73 | ||
74 | %description -n systemtap-gjs -l pl.UTF-8 | |
75 | Sondy systemtap/dtrace dla gjs. | |
76 | ||
d1e21e3e MB |
77 | %prep |
78 | %setup -q | |
79 | ||
80 | %build | |
81 | %{__libtoolize} | |
82 | %{__aclocal} | |
83 | %{__autoconf} | |
84 | %{__autoheader} | |
85 | %{__automake} | |
27b8a829 | 86 | %configure \ |
aee54d63 | 87 | --enable-profiler%{!?with_sysprof:=no} \ |
95911c7e JB |
88 | --disable-silent-rules \ |
89 | %{?with_systemtap:--enable-systemtap} | |
d1e21e3e MB |
90 | %{__make} |
91 | ||
92 | %install | |
93 | rm -rf $RPM_BUILD_ROOT | |
0a8630ec | 94 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
d1e21e3e | 95 | |
8eed3c7b | 96 | %{__make} -j1 install \ |
d1e21e3e MB |
97 | DESTDIR=$RPM_BUILD_ROOT |
98 | ||
aee54d63 | 99 | cp -p examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
d1e21e3e | 100 | |
aee54d63 | 101 | # obsoleted by pkg-config |
e6d72c2a | 102 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la |
aee54d63 JB |
103 | # belongs to installed-tests |
104 | %{__rm} $RPM_BUILD_ROOT%{_datadir}/glib-2.0/schemas/org.gnome.GjsTest.gschema.xml | |
d1e21e3e MB |
105 | |
106 | %clean | |
107 | rm -rf $RPM_BUILD_ROOT | |
108 | ||
109 | %post -p /sbin/ldconfig | |
110 | %postun -p /sbin/ldconfig | |
111 | ||
112 | %files | |
113 | %defattr(644,root,root,755) | |
114 | %doc COPYING NEWS README | |
115 | %attr(755,root,root) %{_bindir}/gjs | |
116 | %attr(755,root,root) %{_bindir}/gjs-console | |
d1e21e3e MB |
117 | %attr(755,root,root) %{_libdir}/libgjs.so.*.*.* |
118 | %attr(755,root,root) %ghost %{_libdir}/libgjs.so.0 | |
1ec4cb2a ŁK |
119 | %dir %{_libdir}/gjs |
120 | %dir %{_libdir}/gjs/girepository-1.0 | |
121 | %{_libdir}/gjs/girepository-1.0/GjsPrivate-1.0.typelib | |
e8f0ae7c | 122 | %{_datadir}/gjs-1.0 |
d1e21e3e MB |
123 | |
124 | %files devel | |
125 | %defattr(644,root,root,755) | |
d1e21e3e | 126 | %attr(755,root,root) %{_libdir}/libgjs.so |
d1e21e3e MB |
127 | %{_includedir}/gjs-1.0 |
128 | %{_pkgconfigdir}/gjs-1.0.pc | |
d1e21e3e | 129 | %{_examplesdir}/%{name}-%{version} |
95911c7e JB |
130 | |
131 | %files -n systemtap-gjs | |
132 | %defattr(644,root,root,755) | |
133 | %{_datadir}/systemtap/tapset/gjs.stp |