Summary:        AppStream metadata of Vine Linux packages
Summary(ja):    Vine LinuxパッケージのAppStreamメタデータ
Name:           appstream-data
Version:        7
Release:        5%{?_dist_release}
Group:          system
Vendor:         Project Vine
Distribution:   Vine Linux

License:        GPL2
Source0:        appstream-main.xml.gz
Source1:        appstream-main-icons.tar.gz
Source2:        appstream-plus.xml.gz
Source3:        appstream-plus-icons.tar.gz

BuildArch:      noarch
BuildRoot:      %{_tmppath}/%{name}-%{version}-root
Requires:       appstream
BuildRequires:  libappstream-glib

%description
 This package provides AppStream metadata of Vine Linux packages.


%prep
%setup -n %{name}-%{version} -c -T


%build


%install
%{__rm} -rf %{buildroot}
DESTDIR=%{buildroot} appstream-util install-origin vine-main %{SOURCE0} %{SOURCE1}
DESTDIR=%{buildroot} appstream-util install-origin vine-plus %{SOURCE2} %{SOURCE3}


%clean
%{__rm} -rf %{buildroot}


%posttrans
/usr/bin/appstreamcli refresh >& /dev/null ||:


%files
%defattr(-,root,root)
%dir %{_datadir}/app-info
%dir %{_datadir}/app-info/icons
%dir %{_datadir}/app-info/icons/*
%dir %{_datadir}/app-info/icons/*/*
%{_datadir}/app-info/icons/*/*/*png
%dir %{_datadir}/app-info/xmls
%attr(0644,root,root) %{_datadir}/app-info/xmls/*


%changelog
* Fri Mar 26 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 7-5
- updated appstream data.

* Sun Sep 13 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 7-4
- updated appstream data.

* Fri Aug 28 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 7-3
- updated appstream data.

* Thu Aug 20 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 7-2
- updated appstream data.

* Sat Aug 08 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 7-1
- initial build.