2006-12-19 00:16:45 +01:00
|
|
|
#
|
2012-04-22 12:54:23 +02:00
|
|
|
# spec file for package hello
|
2006-12-19 00:16:45 +01:00
|
|
|
#
|
2014-11-16 08:58:38 +01:00
|
|
|
# Copyright (c) 2014 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
|
|
|
#
|
|
|
|
|
|
|
|
|
2007-07-10 18:43:16 +02:00
|
|
|
Name: hello
|
2006-12-19 00:16:45 +01:00
|
|
|
# How to define macros
|
|
|
|
%define hello echo "hello world"
|
2012-04-22 12:54:23 +02:00
|
|
|
Provides: mailreader
|
2007-07-10 18:43:16 +02:00
|
|
|
Summary: A Friendly Greeting Program
|
2012-04-22 12:54:23 +02:00
|
|
|
License: GPL-3.0+
|
|
|
|
Group: Development/Tools/Other
|
2014-01-07 16:13:46 +01:00
|
|
|
Version: 2.9
|
2012-04-22 12:54:23 +02:00
|
|
|
Release: 0
|
|
|
|
Url: http://www.gnu.org/software/hello
|
|
|
|
Source0: ftp://ftp.gnu.org/pub/gnu/hello/hello-%{version}.tar.gz
|
2013-02-19 15:25:03 +01:00
|
|
|
Source1: ftp://ftp.gnu.org/pub/gnu/hello/hello-%{version}.tar.gz.sig
|
|
|
|
Source2: %{name}.keyring
|
2007-07-10 18:43:16 +02:00
|
|
|
Patch0: hello-1.3.dif
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2012-07-26 14:58:44 +02:00
|
|
|
BuildRequires: makeinfo
|
2007-07-10 18:43:16 +02:00
|
|
|
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
|
2009-08-26 17:39:47 +02:00
|
|
|
%patch0
|
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
|
2012-04-22 12:54:23 +02:00
|
|
|
export CFLAGS="%{optflags}"
|
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
|
2012-04-22 12:54:23 +02:00
|
|
|
%make_install
|
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
|
|
|
|
|
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
|