Blame SPECS/subscription-manager-cockpit.spec

87d8c6
Name: subscription-manager-cockpit
87d8c6
Version: 4
87d8c6
Release: 1%{?dist}
87d8c6
Summary: Subscription Manager Cockpit UI
87d8c6
%if 0%{?suse_version}
87d8c6
Group: System Environment/Base
87d8c6
%endif
87d8c6
License: LGPLv2
87d8c6
URL: https://www.candlepinproject.org/
87d8c6
87d8c6
Source0: %{name}-%{version}.tar.xz
87d8c6
Source1: %{name}-node-%{version}.tar.xz
87d8c6
BuildArch: noarch
87d8c6
ExclusiveArch: %{nodejs_arches} noarch
87d8c6
%if 0%{?fedora}
87d8c6
BuildRequires: nodejs-devel
87d8c6
%endif
87d8c6
BuildRequires: nodejs
87d8c6
BuildRequires: make
87d8c6
BuildRequires: libappstream-glib
87d8c6
BuildRequires: gettext
87d8c6
BuildRequires: desktop-file-utils
87d8c6
%if 0%{?rhel} && 0%{?rhel} <= 8
87d8c6
BuildRequires: libappstream-glib-devel
87d8c6
%endif
87d8c6
87d8c6
Requires: subscription-manager
87d8c6
Requires: cockpit-bridge
87d8c6
Requires: cockpit-shell
87d8c6
Requires: rhsm-icons
87d8c6
%if %{defined rhel} && %{undefined centos}
87d8c6
Suggests: insights-client
87d8c6
%endif
87d8c6
87d8c6
%description
87d8c6
Subscription Manager Cockpit UI
87d8c6
87d8c6
%package -n rhsm-icons
87d8c6
Summary: Icons for Red Hat Subscription Management client tools
87d8c6
87d8c6
# As these two packages previously contained the icons now contained in
87d8c6
# rhsm-icons package, we need to specify the logical complement to a
87d8c6
# "Requires", which is "Conflicts". With any luck the underlying
87d8c6
# depsolver will cause the removal of this package if the request
87d8c6
# is to downgrade either of the following to a version below these
87d8c6
# requirements.
87d8c6
Conflicts: rhsm-gtk < 1.26.7
87d8c6
Conflicts: subscription-manager-cockpit < 1.26.7
87d8c6
87d8c6
%description -n rhsm-icons
87d8c6
This package contains the desktop icons for the graphical interfaces provided for management
87d8c6
of Red Hat subscriptions: subscription-manager-gui, subscription-manager-cockpit-plugin.
87d8c6
87d8c6
%prep
87d8c6
%autosetup -n %{name} -a 1
87d8c6
# ignore pre-built webpack in release tarball and rebuild it
87d8c6
rm -rf dist
87d8c6
87d8c6
%build
87d8c6
ESLINT=0 NODE_ENV=production make
87d8c6
87d8c6
%install
87d8c6
%make_install
87d8c6
87d8c6
# drop source maps, they are large and just for debugging
87d8c6
find %{buildroot}%{_datadir}/cockpit/ -name '*.map' | xargs --no-run-if-empty rm --verbose
87d8c6
87d8c6
%check
87d8c6
appstream-util validate-relax --nonet %{buildroot}/%{_datadir}/metainfo/*
87d8c6
desktop-file-validate %{buildroot}/%{_datadir}/applications/*
87d8c6
87d8c6
# this can't be meaningfully tested during package build
87d8c6
87d8c6
%files
87d8c6
%license LICENSE
87d8c6
%dir %{_datadir}/cockpit/subscription-manager
87d8c6
%{_datadir}/applications/*
87d8c6
%{_datadir}/cockpit/subscription-manager/*
87d8c6
%{_datadir}/metainfo/*
87d8c6
87d8c6
%files -n rhsm-icons
87d8c6
%{_datadir}/icons/hicolor/scalable/apps/*.svg
87d8c6
%{_datadir}/icons/hicolor/symbolic/apps/*.svg
87d8c6
87d8c6
%changelog
87d8c6
* Wed Jul 27 2022 Jiri Hnidek <jhnidek@redhat.com> 4-1
87d8c6
87d8c6
* Tue Jul 26 2022 Jiri Hnidek <jhnidek@redhat.com> 3-1
87d8c6
- Translated using Weblate (Korean) (simmon@nplob.com)
87d8c6
- test: drop unused reference-image file (ptoscano@redhat.com)
87d8c6
- Drop the static npm-shrinkwrap.json (ptoscano@redhat.com)
87d8c6
- Bump cockpit test API to 273 + run-tests scheduler fix (martin@piware.de)
87d8c6
- spec: suggest insights-client on RHEL (ptoscano@redhat.com)
87d8c6
- tito: remove autogenerated spec file before tagging (ptoscano@redhat.com)
87d8c6
87d8c6
* Fri Jun 24 2022 Jiri Hnidek <jhnidek@redhat.com> 2-1
87d8c6
- New package built with tito
87d8c6
- New pattern of versioning. Starting version is 2
87d8c6