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