]>
Commit | Line | Data |
---|---|---|
bcf7baae MB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without apidocs # do not build and package API docs | |
4 | # | |
5 | Summary: JavaScript interpreter | |
112a4bfd | 6 | Summary(pl.UTF-8): Interpreter JavaScriptu |
bcf7baae | 7 | Name: seed |
2edc9e74 | 8 | Version: 3.8.1 |
014f8978 | 9 | Release: 2 |
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 |
21 | BuildRequires: gettext-devel | |
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 | |
85 | ||
86 | %description apidocs | |
87 | API documentation for seed library. | |
88 | ||
89 | %description apidocs -l pl.UTF-8 | |
90 | Dokumentacja API biblioteki seed. | |
91 | ||
92 | %prep | |
93 | %setup -q | |
014f8978 | 94 | %patch0 -p1 |
bcf7baae MB |
95 | |
96 | %build | |
97 | %{__intltoolize} | |
98 | %{__libtoolize} | |
99 | %{__aclocal} | |
100 | %{__autoconf} | |
101 | %{__autoheader} | |
102 | %{__automake} | |
103 | %configure \ | |
104 | %{__enable_disable apidocs gtk-doc} \ | |
112a4bfd JB |
105 | --disable-silent-rules \ |
106 | --enable-xorg-module \ | |
107 | --with-html-dir=%{_gtkdocdir} \ | |
108 | --with-webkit=3.0 | |
bcf7baae MB |
109 | %{__make} |
110 | ||
111 | %install | |
112 | rm -rf $RPM_BUILD_ROOT | |
113 | ||
8cd9c580 | 114 | %{__make} -j1 install \ |
bcf7baae MB |
115 | DESTDIR=$RPM_BUILD_ROOT |
116 | ||
117 | mv -f $RPM_BUILD_ROOT%{_docdir}/seed{,-%{version}} | |
118 | ||
8cd9c580 AF |
119 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/seed-gtk3/libseed*.{a,la} \ |
120 | $RPM_BUILD_ROOT%{_libdir}/*.la | |
bcf7baae MB |
121 | |
122 | %if %{without apidocs} | |
123 | rm -rf $RPM_BUILD_ROOT%{_gtkdocdir} | |
124 | %endif | |
125 | ||
126 | %clean | |
127 | rm -rf $RPM_BUILD_ROOT | |
128 | ||
129 | %post -p /sbin/ldconfig | |
130 | %postun -p /sbin/ldconfig | |
131 | ||
132 | %files | |
133 | %defattr(644,root,root,755) | |
134 | %doc %{_docdir}/seed-%{version} | |
135 | %attr(755,root,root) %{_bindir}/seed | |
8cd9c580 AF |
136 | %attr(755,root,root) %{_libdir}/libseed-gtk3.so.*.*.* |
137 | %attr(755,root,root) %ghost %{_libdir}/libseed-gtk3.so.0 | |
138 | %dir %{_libdir}/seed-gtk3 | |
139 | %attr(755,root,root) %{_libdir}/seed-gtk3/libseed_DynamicObject.so | |
140 | %attr(755,root,root) %{_libdir}/seed-gtk3/libseed_cairo.so | |
141 | %attr(755,root,root) %{_libdir}/seed-gtk3/libseed_canvas.so | |
142 | %attr(755,root,root) %{_libdir}/seed-gtk3/libseed_dbusnative.so | |
143 | %attr(755,root,root) %{_libdir}/seed-gtk3/libseed_example.so | |
144 | %attr(755,root,root) %{_libdir}/seed-gtk3/libseed_ffi.so | |
145 | %attr(755,root,root) %{_libdir}/seed-gtk3/libseed_gettext.so | |
146 | %attr(755,root,root) %{_libdir}/seed-gtk3/libseed_gtkbuilder.so | |
147 | %attr(755,root,root) %{_libdir}/seed-gtk3/libseed_libxml.so | |
148 | %attr(755,root,root) %{_libdir}/seed-gtk3/libseed_mpfr.so | |
149 | %attr(755,root,root) %{_libdir}/seed-gtk3/libseed_multiprocessing.so | |
150 | %attr(755,root,root) %{_libdir}/seed-gtk3/libseed_os.so | |
151 | %attr(755,root,root) %{_libdir}/seed-gtk3/libseed_readline.so | |
152 | %attr(755,root,root) %{_libdir}/seed-gtk3/libseed_sandbox.so | |
153 | %attr(755,root,root) %{_libdir}/seed-gtk3/libseed_sqlite.so | |
112a4bfd | 154 | %attr(755,root,root) %{_libdir}/seed-gtk3/libseed_xorg.so |
8cd9c580 | 155 | %{_datadir}/seed-gtk3 |
bcf7baae MB |
156 | %{_mandir}/man1/seed.1* |
157 | ||
158 | %files devel | |
159 | %defattr(644,root,root,755) | |
8cd9c580 AF |
160 | %attr(755,root,root) %{_libdir}/libseed-gtk3.so |
161 | %{_includedir}/seed-gtk3 | |
bcf7baae MB |
162 | %{_pkgconfigdir}/seed.pc |
163 | ||
164 | %files static | |
165 | %defattr(644,root,root,755) | |
8cd9c580 | 166 | %{_libdir}/libseed-gtk3.a |
bcf7baae MB |
167 | |
168 | %if %{with apidocs} | |
169 | %files apidocs | |
170 | %defattr(644,root,root,755) | |
171 | %{_gtkdocdir}/seed | |
172 | %endif |