71 lines
1.5 KiB
RPMSpec
71 lines
1.5 KiB
RPMSpec
%define _debuginfo_template %{nil}
|
|
%define _debugsource_template %{nil}
|
|
Summary: config enviroment for obs compile
|
|
Name: obs-env
|
|
Version: 1.0
|
|
Release: 7
|
|
License: GPLv2
|
|
Group: System Environment/Shells
|
|
Source0: https://gitee.com/src-openeuler/obs-env/raw/master/%{name}-%{version}.tar.bz2
|
|
Requires: setup procps-ng
|
|
BuildRequires: setup
|
|
|
|
%description
|
|
config enviroment for obs compile
|
|
|
|
%prep
|
|
%setup -q
|
|
|
|
%build
|
|
|
|
%install
|
|
|
|
%pre
|
|
|
|
%post
|
|
if [ -f /etc/profile ]; then
|
|
echo "export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin" >> /etc/profile
|
|
source /etc/profile
|
|
fi
|
|
|
|
if [ -f /home/abuild/.bashrc ]; then
|
|
echo "export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin" >> /home/abuild/.bashrc
|
|
source /home/abuild/.bashrc
|
|
fi
|
|
|
|
if [ -f /root/.bashrc ]; then
|
|
echo "export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin" >> /root/.bashrc
|
|
source /root/.bashrc
|
|
fi
|
|
|
|
%preun
|
|
|
|
%postun
|
|
|
|
%files
|
|
|
|
%changelog
|
|
* Sat Sep 5 2020 licihua <licihua@huawei.com> - 1.0-7
|
|
- Fix format error
|
|
|
|
* Sat Sep 5 2020 licihua <licihua@huawei.com> - 1.0-6
|
|
- Use macro version\name
|
|
|
|
* Mon Feb 17 2020 openEuler Buildteam <buildteam@openeuler.org> - 1.0-5
|
|
- remove value '/root/bin' in var PATH
|
|
|
|
* Tue Jan 14 2020 gulining<gulining1@huawei.com> - 1.0-4
|
|
- change source url
|
|
|
|
* Wed Nov 6 2019 hexiaowen<hexiaowen@huawei.com> - 1.0-3
|
|
- add requires
|
|
|
|
* Mon Apr 01 2019 liuxueping<liuxueping1@huawei.com> - 1.0-2
|
|
- Type:enhancement
|
|
- ID:NA
|
|
- SUG:NA
|
|
- DESC: no buildrequires rpms about tool
|
|
|
|
* Fri Jul 10 2015 huawei@huawei.com
|
|
- create package
|