From 765f8d00530725ebc12667fe9a9b5cb7266c11bd Mon Sep 17 00:00:00 2001 From: dogsheng <960055655@qq.com> Date: Tue, 19 Nov 2019 11:10:16 +0800 Subject: [PATCH] Package init --- obs-env-1.0.tar.bz2 | Bin 0 -> 153 bytes obs-env.spec | 62 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 62 insertions(+) create mode 100644 obs-env-1.0.tar.bz2 create mode 100644 obs-env.spec diff --git a/obs-env-1.0.tar.bz2 b/obs-env-1.0.tar.bz2 new file mode 100644 index 0000000000000000000000000000000000000000..a98194bab9b068e49737d8203bc2601a5db28b5c GIT binary patch literal 153 zcmV;K0A~L}T4*^jL0KkKSwYV&`~U!{|CGpp06;(k|9}7hgaCE}pCAMP06+i;AOMnt zs6f+0KpFw*Gzz3fh|n1ffN7K2p59xm)Ph!mD(6y@nekfWmLUltBz|VSTb0v9UcoUK z<#VD)c4cbTDN!m5Rgo~ov1A_i4Rvf$0SH`05R|zFf*P5TE>QB*My@y_5901frwS4X HIpx2AYxz8z literal 0 HcmV?d00001 diff --git a/obs-env.spec b/obs-env.spec new file mode 100644 index 0000000..5ec073a --- /dev/null +++ b/obs-env.spec @@ -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 - 1.0-3 +- add requires + +* Mon Apr 01 2019 liuxueping - 1.0-2 +- Type:enhancement +- ID:NA +- SUG:NA +- DESC: no buildrequires rpms about tool + +* Fri Jul 10 2015 huawei@huawei.com +- create package