100 lines
2.6 KiB
RPMSpec
100 lines
2.6 KiB
RPMSpec
#
|
|
# spec file for package hello (Version 2.3)
|
|
#
|
|
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
#
|
|
# 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.
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
|
|
Name: hello
|
|
License: GPL-3.0+
|
|
# How to define macros
|
|
%define hello echo "hello world"
|
|
Group: Development/Tools/Other
|
|
Provides: mailreader
|
|
AutoReqProv: on
|
|
Summary: A Friendly Greeting Program
|
|
Version: 2.3
|
|
Release: 79
|
|
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
|
|
|
|
%description
|
|
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.
|
|
|
|
GNU hello supports many native languages.
|
|
|
|
|
|
|
|
Authors:
|
|
--------
|
|
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>
|
|
|
|
%prep
|
|
# Use defined macro
|
|
%{hello}
|
|
%setup -q
|
|
%patch0
|
|
# force rebuild with non-broken makeinfo
|
|
rm -f doc/*.info
|
|
|
|
%build
|
|
export CFLAGS="$RPM_OPT_FLAGS"
|
|
%configure
|
|
%if %do_profiling
|
|
make CFLAGS="$CFLAGS %cflags_profile_generate" LDFLAGS="-fprofile-arcs"
|
|
make check
|
|
make clean
|
|
make CFLAGS="$CFLAGS %cflags_profile_feedback" LDFLAGS="-fprofile-arcs"
|
|
%else
|
|
make
|
|
%endif
|
|
|
|
%check
|
|
make check
|
|
|
|
%install
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
|
%find_lang %{name}
|
|
|
|
%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
|
|
|
|
%files -f %{name}.lang
|
|
%defattr(-, root, root)
|
|
%doc COPYING TODO NEWS README THANKS ABOUT-NLS
|
|
%{_bindir}/*
|
|
%{_infodir}/*.gz
|
|
%{_mandir}/*/*
|
|
|
|
%changelog
|