Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
Education
release-notes-edu
release-notes-edu.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File release-notes-edu.spec of Package release-notes-edu
# # spec file for package release-notes-edu # # 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-edu Version: %suse_version Release: 1 License: GFDL-1.1 Summary: Most important changes for this openSUSE Education release Url: http://www.opensuse-education.org/ Group: Documentation/SUSE Source0: %{name}.tar.bz2 Source8: %{name}.desktop.in BuildRequires: docbook-xsl-stylesheets BuildRequires: gnome-doc-utils BuildRequires: html-dtd BuildRequires: iso_ent BuildRequires: libxslt BuildRequires: openjade BuildRequires: update-desktop-files %if 0%{?suse_version} > 1110 BuildRequires: xml2po %endif BuildRequires: xmlcharent %define distribution_release RC1 BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch Vendor: openSUSE-Education %description This package contains the description of the most important changes for this openSUSE Education release. In HTML format, they are available in the help center. %prep %setup -q -n %{name} %build %define SUSE_PROD openSUSE-Education # Note: VERSION will also be used for "download-version" # in the URL - so for SLE this is # SLE10, not 10.1 OBSVERSION=%suse_version if [[ %distribution_release != RC* ]]; then RELEASE="1.0-%distribution_release" else RELEASE="1.0" fi case $OBSVERSION in 1010) SUSE_VERSION="SUSE Linux Enterprise 10" VERSION="SLE10" ;; *) SUSE_VERSION=$(echo $OBSVERSION | sed -e "s|^\([0-9][0-9]\)\([0-9]\)\([0-9]\)|\1.\2|g") VERSION=$SUSE_VERSION ;; esac YEAR=$(date "+%Y") for f in RELEASE-NOTES* ; do sed -e "s/@SUSE_VERSION@/$SUSE_VERSION/g" \ -e "s/@REAL_VERSION@/$SUSE_VERSION/g" \ -e "s/@EDU_RELEASE@/$RELEASE/g" \ -e "s/@YEAR@/$YEAR/g" \ -e "s/@VERSION@/$VERSION/g" $f > $f.new mv $f.new $f done ./configure --prefix=/usr %if %sles_version > 9 make arch=%_arch prod=sles SUSE_PROD=%SUSE_PROD %else make arch=%_arch prod=slprof SUSE_PROD=%SUSE_PROD %endif %install make DESTDIR=%{buildroot} SUSE_PROD=%SUSE_PROD install rnpath=%{buildroot}%{_datadir}/doc/release-notes/%SUSE_PROD [ -f $rnpath/RELEASE-NOTES.cs.html ] && { [ -f $rnpath/RELEASE-NOTES.sk.html ] || { ln -s RELEASE-NOTES.cs.html $rnpath/RELEASE-NOTES.sk.html ln -s RELEASE-NOTES.cs.rtf $rnpath/RELEASE-NOTES.sk.rtf } } mkdir -p %{buildroot}%{_datadir}/susehelp/meta sed 's/@SUSE_PROD@/%{SUSE_PROD}/' $RPM_SOURCE_DIR/%{name}.desktop.in \ > %{buildroot}%{_datadir}/susehelp/meta/%{name}.desktop { for f in %{buildroot}%{_datadir}/doc/release-notes/%SUSE_PROD/RELEASE-NOTES.*.html ; do l=${f%\.html} l=${l##*\.} echo "DocPath[$l]=/usr/share/doc/release-notes/%{SUSE_PROD}/RELEASE-NOTES.$l.html" done } >>%{buildroot}%{_datadir}/susehelp/meta/%{name}.desktop %suse_update_desktop_file %{buildroot}%{_datadir}/susehelp/meta/%{name}.desktop %clean rm -rf %{buildroot} %files %defattr(-,root,root) %doc fdl.txt %dir %{_datadir}/susehelp %dir %{_datadir}/susehelp/meta %dir %{_datadir}/doc/release-notes %{_datadir}/susehelp/meta/%{name}.desktop %doc %{_datadir}/doc/release-notes/openSUSE-Education %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