Blame SPECS/appstream-data.spec

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