]> git.pld-linux.org Git - packages/gjs.git/blame - gjs.spec
- typo
[packages/gjs.git] / gjs.spec
CommitLineData
d1e21e3e
MB
1Summary: JavaScript bindings for GNOME
2Summary(pl.UTF-8): Wiązania JavaScript dla GNOME
3Name: gjs
8b1beac3
ŁK
4Version: 1.30.1
5Release: 1
d1e21e3e
MB
6License: MIT and (MPL v1.1 / GPL v2+ / LGPL v2+)
7Group: Libraries
4c027a48 8Source0: http://ftp.gnome.org/pub/GNOME/sources/gjs/1.30/%{name}-%{version}.tar.xz
8b1beac3 9# Source0-md5: 7f8842aea298a033f0c8d725278e1e50
224f5b29 10Patch0: %{name}-rpath.patch
8bc6e50a 11Patch1: am.patch
d1e21e3e
MB
12URL: http://live.gnome.org/Gjs
13BuildRequires: autoconf >= 2.61
14BuildRequires: automake
d2570104
AF
15BuildRequires: cairo-devel
16BuildRequires: cairo-gobject-devel
d1e21e3e
MB
17BuildRequires: dbus-glib-devel
18BuildRequires: gettext-devel
d2570104 19BuildRequires: glib2-devel >= 1:2.18.0
4c027a48 20BuildRequires: gobject-introspection-devel >= 1.29.17
8b1beac3 21BuildRequires: js185-devel
a584de6c 22BuildRequires: libstdc++-devel
d1e21e3e
MB
23BuildRequires: libtool
24BuildRequires: pkgconfig
d2570104 25BuildRequires: readline-devel
d1e21e3e
MB
26BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28%description
29Gjs allows using GNOME libraries from JavaScript. It is mainly based
30on Spidermonkey JavaScript engine and the GObject introspection
31framework.
32
33%description -l pl.UTF-8
34Gjs pozwala używać bibliotek GNOME z JavaScript. Bazuje głównie na
35silniku JavaScript Spidermonkey i systemie GObject introspection.
36
37%package devel
38Summary: Header files for gjs library
39Summary(pl.UTF-8): Pliki nagłówkowe biblioteki gjs
40Group: Development/Libraries
41Requires: %{name} = %{version}-%{release}
42Requires: dbus-devel
4c027a48
ŁK
43Requires: glib2-devel >= 1:2.18.0
44Requires: gobject-introspection-devel >= 1.29.17
8b1beac3 45Requires: js185-devel
d1e21e3e
MB
46
47%description devel
48Header files for gjs library.
49
50%description devel -l pl.UTF-8
51Pliki nagłówkowe biblioteki gjs.
52
53%prep
54%setup -q
224f5b29 55%patch0 -p1
8bc6e50a 56%patch1 -p1
d1e21e3e
MB
57
58%build
59%{__libtoolize}
60%{__aclocal}
61%{__autoconf}
62%{__autoheader}
63%{__automake}
27b8a829 64%configure \
91ba7de1 65 --disable-silent-rules \
8b1beac3 66 --with-js-package=mozjs185
d1e21e3e
MB
67%{__make}
68
69%install
70rm -rf $RPM_BUILD_ROOT
4c027a48 71install -d $RPM_BUILD_ROOT{%{_examplesdir}/%{name}-%{version},%{_datadir}/gir-1.0,%{_libdir}/girepository-1.0}
d1e21e3e 72
8eed3c7b 73%{__make} -j1 install \
d1e21e3e
MB
74 DESTDIR=$RPM_BUILD_ROOT
75
76cp examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
77
d2570104
AF
78%{__rm} $RPM_BUILD_ROOT%{_libdir}/gjs-1.0/*.la \
79 $RPM_BUILD_ROOT%{_libdir}/*.la
d1e21e3e
MB
80
81%clean
82rm -rf $RPM_BUILD_ROOT
83
84%post -p /sbin/ldconfig
85%postun -p /sbin/ldconfig
86
87%files
88%defattr(644,root,root,755)
89%doc COPYING NEWS README
90%attr(755,root,root) %{_bindir}/gjs
91%attr(755,root,root) %{_bindir}/gjs-console
92%attr(755,root,root) %{_libdir}/libgjs-dbus.so.*.*.*
93%attr(755,root,root) %ghost %{_libdir}/libgjs-dbus.so.0
4c027a48
ŁK
94%attr(755,root,root) %{_libdir}/libgjs-gdbus.so.*.*.*
95%attr(755,root,root) %ghost %{_libdir}/libgjs-gdbus.so.0
d1e21e3e
MB
96%attr(755,root,root) %{_libdir}/libgjs.so.*.*.*
97%attr(755,root,root) %ghost %{_libdir}/libgjs.so.0
4c027a48
ŁK
98%dir %{_libdir}/gjs
99%{_libdir}/gjs/*.typelib
d1e21e3e 100%dir %{_libdir}/gjs-1.0
d25f671f 101%attr(755,root,root) %{_libdir}/gjs-1.0/cairoNative.so
d1e21e3e
MB
102%attr(755,root,root) %{_libdir}/gjs-1.0/console.so
103%attr(755,root,root) %{_libdir}/gjs-1.0/dbusNative.so
d2570104 104%attr(755,root,root) %{_libdir}/gjs-1.0/debugger.so
d1e21e3e 105%attr(755,root,root) %{_libdir}/gjs-1.0/gettextNative.so
40b359a2 106%attr(755,root,root) %{_libdir}/gjs-1.0/langNative.so
d1e21e3e
MB
107%attr(755,root,root) %{_libdir}/gjs-1.0/mainloop.so
108%{_datadir}/gjs-1.0
109
110%files devel
111%defattr(644,root,root,755)
112%attr(755,root,root) %{_libdir}/libgjs-dbus.so
4c027a48 113%attr(755,root,root) %{_libdir}/libgjs-gdbus.so
d1e21e3e 114%attr(755,root,root) %{_libdir}/libgjs.so
4c027a48 115%{_libdir}/gjs/*.gir
d1e21e3e
MB
116%{_includedir}/gjs-1.0
117%{_pkgconfigdir}/gjs-1.0.pc
118%{_pkgconfigdir}/gjs-dbus-1.0.pc
1e73c220 119%{_pkgconfigdir}/gjs-internals-1.0.pc
d1e21e3e 120%{_examplesdir}/%{name}-%{version}
This page took 0.068593 seconds and 4 git commands to generate.