/[packages]/cauldron/cjs/current/SPECS/cjs.spec
ViewVC logotype

Contents of /cauldron/cjs/current/SPECS/cjs.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1579751 - (show annotations) (download)
Mon May 4 15:26:57 2020 UTC (3 years, 4 months ago) by ovitters
File size: 3112 byte(s)
SILENT make_build already implies V=1 and VERBOSE=1, remove these
1 %global commit fe3b1ec434700f45bf75615285a18decfa3aca1a
2 %global shortcommit %(c=%{commit}; echo ${c:0:7})
3 %define api 1.0
4 %define major 0
5 %define girmajor 1.0
6 %define libname %mklibname %{name} %{major}
7 %define develname %mklibname -d %{name}
8 %define girname %mklibname %{name}-gir %{girmajor}
9
10 # needed to prevent spurtious devel require
11 %global _requires_exclude devel\\(libmozjs\-52.*\\)
12
13 Name: cjs
14 Epoch: 1
15 Version: 4.4.0
16 Release: %mkrel 3
17 Summary: Javascript Bindings for Cinnamon
18
19 Group: Development/Other
20 # The following files contain code from Mozilla which
21 # is triple licensed under MPL1.1/LGPLv2+/GPLv2+:
22 # The console module (modules/console.c)
23 # Stack printer (gjs/stack.c)
24 License: MIT and (MPLv1.1 or GPLv2+ or LGPLv2+)
25 URL: http://cinnamon.linuxmint.com
26
27 Source0: https://github.com/linuxmint/cjs/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
28
29 #Source0: https://github.com/linuxmint/cjs/tarball/%{shortcommit}#/%{name}-%{version}.git%{shortcommit}.tar.gz
30
31 BuildRequires: pkgconfig(mozjs-52)
32 BuildRequires: pkgconfig(cairo-gobject)
33 BuildRequires: pkgconfig(gobject-introspection-1.0) >= 1.31.22
34 BuildRequires: readline-devel
35 BuildRequires: pkgconfig(dbus-glib-1)
36 BuildRequires: intltool
37 # Bootstrap requirements
38 BuildRequires: gtk-doc
39 BuildRequires: gnome-common
40
41 %description
42 Cjs allows using Cinnamon libraries from Javascript. It's based on the
43 Spidermonkey Javascript engine from Mozilla and the GObject introspection
44 framework.
45
46 %package -n %{libname}
47 Group: System/Libraries
48 Summary: JavaScript bindings based on gobject-introspection
49
50 %description -n %{libname}
51 This package contains JavaScript bindings based on gobject-introspection.
52
53 %package -n %{develname}
54 Summary: Development package for %{name}
55 Group: Development/C
56 Requires: %{libname} = %{?epoch}:%{version}-%{release}
57 Provides: %{name}-devel = %{?epoch}:%{version}-%{release}
58 Provides: lib%{name}-devel = %{?epoch}:%{version}-%{release}
59
60 %description -n %{develname}
61 Files for development with %{name}.
62
63 %package -n %{girname}
64 Summary: GObject Introspection interface description for %{name}
65 Group: System/Libraries
66 Requires: %{libname} = %{?epoch}:%{version}-%{release}
67
68 %description -n %{girname}
69 GObject Introspection interface description for %{name}.
70
71 %prep
72 %setup -q
73 %autopatch -p1
74
75 sed -i -e 's@{ACLOCAL_FLAGS}@{ACLOCAL_FLAGS} -I m4@g' Makefile.am
76 echo "AC_CONFIG_MACRO_DIR([m4])" >> configure.ac
77 rm -f configure
78
79 %build
80 (if ! test -x configure; then NOCONFIGURE=1 ./autogen.sh; fi;
81 %configure --disable-static)
82 sed -i -e 's! -shared ! -Wl,--as-needed\0!g' libtool
83 %make_build
84
85 %install
86 %make_install
87
88 #Remove libtool archives.
89 find %{buildroot} -name '*.la' -delete
90
91 %files
92 %doc COPYING COPYING.LGPL NEWS README
93 %{_bindir}/cjs
94 %{_bindir}/cjs-console
95
96 %files -n %{libname}
97 %{_libdir}/*.so.*
98
99 %files -n %{girname}
100 %{_libdir}/cjs/
101
102 %files -n %{develname}
103 %doc examples/*
104 %{_includedir}/cjs-1.0/
105 %{_libdir}/pkgconfig/cjs-*1.0.pc
106 %{_libdir}/*.so

  ViewVC Help
Powered by ViewVC 1.1.28