Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:lkocman
release-notes-openSUSE
release-notes-openSUSE.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File release-notes-openSUSE.spec of Package release-notes-openSUSE
# # spec file for package release-notes-openSUSE # # Copyright (c) 2022 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/ # %define srcname release-notes-openSUSE %bcond_with betatest Name: release-notes-openSUSE Version: 15.6.20240123.1b6f9fd Release: 0 Summary: Release Notes for openSUSE License: GFDL-1.3-only Group: Documentation/SUSE URL: https://github.com/openSUSE/release-notes-openSUSE Source: %{srcname}-%{version}.tar.bz2 BuildRequires: daps BuildRequires: gettext-tools BuildRequires: itstool BuildRequires: suse-xsl-stylesheets BuildRequires: w3m BuildRequires: xmlcharent BuildRequires: xmlformat BuildRequires: xsltproc Provides: release-notes = %{version} BuildArch: noarch %description This package contains the release notes with the most important changes for this openSUSE Leap release. %prep %setup -q -n %{srcname}-%{version} %build %define SUSE_PROD openSUSE # values for lifecycle: beta pre maintained unmaintained %define lifecycle beta %if %{with betatest} %define lifecycle beta %endif # fake the date, for OBS's sake. builddate=$(date +%{Y}-%0m-%0d --date='today') if [ $(echo '%{version}' | cut -d. -f3) ]; then builddate=$(echo '%{version}' | cut -d. -f3 | sed -r 's/([0-9]{4})([0-9]{2})([0-9]{2})/\1-\2-\3/') fi %make_build linguas %make_build all LIFECYCLE=%{lifecycle} VERSION='%{version}' DATE="$builddate" %install rnpath=%{buildroot}%{_datadir}/doc/release-notes/%{SUSE_PROD} install -m 0644 -D LICENSE ${rnpath}/LICENSE for file in build/release-notes.*; do lang=$(echo "$file" | awk -F '.' '{print $2}') 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 %files %doc %{_datadir}/doc/release-notes/ %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor