63 lines
1.1 KiB
RPMSpec
63 lines
1.1 KiB
RPMSpec
%define _debuginfo_template %{nil}
|
|
%define _debugsource_template %{nil}
|
|
Summary : config enviroment for obs compile
|
|
Name : obs-env
|
|
Version : 1.0
|
|
Release : 3
|
|
License : GPLv2
|
|
Group : System Environment/Shells
|
|
Source0 : %{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:/root/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:/root/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/bin" >> /root/.bashrc
|
|
source /root/.bashrc
|
|
fi
|
|
|
|
%preun
|
|
|
|
%postun
|
|
|
|
%files
|
|
|
|
%changelog
|
|
* 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
|