Projects
Factory:RISC-V:Base
openEuler-release
_service:tar_scm:generic-release.spec
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:tar_scm:generic-release.spec of Package openEuler-release
%define debug_package %{nil} %define product_family %{?_vendor:%{_vendor}}%{!?_vendor:openEuler} %define variant_titlecase Server %define variant_lowercase server %define dist_release_version 8 %define generic_version 22.09 %define generic_patch_level Roll %define generic_release 52 %define builtin_release_version 1.0 %define current_arch %{_arch} %ifarch i386 %define current_arch x86 %endif Name: %{product_family}-release Version: %{generic_version}%{generic_patch_level} Release: %{generic_release} Summary: %{product_family} release file License: Mulan PSL v2 Provides: %{product_family}-release Provides: %{_vendor}-release Provides: generic-release Provides: system-release = %{generic_version}%{generic_patch_level} Source0: generic-release-%{builtin_release_version}.tar.gz Source1: 85-display-manager.preset Source2: 90-default.preset Source3: 99-default-disable.preset BuildRequires: python3 Requires: %{product_family}-repos bc Obsoletes: yum-utils yum-utils-help yum-utils-plugins %description %{product_family} release files %package -n openEuler-performance Requires: coreutils systemd setup Summary:performance script %description -n openEuler-performance performance script %prep %setup -q -n generic-release-%{builtin_release_version} %build echo OK %install rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT/etc echo "%{product_family} release %{generic_version}" > $RPM_BUILD_ROOT/etc/%{product_family}-release ln -sf %{product_family}-release $RPM_BUILD_ROOT/etc/system-release # create /etc/os-release cat << EOF >>$RPM_BUILD_ROOT/etc/os-release NAME="%{product_family}" VERSION="%{generic_version}%{generic_patch_level}" ID="%{product_family}" VERSION_ID="%{generic_version}" PRETTY_NAME="%{product_family} %{generic_version}%{generic_patch_level}" ANSI_COLOR="0;31" EOF mkdir -p -m 755 $RPM_BUILD_ROOT/etc/profile.d cp -a color.sh $RPM_BUILD_ROOT/etc/profile.d/ cp -a system-info.sh $RPM_BUILD_ROOT/etc/profile.d/ cp -a performance.sh $RPM_BUILD_ROOT/etc/profile.d/ # write cpe to /etc/system/release-cpe echo "cpe:/o:%{product_family}:%{product_family}:%{version}:ga:server" > $RPM_BUILD_ROOT/etc/system-release-cpe # create /etc/issue and /etc/issue.net echo '\S' > $RPM_BUILD_ROOT/etc/issue echo 'Kernel \r on an \m' >> $RPM_BUILD_ROOT/etc/issue cp $RPM_BUILD_ROOT/etc/issue $RPM_BUILD_ROOT/etc/issue.net echo >> $RPM_BUILD_ROOT/etc/issue mkdir -p $RPM_BUILD_ROOT/usr/share/eula cp eula.[!py]* $RPM_BUILD_ROOT/usr/share/eula mkdir -p $RPM_BUILD_ROOT/var/lib cp supportinfo $RPM_BUILD_ROOT/var/lib/supportinfo # set up the dist tag macros install -d -m 755 $RPM_BUILD_ROOT/etc/rpm cat >> $RPM_BUILD_ROOT/etc/rpm/macros.dist << EOF # dist macros. %%dist %%{nil} %%%{product_family} 2 EOF # use unbranded datadir mkdir -p -m 755 $RPM_BUILD_ROOT/%{_datadir}/%{product_family}-release install -m 644 EULA $RPM_BUILD_ROOT/%{_datadir}/%{product_family}-release # use unbranded docdir mkdir -p -m 755 $RPM_BUILD_ROOT/%{_docdir}/%{product_family}-release cp -p License/LICENSE $RPM_BUILD_ROOT/%{_docdir}/%{product_family}-release # copy systemd presets mkdir -p %{buildroot}%{_prefix}/lib/systemd/system-preset/ install -m 0644 %{SOURCE1} %{buildroot}%{_prefix}/lib/systemd/system-preset/ install -m 0644 %{SOURCE2} %{buildroot}%{_prefix}/lib/systemd/system-preset/ install -m 0644 %{SOURCE3} %{buildroot}%{_prefix}/lib/systemd/system-preset/ %clean rm -rf $RPM_BUILD_ROOT %files %defattr(0644,root,root,0755) /etc/system-release /etc/profile.d/color.sh /etc/profile.d/system-info.sh /etc/%{product_family}-release %config(noreplace) /etc/os-release %config /etc/system-release-cpe %config(noreplace) /etc/issue %config(noreplace) /etc/issue.net /etc/rpm/macros.dist %{_docdir}/%{product_family}-release/* %{_datadir}/%{product_family}-release/* %{_prefix}/lib/systemd/system-preset/* /var/lib/supportinfo /usr/share/eula/eula.* %files -n openEuler-performance %defattr(0644,root,root,0755) /etc/profile.d/performance.sh %changelog * Wed Oct 19 2022 wangjunqiang <wangjunqiang@iscas.ac.com> - 1.0.52 - modify release for openEuler-22.09-Roll * Tue Jul 19 2022 zhouxiaxiang <zhouxiaxiang2@h-partners.com> - 1.0.51 - modify release for openEuler-22.09 * Fri Jul 15 2022 xiasenlin <xiasenlin1@huawei.com> - 1.0.50 - Update EULA license for donate * Wed Dec 01 2021 yaokai <yaokai13@huawei.com> - 1.0.49 - Fix syntax errors * Mon Nov 29 2021 yaokai <yaokai13@huawei.com> - 1.0.48 - recover the dependency for bc * Mon Nov 22 2021 miao_kaibo <miao_kaibo@outlook.com> - 1.0-47 - delete dependency bc * Thu Aug 26 2021 wangxiaorou <wangxiaorou@uniontech.com> - 1.0-46 - fix system-info.sh syntax error * Thu Apr 1 2021 gaochong <gaochong@uniontech.com> - 1.0-45 - bugfix I468W9 * Thu Apr 1 2021 gaochong <gaochong@uniontech.com> - 1.0-44 - get memeroy info from /proc/meminfo instead of command free, fix issue I3EN1Z * Sat Dec 26 2020 fu_changjie <fuchangjie@kylinos.cn> - 1.0-43 - Change value of product_family to 2, fix issue I3A6CP * Sat Dec 26 2020 fu_changjie <fuchangjie@kylinos.cn> - 1.0-42 - Use generic_version macro instead of constant value, fix issue I28WC0 * Sat Dec 26 2020 Shinwell_Hu <huxinwei@huawei.com> - 1.0-41 - Disable GOMP_CPU_AFFINITY setting in performance.sh to fix issue I1OT20 * Thu Aug 20 2020 co <colo9@outlook.com> - 1.0-40 - fix bad date format in changelog - /sbin/ip not found err fix * Thu Aug 6 2020 zhangrui <zhangrui182@huawei.com> - 1.0-39 - modify system-info.sh to show more ip address when login * Fri Jun 19 2020 shenyangyang <shenyangyang4@huawei.com> - 1.0-38 - change build requires of python to python3 * Mon May 18 2020 shenyangyang <shenyangyang4@huawei.com> - 1.0-37 - add equal sign in color.sh * Fri May 15 2020 shenyangyang <shenyangyang4@huawei.com> - 1.0-36 - Add more default color * Thu May 7 2020 shenyangyang <shenyangyang4@huawei.com> - 1.0-35 - Modify the license info in files * Wed Apr 29 2020 shenyangyang <shenyangyang4@huawei.com> - 1.0-34 - Change license of mulan to v2 * Sat Mar 21 2020 songnannan <songnannan2@huawei.com> - 1.0-33 - add obsoletes the yum utils * Thu Mar 19 2020 openEuler Buildteam <buildteam@openeuler.org> - 1.0-32 - change generic_release_1.0 * Wed Mar 18 2020 openEuler Buildteam <buildteam@openeuler.org> - 1.0-31 - change generic_version * Tue Mar 17 2020 openEuler Buildteam <buildteam@openeuler.org> - 1.0-30 - add color aliases * Tue Mar 17 2020 openEuler Buildteam <buildteam@openeuler.org> - 1.0-29 - fix changelog * Sun Mar 15 2020 openEuler Buildteam <buildteam@openeuler.org> - 1.0-28 - add base * Sat Mar 14 2020 openEuler Buildteam <buildteam@openeuler.org> - 1.0-27 - fix obs build problem * Sat Mar 14 2020 openEuler Buildteam <buildteam@openeuler.org> - 1.0-26 - fix install problem * Fri Mar 13 2020 openEuler Buildteam <buildteam@openeuler.org> - 1.0-25 - add performance script,close transparent_hugepage,change vm.min_free_kbytes=112640,export GOMP_CPU_AFFINITY - close autogroup * Tue Mar 3 2020 openEuler Buildteam <buildteam@openeuler.org> - 1.0-24 - remove unnecessary swap file * Tue Mar 3 2020 openEuler Buildteam <buildteam@openeuler.org> - 1.0-23 - fix welcome information * Tue Jan 7 2020 openEuler Buildteam <buildteam@openeuler.org> - 1.0-22 - fix welcome information * Fri Dec 27 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.0-21 - Delete unneeded info * Mon Dec 23 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.0-20 - Delete unneeded provides * Thu Dec 19 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.0-19 - Delete unneeded message * Tue Oct 15 2019 fanghuiyu <fanghuiyu@huawei.com> - 1.0-18 - Change to generic-release * Fri Sep 20 2019 hexiaowen <hexiaowen@huawei.com> - 1.0-17 - Provides generic-release * Sat Aug 31 2019 hexiaowen <hexiaowen@huawei.com> - 1.0-16 - add eula.US * Mon Aug 26 2019 zhangrui <zhangrui182@huawei.com> - 1.0-15 - Add system-info.sh to /etc/profile.d/ to show some information in welcome screen * Thu Aug 22 2019 hexiaowen <hexiaowen@huawei.com> - 1.0-14 - add License * Thu Aug 8 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.0-13 - Package init
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2