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