File fortune.spec of Package fortune

#
# spec file for package fortune (Version 1.0)
#
# 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.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild

Name:           fortune
License:        BSD
Group:          Amusements/Toys/Other
Autoreqprov:    on
Version:        1.0
Release:        872
Summary:        Random Saying
Source:         ftp://ftp.jurix.org/pub/jurix/source/games/fortune.tar.bz2
Patch:          fortune.dif
Patch1:         fortune-ia64.patch
Patch2:         %{name}-%{version}-filepermissions.patch
Patch3:         fortune-decl.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Fortune displays a random text string from a set of files in a certain
format.

This occurs each time you start a login shell. To get this feature just
uncomment the respective lines in the user's .profile.



Authors:
--------
    Ken Arnold

%prep
%setup -n fortune
%patch
%patch1
%patch2
%patch3

%build
make all

%install
mkdir -p "$RPM_BUILD_ROOT"/usr/bin "$RPM_BUILD_ROOT"/usr/sbin
mkdir -p "$RPM_BUILD_ROOT"%{_mandir}/man8
make prefix="$RPM_BUILD_ROOT" install

%clean
rm -rf "$RPM_BUILD_ROOT"

%files
%defattr(-,root,root)
%doc README Notes
%doc %{_mandir}/man6/fortune.6.gz
%doc %{_mandir}/man8/strfile.8.gz
/usr/bin/fortune
/usr/sbin/strfile
/usr/sbin/unstr
/usr/share/fortune

%changelog -n fortune
* Mon May 22 2006 - schwab@suse.de
- Use RPM_OPT_FLAGS.
- Don't strip binaries.
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Fri May 07 2004 - hmacht@suse.de
- building as non-root user
- added patch to correct filepermissions
* Tue Sep 17 2002 - ro@suse.de
- removed bogus self-provides
* Mon Jul 15 2002 - nadvornik@suse.cz
- removed one more Hitler quote [bug #12028]
* Tue Nov 13 2001 - nadvornik@suse.cz
- removed Hitler quotes completely [bug #12028]
* Wed May 16 2001 - nadvornik@suse.cz
- fixed cast warnings and include files for ia64
* Tue May 08 2001 - mfabian@suse.de
- bzip2 sources
* Wed Jan 31 2001 - uli@suse.de
- moved Hitler quotes to offensive
* Sat Dec 09 2000 - nashif@suse.de
- sorted
* Wed Mar 22 2000 - nadvornik@suse.cz
- added BuildRoot
* Sat Feb 12 2000 - grimmer@suse.de
- moved man pages to /usr/share/man
- added Group tag to spec file
* Thu Oct 28 1999 - grimmer@suse.de
- added linuxcookies
* Mon Sep 13 1999 - bs@suse.de
- ran old prepare_spec on spec file to switch to new prepare_spec.
* Tue Jun 29 1999 - grimmer@suse.de
- reformatted osfortune and corrected some typos
* Tue Jun 15 1999 - grimmer@suse.de
- now create osfortune.dat using strfile as well
* Thu Feb 25 1999 - grimmer@suse.de
- added osfortune (quotes from the book "Open Sources")
- specfile tuning
- removed Makefile.Linux
* Fri Dec 04 1998 - grimmer@suse.de
- Added strfile and unstr to package
- Installed Docu
- Minor changes to specfile
* Fri Oct 02 1998 - ro@suse.de
- no rx.h for glibc