File fortune.spec of Package fortune

#
# spec file for package fortune (Version 1.0)
#
# Copyright (c) 2010 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/
#

# norootforbuild

Url:            ftp://sunsite.unc.edu/pub/Linux/games/amusements/fortune/

Name:           fortune
License:        BSD3c(or similar)
Group:          Amusements/Toys/Other
AutoReqProv:    on
Version:        1.0
Release:        1.1
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
Patch4:         fortune-fix-missing-closedir.patch
Patch5:         fortune-fixfree.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
%patch4 -p1
%patch5 -p1

%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
* Wed Jun 30 2010 meissner@suse.de
- fixed use-after-free issue bnc#618641
* Mon Aug 10 2009 puzel@novell.com
- fortune-fix-missing-closedir.patch (bnc#525038)
* 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  7 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  8 2001 mfabian@suse.de
- bzip2 sources
* Wed Jan 31 2001 uli@suse.de
- moved Hitler quotes to offensive
* Sat Dec  9 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  4 1998 grimmer@suse.de
- Added strfile and unstr to package
- Installed Docu
- Minor changes to specfile
* Fri Oct  2 1998 ro@suse.de
- no rx.h for glibc
openSUSE Build Service is sponsored by