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