File maws-hello.spec of Package maws-hello
#
# spec file for package maws-hello (Version 2.1.1)
#
# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
# this change is not great
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
# If you're editing the 'mini' version of this .spec, stop. Edit the base
# version and run smallify.py to create the 'mini' version.
%define MINI 0
%define _name maws-hello
BuildRequires: gcc
%if %MINI == 1
BuildRequires: glib2-devel
%endif
Name: maws-hello
# many tacos.
URL: http://w3.suse.de/~maw/
License: GNU General Public License (GPL)
# How to define macros
%define greetings echo "greetings"
%define hello echo "hello world and nothing else"
Group: SuSE internal
Provides: mailreader
Autoreqprov: on
Summary: A friendly greeting program
Version: 2.1.2
Release: 29
Source0: http://w3.suse.de/~maw/maws-hello-%{version}.tar.gz
Source1: hello.h
Source999: smallify.py
Patch0: todo.patch
# This fixes all sorts of things!
Patch1: buglist.patch
# PATCH-FIX-OPENSUSE fix-maws-hello-bnc123.patch bnc123
Patch2: maws-hello-bnc123.patch
# PATCH-FEATURE-GNOME i-am-the-king-of-the-world.patch bgo54321
Patch3: i-am-the-lord-of-the-universe.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
PreReq: %install_info_prereq
# Requires: glib2 mozilla-nss python
%description
The GNU `hello' program produces a familiar, friendly greeting. It
allows nonprogrammers to use a classic computer science tool which
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 a lot native languages.
Authors:
--------
The King, et al.
#`
%package devel
Requires: %{name} = %{version}
Summary: blah blah blah
Group: Development/Libraries/C and C++
Autoreqprov: on
%description devel
blah blah blah blah
%debug_package
%prep
# Use defined macro
%{hello}
%setup -q -n %{_name}-%{version}
%patch0 -p1
%patch1 -p1
### %patch1 -p1
%build
# Update config.{guess,sub}
%{?suse_update_config}
%if %MINI == 1
export CFLAGS="-Os"
%else
export CFLAGS="$RPM_OPT_FLAGS"
%endif
%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"
# make check
# %else
%__make %{?jobs:-j%jobs}
%__make check
# %endif
%install
%makeinstall
mkdir -p $RPM_BUILD_ROOT/%{_prefix}/include
# If mini is set here you could also do things like deleting manpages and
# whatnot, being sure to also exclude them in %files.
%if %MINI == 0
cp %{S:1} $RPM_BUILD_ROOT/%{_prefix}/include/hello.h
%endif
%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
%defattr(-, root, root)
%doc COPYING TODO NEWS README THANKS ABOUT-NLS
%{_prefix}/bin/*
%{_infodir}/*.gz
%{_mandir}/*/*
%{_prefix}/share/locale/*/*/*
%files devel
%if %MINI == 0
%{_prefix}/include/hello.h
%endif
%changelog -n maws-hello
* Thu Mar 16 2006 - maw@suse.de
- Fixed up the spec and renamed the source tarball so that it
builds properly.
* Thu Mar 16 2006 - maw@suse.de
- Copied to maws-hello so I can experiment without breaking
anything.
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Wed Sep 14 2005 - cthiel@suse.de
- specfile cleanup
* Wed Mar 10 2004 - meissner@suse.de
- run make check
- added feedback based profiling optimization.
* Sun Jan 11 2004 - adrian@suse.de
- build as user
* Thu Apr 24 2003 - ro@suse.de
- fix install_info --delete call and move from preun to postun
* Fri Feb 07 2003 - ke@suse.de
- Use install_info macro [# 23424].
* Tue Jun 11 2002 - schwab@suse.de
- Don't package %%{_infodir}/dir.
* Tue Jun 11 2002 - ke@suse.de
- 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.
* Sun Feb 20 2000 - ke@suse.de
- General spec file cleanup:
- Add group tag.
- ./configure -> %%build.
- Use %%{version} and %%{_infodir} macros.
- Add `#neededforbuild automake' to use the suse_update_config macro.
* Mon Sep 13 1999 - bs@suse.de
- ran old prepare_spec on spec file to switch to new prepare_spec.
* Thu Jul 16 1998 - ke@suse.de
- Use the BuildRoot feature properly.
- Update home site (the Source: tag).
* Sun Sep 14 1997 - Karl Eichwalder <ke@suse.de>
- initial package: version 1.3