diff options
author | Jinkun Jang <jinkun.jang@samsung.com> | 2014-03-06 20:02:49 +0900 |
---|---|---|
committer | Jinkun Jang <jinkun.jang@samsung.com> | 2014-03-06 20:02:49 +0900 |
commit | 86271fb40774df6d3941ab951779abc0446c0fb3 (patch) | |
tree | 2fe65694e43425d315f5941d45d603d6bdaf470d | |
parent | b3ed51e41a1d45ef450784b4dd9d784820d2697f (diff) | |
download | test-86271fb40774df6d3941ab951779abc0446c0fb3.tar.gz test-86271fb40774df6d3941ab951779abc0446c0fb3.tar.bz2 test-86271fb40774df6d3941ab951779abc0446c0fb3.zip |
add hello world program for build test
-rw-r--r-- | packaging/test.spec | 63 |
1 files changed, 45 insertions, 18 deletions
diff --git a/packaging/test.spec b/packaging/test.spec index 0c534e8f..8f5d9cba 100644 --- a/packaging/test.spec +++ b/packaging/test.spec @@ -1,20 +1,47 @@ -Summary: Test package -Name: test -Version: 0.1 -Release: 1 -Source0: test-0.1.tar.gz -Source1001: packaging/test.manifest -License: MIT -Packager: tester -Group: Application - -%description - Just a test package. Test line - Test line2 - +Name: hello +Version: 2.8 +Release: 1%{?dist} +Summary: The "Hello World" program from GNU + +License: GPLv3+ +URL: http://ftp.gnu.org/gnu/%{name} +Source0: http://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.gz + +BuildRequires: gettext + +Requires(post): info +Requires(preun): info + +%description +The "Hello World" program, done with all bells and whistles of a proper FOSS +project, including configuration, build, internationalization, help files, etc. + +%prep +%setup -q + %build -cp %{SOURCE1001} . - +%configure +make %{?_smp_mflags} + %install - -%files +%make_install +%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 COPYING NEWS README THANKS TODO +%{_mandir}/man1/hello.1.gz +%{_infodir}/%{name}.info.gz +%{_bindir}/hello + +%changelog +* Tue Sep 06 2011 The Coon of Ty <Ty@coon.org> 2.8-1 +- Initial version of the package |