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