File release-notes-openSUSE.spec of Package release-notes-openSUSE.6756
#
# spec file for package release-notes-openSUSE
#
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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 http://bugs.opensuse.org/
#
Name: release-notes-openSUSE
Version: 42.1.20170515
Release: 0
Summary: Release Notes for openSUSE
License: GFDL-1.3
Group: Documentation/SUSE
Url: https://github.com/openSUSE/release-notes-openSUSE
BuildRequires: daps
BuildRequires: gettext-tools
BuildRequires: recode
BuildRequires: suse-xsl-stylesheets
BuildRequires: update-desktop-files
BuildRequires: w3m
BuildRequires: xml2po
BuildRequires: xmlcharent
BuildRequires: xsltproc
BuildRequires: ipa-pgothic-fonts
BuildRequires: ipa-pmincho-fonts
BuildRequires: wqy-microhei-fonts
BuildRequires: arphic-uming-fonts
Requires: dejavu-fonts
Requires: google-opensans-fonts
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Provides: release-notes = %{version}
Source: %{name}-%{version}.tar.bz2
Source1: %{name}.desktop
%description
This package contains the release notes with the most important changes
for this openSUSE release. In HTML format, they are available in the
help center.
The end of the maintenance period for openSUSE Leap 42.1 is now reached.
%prep
%setup -q
%pre
echo "This announcement marks the end of the maintenance period for openSUSE Leap 42.1.
In order to keep your systems up to date and secure, please migrate your
systems to the current openSUSE version.
For more information on how to upgrade to the current openSUSE version, please read:
http://en.opensuse.org/SDB:Distribution-Upgrade
Please make sure that you applied all maintenance updates provided for openSUSE Leap 42.1 before starting the update.
Thank you for using openSUSE,
your Maintenance and Security Team"
%build
%define SUSE_PROD openSUSE
sed -i 's/@VERSION@/%{version}/' xml/release-notes.ent
make linguas
make all
%install
rnpath=%{buildroot}%{_datadir}/doc/release-notes/%{SUSE_PROD}
%{__install} -m 0644 -D LICENSE ${rnpath}/LICENSE
%{__install} -m 0644 -D "%{_sourcedir}/%{name}.desktop" "%{buildroot}%{_datadir}/susehelp/meta/%{name}.desktop"
for file in build/release-notes.*; do
lang=$(echo "$file" | awk -F '.' '{print $2}')
echo "DocPath[${lang}]={_datadir}/doc/release-notes/%{SUSE_PROD}/RELEASE-NOTES.${lang}.html" > "%{buildroot}%{_datadir}/susehelp/meta/%{name}.desktop"
%{__install} -m 0644 -D "${file}/single-html/release-notes.${lang}/release-notes.${lang}.html" "${rnpath}/RELEASE-NOTES.${lang}.html"
%{__cp} -R "${file}/single-html/release-notes.${lang}/static/" "${rnpath}"
%{__install} -m 0644 -D "${file}/yast-html/release-notes.${lang}.html" "${rnpath}/RELEASE-NOTES.${lang}.rtf"
%{__install} -m 0644 -D "${file}/release-notes.${lang}_color_$lang.pdf" "${rnpath}/RELEASE-NOTES.${lang}.pdf"
%{__install} -m 0644 -D "${file}/release-notes.${lang}.txt" "${rnpath}/RELEASE-NOTES.${lang}.txt"
done
%suse_update_desktop_file %{buildroot}%{_datadir}/susehelp/meta/%{name}.desktop
%files
%defattr(-,root,root)
%doc %{_datadir}/doc/release-notes/
%dir %{_datadir}/susehelp/
%dir %{_datadir}/susehelp/meta/
%{_datadir}/susehelp/meta/%{name}.desktop
%changelog