2006-12-19 00:16:45 +01:00
|
|
|
#
|
2007-07-10 18:43:16 +02:00
|
|
|
# spec file for package hello (Version 2.3)
|
2006-12-19 00:16:45 +01:00
|
|
|
#
|
2009-02-08 00:14:08 +01:00
|
|
|
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2006-12-19 00:16:45 +01:00
|
|
|
#
|
2009-02-08 00:14:08 +01:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2007-07-10 18:43:16 +02:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
2006-12-19 00:16:45 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2008-03-16 19:54:51 +01:00
|
|
|
|
2007-07-10 18:43:16 +02:00
|
|
|
Name: hello
|
|
|
|
License: GPL v3 or later
|
2006-12-19 00:16:45 +01:00
|
|
|
# How to define macros
|
|
|
|
%define hello echo "hello world"
|
2007-07-10 18:43:16 +02:00
|
|
|
Group: Development/Tools/Other
|
|
|
|
Provides: mailreader
|
2008-03-16 19:54:51 +01:00
|
|
|
AutoReqProv: on
|
2007-07-10 18:43:16 +02:00
|
|
|
Summary: A Friendly Greeting Program
|
|
|
|
Version: 2.3
|
2009-02-08 00:14:08 +01:00
|
|
|
Release: 78
|
2007-07-10 18:43:16 +02:00
|
|
|
Source0: ftp://ftp.gnu.org/pub/gnu/hello/hello-%{version}.tar.bz2
|
|
|
|
Patch0: hello-1.3.dif
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
PreReq: %install_info_prereq
|
2006-12-19 00:16:45 +01:00
|
|
|
|
|
|
|
%description
|
2007-07-10 18:43:16 +02:00
|
|
|
The GNU hello program produces a familiar, friendly greeting. It
|
|
|
|
allows nonprogrammers to use a classic computer science tool that would
|
|
|
|
otherwise be unavailable to them. Because it is protected by the GNU
|
|
|
|
General Public License, users are free to share and change it.
|
2006-12-19 00:16:45 +01:00
|
|
|
|
2007-07-10 18:43:16 +02:00
|
|
|
GNU hello supports many native languages.
|
2006-12-19 00:16:45 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
2007-07-10 18:43:16 +02:00
|
|
|
The King <elvis@gnu.org>
|
|
|
|
Charles Hannum <mycroft@gnu.org>
|
|
|
|
David J. MacKenzie <djm@gnu.org>
|
|
|
|
Jan Brittenson <bson@gnu.org>
|
|
|
|
Michael I Bushnell <mib@gnu.org>
|
|
|
|
Mike Haertel <mike@gnu.org>
|
|
|
|
Noah Friedman <friedman@gnu.org>
|
|
|
|
Roland McGrath <roland@gnu.org>
|
2006-12-19 00:16:45 +01:00
|
|
|
|
|
|
|
%prep
|
|
|
|
# Use defined macro
|
|
|
|
%{hello}
|
|
|
|
%setup -q
|
|
|
|
%patch
|
2009-02-08 00:14:08 +01:00
|
|
|
# force rebuild with non-broken makeinfo
|
|
|
|
rm -f doc/*.info
|
2006-12-19 00:16:45 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
export CFLAGS="$RPM_OPT_FLAGS"
|
2009-02-08 00:14:08 +01:00
|
|
|
%configure
|
2006-12-19 00:16:45 +01:00
|
|
|
%if %do_profiling
|
2009-02-08 00:14:08 +01:00
|
|
|
make CFLAGS="$CFLAGS %cflags_profile_generate" LDFLAGS="-fprofile-arcs"
|
2006-12-19 00:16:45 +01:00
|
|
|
make check
|
|
|
|
make clean
|
2009-02-08 00:14:08 +01:00
|
|
|
make CFLAGS="$CFLAGS %cflags_profile_feedback" LDFLAGS="-fprofile-arcs"
|
2006-12-19 00:16:45 +01:00
|
|
|
%else
|
|
|
|
make
|
|
|
|
%endif
|
|
|
|
|
2009-02-08 00:14:08 +01:00
|
|
|
%check
|
|
|
|
make check
|
|
|
|
|
2006-12-19 00:16:45 +01:00
|
|
|
%install
|
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
2008-03-16 19:54:51 +01:00
|
|
|
%find_lang %{name}
|
2006-12-19 00:16:45 +01:00
|
|
|
|
|
|
|
%post
|
|
|
|
%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
2008-03-16 19:54:51 +01:00
|
|
|
%files -f %{name}.lang
|
2006-12-19 00:16:45 +01:00
|
|
|
%defattr(-, root, root)
|
|
|
|
%doc COPYING TODO NEWS README THANKS ABOUT-NLS
|
2008-03-16 19:54:51 +01:00
|
|
|
%{_bindir}/*
|
2006-12-19 00:16:45 +01:00
|
|
|
%{_infodir}/*.gz
|
|
|
|
%{_mandir}/*/*
|
|
|
|
|
2007-07-10 18:43:16 +02:00
|
|
|
%changelog
|
2009-02-08 00:14:08 +01:00
|
|
|
* Sat Feb 07 2009 schwab@suse.de
|
|
|
|
- Rebuild broken info file.
|
2008-03-16 19:54:51 +01:00
|
|
|
* Sun Mar 16 2008 crrodriguez@suse.de
|
|
|
|
- fix file-not-in-lang errors
|
|
|
|
* Mon Jul 09 2007 meissner@suse.de
|
2007-07-10 18:43:16 +02:00
|
|
|
- upgraded to version 2.3
|
|
|
|
- bugfixes, updates to buildsystem
|
|
|
|
- now GPLv3 licensed.
|
2008-03-16 19:54:51 +01:00
|
|
|
* Wed Jan 25 2006 mls@suse.de
|
2006-12-19 00:16:45 +01:00
|
|
|
- converted neededforbuild to BuildRequires
|
2008-03-16 19:54:51 +01:00
|
|
|
* Wed Sep 14 2005 cthiel@suse.de
|
2006-12-19 00:16:45 +01:00
|
|
|
- specfile cleanup
|
2008-03-16 19:54:51 +01:00
|
|
|
* Wed Mar 10 2004 meissner@suse.de
|
2006-12-19 00:16:45 +01:00
|
|
|
- run make check
|
|
|
|
- added feedback based profiling optimization.
|
2008-03-16 19:54:51 +01:00
|
|
|
* Sun Jan 11 2004 adrian@suse.de
|
2006-12-19 00:16:45 +01:00
|
|
|
- build as user
|
2008-03-16 19:54:51 +01:00
|
|
|
* Thu Apr 24 2003 ro@suse.de
|
2006-12-19 00:16:45 +01:00
|
|
|
- fix install_info --delete call and move from preun to postun
|
2008-03-16 19:54:51 +01:00
|
|
|
* Fri Feb 07 2003 ke@suse.de
|
2006-12-19 00:16:45 +01:00
|
|
|
- Use install_info macro [# 23424].
|
2008-03-16 19:54:51 +01:00
|
|
|
* Tue Jun 11 2002 schwab@suse.de
|
2006-12-19 00:16:45 +01:00
|
|
|
- Don't package %%{_infodir}/dir.
|
2008-03-16 19:54:51 +01:00
|
|
|
* Tue Jun 11 2002 ke@suse.de
|
2006-12-19 00:16:45 +01:00
|
|
|
- Update to version 2.1.1; from NEWS:
|
|
|
|
* Automake support.
|
|
|
|
* Experimental NLS ("Native Language Support").
|
|
|
|
* Translations for ca, da, de, el, eo, es, et, fi, fr, gl, he, hr, hu,
|
|
|
|
id, it, ja, ko, lv, nb, nl, nn, pl, pt, pt_BR, ru, sk, sl, sv, tr, and
|
|
|
|
uk.
|
|
|
|
* Test suite.
|
|
|
|
* Add a contrib directory.
|
|
|
|
* Manual page, produced with 'help2man'.
|
|
|
|
* Create proper copyright statement for all output formats.
|
|
|
|
* New greeting message ('-n', '--next-generation').
|
|
|
|
* Bugfixes:
|
|
|
|
*. GNU hello ('-m') does not loop forever if MAIL environment variable is
|
|
|
|
not set.
|
|
|
|
- spec file: Use DESTDIR; use predefined RPM macros; add %%clean section.
|
2008-03-16 19:54:51 +01:00
|
|
|
* Sun Feb 20 2000 ke@suse.de
|
2006-12-19 00:16:45 +01:00
|
|
|
- General spec file cleanup:
|
|
|
|
- Add group tag.
|
|
|
|
- ./configure -> %%build.
|
|
|
|
- Use %%{version} and %%{_infodir} macros.
|
|
|
|
- Add `#neededforbuild automake' to use the suse_update_config macro.
|
2008-03-16 19:54:51 +01:00
|
|
|
* Mon Sep 13 1999 bs@suse.de
|
2006-12-19 00:16:45 +01:00
|
|
|
- ran old prepare_spec on spec file to switch to new prepare_spec.
|
2008-03-16 19:54:51 +01:00
|
|
|
* Thu Jul 16 1998 ke@suse.de
|
2006-12-19 00:16:45 +01:00
|
|
|
- Use the BuildRoot feature properly.
|
|
|
|
- Update home site (the Source: tag).
|
2008-03-16 19:54:51 +01:00
|
|
|
* Sun Sep 14 1997 Karl Eichwalder <ke@suse.de>
|
2006-12-19 00:16:45 +01:00
|
|
|
- initial package: version 1.3
|