3 %bcond_without tests # build without tests
5 Summary: Javascript Bindings for Cinnamon
10 # The following files contain code from Mozilla which
11 # is triple licensed under MPL1.1/LGPLv2+/GPLv2+:
12 # The console module (modules/console.c)
13 # Stack printer (gjs/stack.c)
14 License: MIT and (MPLv1.1 or GPLv2+ or LGPLv2+)
15 Source0: https://github.com/linuxmint/cjs/archive/%{version}/%{name}-%{version}.tar.gz
16 # Source0-md5: 846940e9cf97b15a5b3940cf5c7b2591
17 URL: http://cinnamon.linuxmint.com/
18 BuildRequires: autoconf >= 2.53
19 BuildRequires: automake >= 1.7.2
20 BuildRequires: cairo-gobject-devel
21 BuildRequires: gnome-common
22 BuildRequires: gobject-introspection-devel >= 1.38.0
23 BuildRequires: gtk+3-devel
24 BuildRequires: intltool
25 BuildRequires: libtool
26 BuildRequires: mozjs24-devel
27 BuildRequires: pkgconfig >= 0.14.0
28 BuildRequires: readline-devel
29 BuildRequires: sed >= 4.0
30 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33 Cjs allows using Cinnamon libraries from Javascript. It's based on the
34 Spidermonkey Javascript engine from Mozilla and the GObject
35 introspection framework.
38 Summary: Development package for %{name}
39 Group: Development/Libraries
40 Requires: %{name} = %{version}-%{release}
43 Files for development with %{name}.
46 Summary: Tests for the cjs package
47 Group: Development/Libraries
48 Requires: %{name}-devel = %{version}-%{release}
51 The cjs-tests package contains tests that can be used to verify the
52 functionality of the installed cjs package.
56 sed -i -e 's@{ACLOCAL_FLAGS}@{ACLOCAL_FLAGS} -I m4@g' Makefile.am
57 echo "AC_CONFIG_MACRO_DIR([m4])" >> configure.ac
60 NOCONFIGURE=1 ./autogen.sh
62 --disable-silent-rules \
64 --enable-installed-tests \
73 rm -rf $RPM_BUILD_ROOT
75 DESTDIR=$RPM_BUILD_ROOT
77 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libcjs.la
78 %{__rm} $RPM_BUILD_ROOT%{_libdir}/cjs/lib*.la
81 rm -rf $RPM_BUILD_ROOT
83 %post -p /sbin/ldconfig
84 %postun -p /sbin/ldconfig
87 %defattr(644,root,root,755)
88 %doc COPYING COPYING.LGPL NEWS README
89 %attr(755,root,root) %{_bindir}/cjs
90 %attr(755,root,root) %{_bindir}/cjs-console
91 %attr(755,root,root) %{_libdir}/libcjs.so.*.*.*
92 %ghost %{_libdir}/libcjs.so.0
94 %dir %{_libdir}/cjs/girepository-1.0
95 %{_libdir}/cjs/girepository-1.0/CjsPrivate-1.0.typelib
98 %defattr(644,root,root,755)
100 %{_includedir}/cjs-1.0
102 %{_pkgconfigdir}/cjs-1.0.pc
103 %{_pkgconfigdir}/cjs-internals-1.0.pc
104 %attr(755,root,root) %{_libdir}/cjs/libgimarshallingtests.so
105 %attr(755,root,root) %{_libdir}/cjs/libregress.so
106 %attr(755,root,root) %{_libdir}/cjs/libwarnlib.so
109 %defattr(644,root,root,755)
110 %{_libdir}/cjs/installed-tests
111 %{_datadir}/installed-tests