Blame SPECS/appstream-data.spec

b3e4a8
%define gitdate 20170301
b3e4a8
72d63f
Summary:   Cached AppStream metadata
72d63f
Name:      appstream-data
72d63f
Version:   7
b3e4a8
Release:   %{gitdate}%{?dist}
72d63f
BuildArch: noarch
72d63f
License:   CC0 and CC-BY and CC-BY-SA and GFDL
72d63f
URL:       http://people.redhat.com/rhughes/metadata/
b3e4a8
Source1:   http://people.redhat.com/rhughes/metadata/rhel-%{version}-%{gitdate}.xml.gz
b3e4a8
Source2:   http://people.redhat.com/rhughes/metadata/rhel-%{version}-%{gitdate}-icons.tar.gz
72d63f
Source3:   https://raw.githubusercontent.com/hughsie/fedora-appstream/master/appstream-extra/adobe-flash.xml
72d63f
Source4:   https://raw.githubusercontent.com/hughsie/fedora-appstream/master/appstream-extra/gstreamer-non-free.xml
72d63f
Source5:   https://raw.githubusercontent.com/hughsie/fedora-appstream/master/appstream-extra/other-repos.xml
72d63f
72d63f
# specially prepared for RHEL
72d63f
Source6:   ibus.xml
72d63f
Source7:   fonts.xml.gz
72d63f
Source8:   fonts-icons.tar.gz
72d63f
72d63f
# extra applications not in RHEL
b3e4a8
Source9:   http://people.redhat.com/rhughes/metadata/epel-%{version}-%{gitdate}.xml.gz
b3e4a8
Source10:  http://people.redhat.com/rhughes/metadata/epel-%{version}-%{gitdate}-icons.tar.gz
72d63f
72d63f
# This is built using:
b3e4a8
# sshfs user@host:/media/bulk/mirror/RHEL /media/mirror/
b3e4a8
# reposync -r rhel-7.4-candidate -p /media/mirror/
b3e4a8
# https://github.com/hughsie/appstream-scripts/blob/master/rhel/rhel-7.4-candidate.sh
b3e4a8
#
b3e4a8
# For a long time (but not long enough to be older than the original release of
b3e4a8
# RHEL 7) we require applications to ship with AppData files if they want to
b3e4a8
# show up in the software center.
b3e4a8
#
b3e4a8
# Do avoid dropping important apps without .appdata.xml files we will grab
b3e4a8
# metadata from Fedora 23,24,25 for the missing components.
b3e4a8
#
b3e4a8
# So we never drop applications from one RHEL release to the next we'll also do:
b3e4a8
#
b3e4a8
# appstream-util merge-appstream rhel-7-new.xml.gz old/rhel-7.xml.gz new/rhel-7.xml.gz
b3e4a8
# appstream-util merge-appstream epel-7-new.xml.gz old/epel-7.xml.gz new/epel-7.xml.gz
72d63f
#
b3e4a8
# ...and then you must manually MERGE the icon tarballs rather than replacing
b3e4a8
# the tarball with the generated copy.
b3e4a8
#
b3e4a8
# You can also verify what was added or removed using:
b3e4a8
# appstream-util compare old/epel-7.xml.gz new/epel-7.xml.gz
72d63f
72d63f
BuildRequires: libappstream-glib
72d63f
72d63f
%description
72d63f
This package provides the distribution specific AppStream metadata required
72d63f
for the GNOME and KDE software centers.
72d63f
72d63f
%install
72d63f
b3e4a8
# we can't use `install-origin` as appstream-glib in RHEL is too old, and the
b3e4a8
# tarball name has to match the origin :/
b3e4a8
cp %{SOURCE1} rhel-%{version}.xml.gz
b3e4a8
cp %{SOURCE2} rhel-%{version}-icons.tar.gz
b3e4a8
cp %{SOURCE9} epel-%{version}.xml.gz
b3e4a8
cp %{SOURCE10} epel-%{version}-icons.tar.gz
b3e4a8
b3e4a8
DESTDIR=%{buildroot} appstream-util install rhel-%{version}.xml.gz rhel-%{version}-icons.tar.gz
b3e4a8
DESTDIR=%{buildroot} appstream-util install epel-%{version}.xml.gz epel-%{version}-icons.tar.gz
72d63f
DESTDIR=%{buildroot} appstream-util install \
b3e4a8
	%{SOURCE3} %{SOURCE4} %{SOURCE5} %{SOURCE6} %{SOURCE7} %{SOURCE8}
72d63f
72d63f
# work around the not-yet-in-rhel install-origin
72d63f
mv %{buildroot}/usr/share/app-info/icons/fonts/64x64/* %{buildroot}/usr/share/app-info/icons/rhel-%{version}/64x64/
72d63f
rmdir %{buildroot}/usr/share/app-info/icons/fonts/64x64
72d63f
rmdir %{buildroot}/usr/share/app-info/icons/fonts
72d63f
72d63f
%files
72d63f
%attr(0644,root,root) %{_datadir}/app-info/xmls/*
72d63f
%{_datadir}/app-info/icons/rhel-%{version}/*/*.png
72d63f
%{_datadir}/app-info/icons/epel-%{version}/*/*.png
72d63f
%dir %{_datadir}/app-info
72d63f
%dir %{_datadir}/app-info/icons
72d63f
%dir %{_datadir}/app-info/icons/rhel-%{version}/64x64
72d63f
%dir %{_datadir}/app-info/icons/rhel-%{version}/128x128
72d63f
%dir %{_datadir}/app-info/icons/epel-%{version}/64x64
72d63f
%dir %{_datadir}/app-info/icons/epel-%{version}/128x128
72d63f
%dir %{_datadir}/app-info/xmls
72d63f
72d63f
%changelog
b3e4a8
* Wed Mar 01 2017 Richard Hughes <richard@hughsie.com> 7-20170301
b3e4a8
- Rename the generated metadata files to placate RPMDiff.
b3e4a8
- Resolves: RHBZ#1386778
b3e4a8
b3e4a8
* Wed Mar 01 2017 Richard Hughes <richard@hughsie.com> 7-7
b3e4a8
- Regenerate the RHEL metadata using rhel-7.4-candidate
b3e4a8
- Resolves: RHBZ#1386778
b3e4a8
72d63f
* Wed Jul 29 2015 Richard Hughes <richard@hughsie.com> 7-6
72d63f
- Use a Red Hat screenshot mirror location
72d63f
- Resolves: #1237362
72d63f
72d63f
* Thu Jun 18 2015 Richard Hughes <richard@hughsie.com> 7-5
72d63f
- Do not duplicate the RHEL-7 icons in EPEL-7
72d63f
- Resolves: #1184202
72d63f
72d63f
* Thu Jun 18 2015 Richard Hughes <richard@hughsie.com> 7-4
72d63f
- Add the applications from EPEL 7
72d63f
- Resolves: #1184202
72d63f
72d63f
* Wed Jun 17 2015 Richard Hughes <richard@hughsie.com> 7-3
72d63f
- Add the missing GStreamer, fonts and IBus metadata
72d63f
- Resolves: #1184202
72d63f
72d63f
* Tue Jun 16 2015 Richard Hughes <richard@hughsie.com> 7-2
72d63f
- Regenerate the RHEL metadata using rhel-7.2-candidate
72d63f
- Ship HiDPI icons
72d63f
- Resolves: #1184202
72d63f
72d63f
* Thu Oct 29 2014 Richard Hughes <richard@hughsie.com> 7-1
72d63f
- Initial metadata version
72d63f
- Resolves: #1184202