Blame SPECS/appstream-data.spec

9a4590
%define gitdate 20180614
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:
9a4590
# sshfs user@host:/media/bulk/mirror/RHEL mnt
9a4590
# reposync --repo rhel-7.6 -p mnt/rhel-7.6-candidate/
9a4590
# https://github.com/hughsie/appstream-scripts/blob/master/rhel/rhel-7.6-candidate.sh
9a4590
#
9a4590
# [rhel-7.6]
9a4590
# name=Nightly Packages for Enterprise Linux 7 - $basearch
9a4590
# baseurl=http://download.eng.brq.redhat.com/composes/nightly/latest-RHEL-7.6/compose/Client/x86_64/os/
9a4590
# enabled=0
9a4590
# gpgcheck=0
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
9a4590
DESTDIR=%{buildroot} appstream-util install-origin rhel-7 %{SOURCE1} %{SOURCE2}
9a4590
DESTDIR=%{buildroot} appstream-util install-origin epel-7 %{SOURCE9} %{SOURCE10}
72d63f
DESTDIR=%{buildroot} appstream-util install \
b3e4a8
	%{SOURCE3} %{SOURCE4} %{SOURCE5} %{SOURCE6} %{SOURCE7} %{SOURCE8}
72d63f
9a4590
# work around the font origin issue
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
9a4590
* Thu Jun 14 2018 Richard Hughes <richard@hughsie.com> 7-20180614
9a4590
- Regenerate the RHEL metadata using rhel-7.6-candidate
9a4590
- Resolves: RHBZ#1570031
9a4590
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