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