]> git.pld-linux.org Git - packages/gjs.git/blob - gjs.spec
- release 2 (by relup.sh)
[packages/gjs.git] / gjs.spec
1 Summary:        JavaScript bindings for GNOME
2 Summary(pl.UTF-8):      Wiązania JavaScriptu dla GNOME
3 Name:           gjs
4 Version:        1.36.1
5 Release:        2
6 License:        MIT and (MPL v1.1 or GPL v2+ or LGPL v2+)
7 Group:          Libraries
8 Source0:        http://ftp.gnome.org/pub/GNOME/sources/gjs/1.36/%{name}-%{version}.tar.xz
9 # Source0-md5:  871348235ce8b8cadfa064eeb0bed6dc
10 URL:            http://live.gnome.org/Gjs
11 BuildRequires:  autoconf >= 2.61
12 BuildRequires:  automake
13 BuildRequires:  cairo-devel
14 BuildRequires:  cairo-gobject-devel
15 BuildRequires:  dbus-glib-devel
16 BuildRequires:  gettext-devel
17 BuildRequires:  glib2-devel >= 1:2.36.0
18 BuildRequires:  gobject-introspection-devel >= 1.36.0
19 BuildRequires:  js185-devel
20 BuildRequires:  libffi-devel
21 BuildRequires:  libstdc++-devel
22 BuildRequires:  libtool
23 BuildRequires:  pkgconfig
24 BuildRequires:  readline-devel
25 Requires:       glib2 >= 1:2.36.0
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 JavaScriptem. Jest oparty głównie
35 na silniku JavaScriptu 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.36.0
44 Requires:       gobject-introspection-devel >= 1.36.0
45 Requires:       js185-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
56 %build
57 %{__libtoolize}
58 %{__aclocal}
59 %{__autoconf}
60 %{__autoheader}
61 %{__automake}
62 %configure \
63         --disable-silent-rules
64 %{__make}
65
66 %install
67 rm -rf $RPM_BUILD_ROOT
68 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
69
70 %{__make} -j1 install \
71         DESTDIR=$RPM_BUILD_ROOT
72
73 cp examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
74
75 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
76
77 %clean
78 rm -rf $RPM_BUILD_ROOT
79
80 %post   -p /sbin/ldconfig
81 %postun -p /sbin/ldconfig
82
83 %files
84 %defattr(644,root,root,755)
85 %doc COPYING NEWS README
86 %attr(755,root,root) %{_bindir}/gjs
87 %attr(755,root,root) %{_bindir}/gjs-console
88 %attr(755,root,root) %{_libdir}/libgjs.so.*.*.*
89 %attr(755,root,root) %ghost %{_libdir}/libgjs.so.0
90 %dir %{_libdir}/gjs
91 %dir %{_libdir}/gjs/girepository-1.0
92 %{_libdir}/gjs/girepository-1.0/GjsPrivate-1.0.typelib
93 %{_datadir}/gjs-1.0
94
95 %files devel
96 %defattr(644,root,root,755)
97 %attr(755,root,root) %{_libdir}/libgjs.so
98 %{_includedir}/gjs-1.0
99 %{_pkgconfigdir}/gjs-1.0.pc
100 %{_pkgconfigdir}/gjs-internals-1.0.pc
101 %{_examplesdir}/%{name}-%{version}
This page took 0.078066 seconds and 3 git commands to generate.