]> git.pld-linux.org Git - packages/gjs.git/blame - gjs.spec
- release 7
[packages/gjs.git] / gjs.spec
CommitLineData
d1e21e3e
MB
1Summary: JavaScript bindings for GNOME
2Summary(pl.UTF-8): Wiązania JavaScript dla GNOME
3Name: gjs
44f13053 4Version: 0.7.14
1e245ecd 5Release: 7
d1e21e3e
MB
6License: MIT and (MPL v1.1 / GPL v2+ / LGPL v2+)
7Group: Libraries
78a27a39 8Source0: http://ftp.gnome.org/pub/GNOME/sources/gjs/0.7/%{name}-%{version}.tar.bz2
44f13053 9# Source0-md5: 0e1487e066df8937317da34545f7b548
224f5b29 10Patch0: %{name}-rpath.patch
90b603ad 11Patch1: %{name}-xulrunner-5.0.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
AF
19BuildRequires: glib2-devel >= 1:2.18.0
20BuildRequires: gobject-introspection-devel >= 0.10.1
a584de6c 21BuildRequires: libstdc++-devel
d1e21e3e
MB
22BuildRequires: libtool
23BuildRequires: pkgconfig
d2570104
AF
24BuildRequires: readline-devel
25BuildRequires: xulrunner-devel >= 1.9.2
f687dd2c 26%requires_eq xulrunner-libs
d1e21e3e
MB
27BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28
29%description
30Gjs allows using GNOME libraries from JavaScript. It is mainly based
31on Spidermonkey JavaScript engine and the GObject introspection
32framework.
33
34%description -l pl.UTF-8
35Gjs pozwala używać bibliotek GNOME z JavaScript. Bazuje głównie na
36silniku JavaScript Spidermonkey i systemie GObject introspection.
37
38%package devel
39Summary: Header files for gjs library
40Summary(pl.UTF-8): Pliki nagłówkowe biblioteki gjs
41Group: Development/Libraries
42Requires: %{name} = %{version}-%{release}
43Requires: dbus-devel
1e73c220
MB
44Requires: glib2-devel >= 1:2.16.0
45Requires: gobject-introspection-devel >= 0.9.5
d1e21e3e
MB
46Requires: xulrunner-devel
47
48%description devel
49Header files for gjs library.
50
51%description devel -l pl.UTF-8
52Pliki nagłówkowe biblioteki gjs.
53
54%prep
55%setup -q
224f5b29 56%patch0 -p1
90b603ad 57%patch1 -p1
d1e21e3e
MB
58
59%build
60%{__libtoolize}
61%{__aclocal}
62%{__autoconf}
63%{__autoheader}
64%{__automake}
27b8a829
MB
65%configure \
66 --disable-silent-rules
d1e21e3e
MB
67%{__make}
68
69%install
70rm -rf $RPM_BUILD_ROOT
71install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
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
94%attr(755,root,root) %{_libdir}/libgjs-gi.so.*.*.*
95%attr(755,root,root) %ghost %{_libdir}/libgjs-gi.so.0
96%attr(755,root,root) %{_libdir}/libgjs.so.*.*.*
97%attr(755,root,root) %ghost %{_libdir}/libgjs.so.0
98%dir %{_libdir}/gjs-1.0
d25f671f 99%attr(755,root,root) %{_libdir}/gjs-1.0/cairoNative.so
d1e21e3e
MB
100%attr(755,root,root) %{_libdir}/gjs-1.0/console.so
101%attr(755,root,root) %{_libdir}/gjs-1.0/dbusNative.so
d2570104 102%attr(755,root,root) %{_libdir}/gjs-1.0/debugger.so
d1e21e3e
MB
103%attr(755,root,root) %{_libdir}/gjs-1.0/gettextNative.so
104%attr(755,root,root) %{_libdir}/gjs-1.0/gi.so
40b359a2 105%attr(755,root,root) %{_libdir}/gjs-1.0/langNative.so
d1e21e3e
MB
106%attr(755,root,root) %{_libdir}/gjs-1.0/mainloop.so
107%{_datadir}/gjs-1.0
108
109%files devel
110%defattr(644,root,root,755)
111%attr(755,root,root) %{_libdir}/libgjs-dbus.so
112%attr(755,root,root) %{_libdir}/libgjs-gi.so
113%attr(755,root,root) %{_libdir}/libgjs.so
d1e21e3e
MB
114%{_includedir}/gjs-1.0
115%{_pkgconfigdir}/gjs-1.0.pc
116%{_pkgconfigdir}/gjs-dbus-1.0.pc
117%{_pkgconfigdir}/gjs-gi-1.0.pc
1e73c220 118%{_pkgconfigdir}/gjs-internals-1.0.pc
d1e21e3e 119%{_examplesdir}/%{name}-%{version}
This page took 0.057654 seconds and 4 git commands to generate.