File brp-extract-appdata.spec of Package brp-extract-appdata

#
# spec file for package brp-extract-appdata
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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:           brp-extract-appdata
Version:        2016.05.04
Release:        0
Summary:        Extract appdata.xml
License:        MIT
Group:          Development/Tools/Building
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Source0:        %{name}-%{version}.tar.xz
Url:            https://github.com/openSUSE/brp-extract-appdata
BuildArch:      noarch

%description
Extract appdata.xml from all .deskop files found in build root

%package -n extract-appdata-icons
Summary:        A little perl script to split appdata.xml
Group:          Development/Tools/Building
Requires:       perl(XML::Simple)

%description -n extract-appdata-icons
OBS generated appdata.xml contains all icons and this little tool splits
the XML into the format expected from software center

%prep
%setup -q

%build

%install
install -m0755 -D brp-extract-appdata.pl $RPM_BUILD_ROOT%_rpmconfigdir/brp-suse.d/brp-72-extract-appdata
install -m0755 -D create-appdata-xml.pl $RPM_BUILD_ROOT/usr/lib/build/checks/72-translate-appdata
install -m0755 -D extract-icons.pl $RPM_BUILD_ROOT/usr/bin/extract-appdata-icons

%files
%defattr(-,root,root)
%_rpmconfigdir/brp-suse.d
/usr/lib/build

%files -n extract-appdata-icons
%defattr(-,root,root)
/usr/bin/extract-appdata-icons

%changelog
openSUSE Build Service is sponsored by