File fortune.spec of Package fortune

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


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

Name:           fortune
License:        BSD3c(or similar)
Group:          Amusements/Toys/Other
Version:        1.0
Release:        996
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.

%prep
%setup -n fortune
%patch
%patch1
%patch2
%patch3
%patch4 -p1
%patch5 -p1

%build
make all %{?_smp_mflags} CC="%__cc"

%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

%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
openSUSE Build Service is sponsored by