]>
Commit | Line | Data |
---|---|---|
bcf7baae MB |
1 | # |
2 | # Conditional build: | |
a7df99b0 | 3 | %bcond_without apidocs # gtk-doc based API documentation |
4ee6283a | 4 | |
bcf7baae | 5 | Summary: JavaScript interpreter |
112a4bfd | 6 | Summary(pl.UTF-8): Interpreter JavaScriptu |
bcf7baae | 7 | Name: seed |
2edc9e74 | 8 | Version: 3.8.1 |
cae32d30 | 9 | Release: 12 |
412fa95f | 10 | License: LGPL v2+ |
112a4bfd | 11 | Group: Development/Languages |
a7df99b0 | 12 | Source0: https://download.gnome.org/sources/seed/3.8/%{name}-%{version}.tar.xz |
2edc9e74 | 13 | # Source0-md5: f5afeb04343e0cb56d2396f0d0458988 |
014f8978 | 14 | Patch0: format-security.patch |
48cdc2b3 | 15 | Patch1: gtkdoc.patch |
b08d4f06 | 16 | Patch2: %{name}-array-filename.patch |
6056bcb4 | 17 | URL: https://wiki.gnome.org/Seed |
bcf7baae MB |
18 | BuildRequires: autoconf >= 2.59 |
19 | BuildRequires: automake >= 1:1.7 | |
5244b7df | 20 | BuildRequires: cairo-devel |
bcf7baae | 21 | BuildRequires: dbus-glib-devel |
ac651567 | 22 | BuildRequires: docbook-dtd412-xml |
7e0a2d71 | 23 | BuildRequires: gettext-tools |
bcf7baae | 24 | BuildRequires: gnome-js-common |
8cd9c580 AF |
25 | BuildRequires: gobject-introspection-devel >= 0.10.0 |
26 | BuildRequires: gtk+3-devel >= 3.0.0 | |
bcf7baae | 27 | BuildRequires: gtk-doc >= 1.9 |
8cd9c580 AF |
28 | BuildRequires: gtk-webkit3-devel |
29 | BuildRequires: intltool >= 0.40.0 | |
bcf7baae MB |
30 | BuildRequires: libffi-devel |
31 | BuildRequires: libtool | |
112a4bfd | 32 | BuildRequires: libxml2-devel >= 2.0 |
bcf7baae MB |
33 | BuildRequires: mpfr-devel |
34 | BuildRequires: pkgconfig | |
35 | BuildRequires: readline-devel | |
36 | BuildRequires: sqlite3-devel | |
5244b7df | 37 | BuildRequires: tar >= 1:1.22 |
112a4bfd | 38 | BuildRequires: xorg-lib-libXScrnSaver-devel |
5244b7df | 39 | BuildRequires: xz |
bcf7baae MB |
40 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
41 | ||
42 | %description | |
43 | Seed is a library and interpreter, dynamically bridging (through | |
44 | GObjectIntrospection) the WebKit JavaScriptCore engine, with the GNOME | |
45 | platform. Seed serves as something which enables you to write | |
46 | standalone applications in JavaScript, or easily enable your | |
47 | application to be extensible in JavaScript. | |
48 | ||
49 | %description -l pl.UTF-8 | |
50 | Seed jest biblioteką i interpreterem, dynamicznie łączącym (poprzez | |
51 | GObjectIntrospection) silnik WebKit JavaScriptCore z GNOME. Seed | |
112a4bfd JB |
52 | umożliwia pisanie samodzielnych aplikacji w JavaScripcie, jak również |
53 | łatwe ich rozszerzanie w JavaScripcie. | |
bcf7baae MB |
54 | |
55 | %package devel | |
56 | Summary: Header files for seed library | |
57 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki seed | |
58 | Group: Development/Libraries | |
59 | Requires: %{name} = %{version}-%{release} | |
60 | Requires: glib2-devel | |
8cd9c580 AF |
61 | Requires: gobject-introspection-devel >= 0.10.0 |
62 | Requires: gtk-webkit3-devel | |
bcf7baae MB |
63 | |
64 | %description devel | |
65 | Header files for seed library. | |
66 | ||
67 | %description devel -l pl.UTF-8 | |
68 | Pliki nagłówkowe biblioteki seed. | |
69 | ||
70 | %package static | |
71 | Summary: Static seed library | |
72 | Summary(pl.UTF-8): Statyczna biblioteka seed | |
73 | Group: Development/Libraries | |
74 | Requires: %{name}-devel = %{version}-%{release} | |
75 | ||
76 | %description static | |
77 | Static seed library. | |
78 | ||
79 | %description static -l pl.UTF-8 | |
80 | Statyczna biblioteka seed. | |
81 | ||
82 | %package apidocs | |
83 | Summary: seed library API documentation | |
84 | Summary(pl.UTF-8): Dokumentacja API biblioteki seed | |
85 | Group: Documentation | |
86 | Requires: gtk-doc-common | |
4ee6283a | 87 | BuildArch: noarch |
bcf7baae MB |
88 | |
89 | %description apidocs | |
90 | API documentation for seed library. | |
91 | ||
92 | %description apidocs -l pl.UTF-8 | |
93 | Dokumentacja API biblioteki seed. | |
94 | ||
95 | %prep | |
96 | %setup -q | |
014f8978 | 97 | %patch0 -p1 |
48cdc2b3 | 98 | %patch1 -p1 |
b08d4f06 | 99 | %patch2 -p1 |
bcf7baae MB |
100 | |
101 | %build | |
6056bcb4 | 102 | %{__gtkdocize} |
bcf7baae MB |
103 | %{__intltoolize} |
104 | %{__libtoolize} | |
105 | %{__aclocal} | |
106 | %{__autoconf} | |
107 | %{__autoheader} | |
108 | %{__automake} | |
109 | %configure \ | |
110 | %{__enable_disable apidocs gtk-doc} \ | |
112a4bfd JB |
111 | --disable-silent-rules \ |
112 | --enable-xorg-module \ | |
113 | --with-html-dir=%{_gtkdocdir} \ | |
114 | --with-webkit=3.0 | |
bcf7baae MB |
115 | %{__make} |
116 | ||
117 | %install | |
118 | rm -rf $RPM_BUILD_ROOT | |
8cd9c580 | 119 | %{__make} -j1 install \ |
bcf7baae MB |
120 | DESTDIR=$RPM_BUILD_ROOT |
121 | ||
6056bcb4 | 122 | %{__mv} $RPM_BUILD_ROOT%{_docdir}/seed{,-%{version}} |
bcf7baae | 123 | |
8cd9c580 AF |
124 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/seed-gtk3/libseed*.{a,la} \ |
125 | $RPM_BUILD_ROOT%{_libdir}/*.la | |
bcf7baae MB |
126 | |
127 | %if %{without apidocs} | |
128 | rm -rf $RPM_BUILD_ROOT%{_gtkdocdir} | |
129 | %endif | |
130 | ||
131 | %clean | |
132 | rm -rf $RPM_BUILD_ROOT | |
133 | ||
134 | %post -p /sbin/ldconfig | |
135 | %postun -p /sbin/ldconfig | |
136 | ||
137 | %files | |
138 | %defattr(644,root,root,755) | |
139 | %doc %{_docdir}/seed-%{version} | |
140 | %attr(755,root,root) %{_bindir}/seed | |
8cd9c580 AF |
141 | %attr(755,root,root) %{_libdir}/libseed-gtk3.so.*.*.* |
142 | %attr(755,root,root) %ghost %{_libdir}/libseed-gtk3.so.0 | |
143 | %dir %{_libdir}/seed-gtk3 | |
144 | %attr(755,root,root) %{_libdir}/seed-gtk3/libseed_DynamicObject.so | |
145 | %attr(755,root,root) %{_libdir}/seed-gtk3/libseed_cairo.so | |
146 | %attr(755,root,root) %{_libdir}/seed-gtk3/libseed_canvas.so | |
147 | %attr(755,root,root) %{_libdir}/seed-gtk3/libseed_dbusnative.so | |
148 | %attr(755,root,root) %{_libdir}/seed-gtk3/libseed_example.so | |
149 | %attr(755,root,root) %{_libdir}/seed-gtk3/libseed_ffi.so | |
150 | %attr(755,root,root) %{_libdir}/seed-gtk3/libseed_gettext.so | |
151 | %attr(755,root,root) %{_libdir}/seed-gtk3/libseed_gtkbuilder.so | |
152 | %attr(755,root,root) %{_libdir}/seed-gtk3/libseed_libxml.so | |
153 | %attr(755,root,root) %{_libdir}/seed-gtk3/libseed_mpfr.so | |
154 | %attr(755,root,root) %{_libdir}/seed-gtk3/libseed_multiprocessing.so | |
155 | %attr(755,root,root) %{_libdir}/seed-gtk3/libseed_os.so | |
156 | %attr(755,root,root) %{_libdir}/seed-gtk3/libseed_readline.so | |
157 | %attr(755,root,root) %{_libdir}/seed-gtk3/libseed_sandbox.so | |
158 | %attr(755,root,root) %{_libdir}/seed-gtk3/libseed_sqlite.so | |
112a4bfd | 159 | %attr(755,root,root) %{_libdir}/seed-gtk3/libseed_xorg.so |
8cd9c580 | 160 | %{_datadir}/seed-gtk3 |
bcf7baae MB |
161 | %{_mandir}/man1/seed.1* |
162 | ||
163 | %files devel | |
164 | %defattr(644,root,root,755) | |
8cd9c580 AF |
165 | %attr(755,root,root) %{_libdir}/libseed-gtk3.so |
166 | %{_includedir}/seed-gtk3 | |
bcf7baae MB |
167 | %{_pkgconfigdir}/seed.pc |
168 | ||
169 | %files static | |
170 | %defattr(644,root,root,755) | |
8cd9c580 | 171 | %{_libdir}/libseed-gtk3.a |
bcf7baae MB |
172 | |
173 | %if %{with apidocs} | |
174 | %files apidocs | |
175 | %defattr(644,root,root,755) | |
176 | %{_gtkdocdir}/seed | |
177 | %endif |