File appdata-tools.spec of Package appdata-tools
#
# spec file for package appdata-tools
#
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2013 Dominique Leuenberger, Amsterdam, The Netherlands
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: appdata-tools
Version: 0.1.8
Release: 0
Summary: AppData validation tool
License: GPL-2.0+
Group: System/Utilities
Url: http://people.freedesktop.org/~hughsient/appdata/
Source: http://people.freedesktop.org/~hughsient/releases/%{name}-%{version}.tar.xz
BuildRequires: docbook-xsl-stylesheets
BuildRequires: intltool >= 0.35.0
# avoid dependency on java
#BuildRequires: trang
#BuildRequires: python-lxml
BuildRequires: xsltproc
BuildRequires: pkgconfig(appstream-glib) >= 0.1.4
BuildRequires: pkgconfig(gdk-pixbuf-2.0)
BuildRequires: pkgconfig(glib-2.0) >= 2.36.0
BuildRequires: pkgconfig(gobject-2.0)
BuildRequires: pkgconfig(gthread-2.0)
BuildRequires: pkgconfig(libsoup-2.4)
Recommends: %{name}-lang
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
AppData is a subset of AppStream.
This package contains various tools to validate appdata files and work with them.
%lang_package
%prep
%setup -q
%build
%configure \
--enable-man
make %{?_smp_mflags}
%install
%make_install
%find_lang %{name} %{?no_lang_C}
%files
%defattr(-,root,root)
%doc ChangeLog README COPYING
%{_bindir}/appdata-validate
%{_datadir}/aclocal/appdata-xml.m4
%dir %{_datadir}/appdata
%{_datadir}/appdata/schema/
%dir %{_datadir}/emacs/site-lisp/site-start.d
%{_datadir}/emacs/site-lisp/site-start.d/appdata-rng-init.el
%{_mandir}/man1/appdata-validate.1%{?ext_man}
%files lang -f %{name}.lang
%changelog