Package init
This commit is contained in:
commit
765f8d0053
BIN
obs-env-1.0.tar.bz2
Normal file
BIN
obs-env-1.0.tar.bz2
Normal file
Binary file not shown.
62
obs-env.spec
Normal file
62
obs-env.spec
Normal 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
|
||||
Loading…
x
Reference in New Issue
Block a user