Blame SPECS/appstream-data.spec

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