File release-notes-susemanager-proxy.spec of Package release-notes-susemanager-proxy.15918
#
# spec file for package release-notes-susemanager-proxy
#
# Copyright (c) 2020 SUSE LLC.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Url: https://www.suse.com/products/suse-manager
Name: release-notes-susemanager-proxy
Summary: Release Notes for SUSE Manager Proxy
License: CC-BY-ND-4.0
Group: Documentation/SUSE
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Provides: release-notes() = SUSE-Manager-Proxy
Supplements: SUSE-Manager-Proxy-release
Version: 4.0.8
Release: 0.<RELEASE14>
Source: %{name}.tar.bz2
BuildRequires: w3m
%description
This package contains files with the most important changes for this
SUSE Manager Proxy release. They can be found in the
/usr/share/doc/release-notes directory.
%prep
%setup -n %{name}
%build
w3m -dump doc/release-notes-susemanager-proxy.html > RELEASE-NOTES.en.txt
%install
rnpath="${RPM_BUILD_ROOT}"/usr/share/doc/release-notes/SUSE_Manager_Proxy
mkdir -p "$rnpath"
# rtf used by yast GUI
cp doc/release-notes-susemanager-proxy.html "$rnpath"/RELEASE-NOTES.en.rtf
# txt used by yast ncurses
cp RELEASE-NOTES.en.txt "$rnpath"/RELEASE-NOTES.en.txt
# html used by SUSE Manager
cp doc/release-notes-susemanager-proxy.html "$rnpath"/RELEASE-NOTES.en.html
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr (-,root,root,-)
%doc /usr/share/doc/release-notes
%changelog