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