]> git.pld-linux.org Git - packages/gjs.git/blame - gjs.spec
Update to 1.46.0
[packages/gjs.git] / gjs.spec
CommitLineData
95911c7e
JB
1#
2# Conditional build:
3%bcond_without systemtap # systemtap/dtrace trace support
68e1bbed 4#
d1e21e3e 5Summary: JavaScript bindings for GNOME
ae612451 6Summary(pl.UTF-8): Wiązania JavaScriptu dla GNOME
d1e21e3e 7Name: gjs
46fc9286 8Version: 1.46.0
5826bbaf 9Release: 1
ae612451 10License: MIT and (MPL v1.1 or GPL v2+ or LGPL v2+)
d1e21e3e 11Group: Libraries
46fc9286
MB
12Source0: http://ftp.gnome.org/pub/GNOME/sources/gjs/1.46/%{name}-%{version}.tar.xz
13# Source0-md5: 25574b60f4e1173fee0bd4920231df3e
95911c7e 14Patch0: %{name}-systemtap.patch
d1e21e3e
MB
15URL: http://live.gnome.org/Gjs
16BuildRequires: autoconf >= 2.61
17BuildRequires: automake
d2570104
AF
18BuildRequires: cairo-devel
19BuildRequires: cairo-gobject-devel
dee0d724 20BuildRequires: gettext-tools
46fc9286
MB
21BuildRequires: glib2-devel >= 1:2.42.0
22BuildRequires: gnome-common
b636f078 23BuildRequires: gobject-introspection-devel >= 1.41.4
45bcb8fc 24BuildRequires: gtk+3-devel >= 3.0
118870d4 25BuildRequires: libffi-devel
a584de6c 26BuildRequires: libstdc++-devel
d1e21e3e 27BuildRequires: libtool
1da5aa73 28BuildRequires: mozjs24-devel
d1e21e3e 29BuildRequires: pkgconfig
d2570104 30BuildRequires: readline-devel
95911c7e 31%{?with_systemtap:BuildRequires: systemtap-sdt-devel}
46fc9286 32Requires: glib2 >= 1:2.42.0
d1e21e3e
MB
33BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
34
35%description
36Gjs allows using GNOME libraries from JavaScript. It is mainly based
37on Spidermonkey JavaScript engine and the GObject introspection
38framework.
39
40%description -l pl.UTF-8
ae612451
JB
41Gjs pozwala używać bibliotek GNOME z JavaScriptem. Jest oparty głównie
42na silniku JavaScriptu Spidermonkey i systemie GObject introspection.
d1e21e3e
MB
43
44%package devel
45Summary: Header files for gjs library
46Summary(pl.UTF-8): Pliki nagłówkowe biblioteki gjs
47Group: Development/Libraries
48Requires: %{name} = %{version}-%{release}
49Requires: dbus-devel
46fc9286 50Requires: glib2-devel >= 1:2.42.0
b636f078 51Requires: gobject-introspection-devel >= 1.41.4
1da5aa73 52Requires: mozjs24-devel
d1e21e3e
MB
53
54%description devel
55Header files for gjs library.
56
57%description devel -l pl.UTF-8
58Pliki nagłówkowe biblioteki gjs.
59
95911c7e
JB
60%package -n systemtap-gjs
61Summary: systemtap/dtrace probes for gjs
62Summary(pl.UTF-8): Sondy systemtap/dtrace dla gjs
63Group: Development/Tools
64Requires: %{name} = %{version}-%{release}
65Requires: systemtap-client
66
67%description -n systemtap-gjs
68systemtap/dtrace probes for gjs.
69
70%description -n systemtap-gjs -l pl.UTF-8
71Sondy systemtap/dtrace dla gjs.
72
d1e21e3e
MB
73%prep
74%setup -q
95911c7e 75%patch0 -p1
d1e21e3e
MB
76
77%build
78%{__libtoolize}
79%{__aclocal}
80%{__autoconf}
81%{__autoheader}
82%{__automake}
27b8a829 83%configure \
95911c7e
JB
84 --disable-silent-rules \
85 %{?with_systemtap:--enable-systemtap}
d1e21e3e
MB
86%{__make}
87
88%install
89rm -rf $RPM_BUILD_ROOT
0a8630ec 90install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
d1e21e3e 91
8eed3c7b 92%{__make} -j1 install \
d1e21e3e
MB
93 DESTDIR=$RPM_BUILD_ROOT
94
95cp examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
96
e6d72c2a 97%{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
d1e21e3e
MB
98
99%clean
100rm -rf $RPM_BUILD_ROOT
101
102%post -p /sbin/ldconfig
103%postun -p /sbin/ldconfig
104
105%files
106%defattr(644,root,root,755)
107%doc COPYING NEWS README
108%attr(755,root,root) %{_bindir}/gjs
109%attr(755,root,root) %{_bindir}/gjs-console
d1e21e3e
MB
110%attr(755,root,root) %{_libdir}/libgjs.so.*.*.*
111%attr(755,root,root) %ghost %{_libdir}/libgjs.so.0
1ec4cb2a
ŁK
112%dir %{_libdir}/gjs
113%dir %{_libdir}/gjs/girepository-1.0
114%{_libdir}/gjs/girepository-1.0/GjsPrivate-1.0.typelib
d1e21e3e
MB
115
116%files devel
117%defattr(644,root,root,755)
d1e21e3e 118%attr(755,root,root) %{_libdir}/libgjs.so
d1e21e3e
MB
119%{_includedir}/gjs-1.0
120%{_pkgconfigdir}/gjs-1.0.pc
1e73c220 121%{_pkgconfigdir}/gjs-internals-1.0.pc
d1e21e3e 122%{_examplesdir}/%{name}-%{version}
95911c7e
JB
123
124%files -n systemtap-gjs
125%defattr(644,root,root,755)
126%{_datadir}/systemtap/tapset/gjs.stp
This page took 1.034283 seconds and 4 git commands to generate.