Package init

This commit is contained in:
dogsheng 2019-11-19 11:10:16 +08:00
commit 765f8d0053
2 changed files with 62 additions and 0 deletions

BIN
obs-env-1.0.tar.bz2 Normal file

Binary file not shown.

62
obs-env.spec Normal file
View File

@ -0,0 +1,62 @@
%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