#
# Conditional build:
%bcond_without apidocs # do not build and package API docs
-#
+
Summary: JavaScript interpreter
Summary(pl.UTF-8): Interpreter JavaScriptu
Name: seed
Version: 3.8.1
-Release: 1
+Release: 8
License: LGPL v2+
Group: Development/Languages
Source0: http://ftp.gnome.org/pub/GNOME/sources/seed/3.8/%{name}-%{version}.tar.xz
# Source0-md5: f5afeb04343e0cb56d2396f0d0458988
-URL: http://live.gnome.org/Seed
+Patch0: format-security.patch
+Patch1: gtkdoc.patch
+Patch2: %{name}-array-filename.patch
+URL: https://wiki.gnome.org/Seed
BuildRequires: autoconf >= 2.59
BuildRequires: automake >= 1:1.7
BuildRequires: cairo-devel
BuildRequires: dbus-glib-devel
BuildRequires: docbook-dtd412-xml
-BuildRequires: gettext-devel
+BuildRequires: gettext-tools
BuildRequires: gnome-js-common
BuildRequires: gobject-introspection-devel >= 0.10.0
BuildRequires: gtk+3-devel >= 3.0.0
Summary(pl.UTF-8): Dokumentacja API biblioteki seed
Group: Documentation
Requires: gtk-doc-common
+%if "%{_rpmversion}" >= "5"
+BuildArch: noarch
+%endif
%description apidocs
API documentation for seed library.
%prep
%setup -q
+%patch0 -p1
+%patch1 -p1
+%patch2 -p1
%build
+%{__gtkdocize}
%{__intltoolize}
%{__libtoolize}
%{__aclocal}
%install
rm -rf $RPM_BUILD_ROOT
-
%{__make} -j1 install \
DESTDIR=$RPM_BUILD_ROOT
-mv -f $RPM_BUILD_ROOT%{_docdir}/seed{,-%{version}}
+%{__mv} $RPM_BUILD_ROOT%{_docdir}/seed{,-%{version}}
%{__rm} $RPM_BUILD_ROOT%{_libdir}/seed-gtk3/libseed*.{a,la} \
$RPM_BUILD_ROOT%{_libdir}/*.la