File fortune.spec of Package fortune
#
# spec file for package fortune
#
# Copyright (c) 2018 SUSE LINUX 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
Version: 1.99.1
Release: 0
Summary: Random Saying
# let's treat debian as upstream, they take a lot of care
License: BSD-3-Clause
Group: Amusements/Toys/Other
Source: http://ftp.de.debian.org/debian/pool/main/f/fortune-mod/fortune-mod_%{version}.orig.tar.gz
Patch0: http://ftp.de.debian.org/debian/pool/main/f/fortune-mod/fortune-mod_1.99.1-4.diff.gz
# suse specifics
Patch1: move-debian-suse.diff
Patch2: fortune-no-recode.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 %name-mod-%version
%patch0 -p1
%patch1 -p1
%patch2 -p1
%build
make all %{?_smp_mflags} CC="%__cc"
%install
make prefix="$RPM_BUILD_ROOT" install
sed -i 's!%{buildroot}!!' %{buildroot}/usr/share/man/man6/fortune.6
%files
%defattr(-,root,root)
%doc README Notes
%{_mandir}/man1/*
%{_mandir}/man6/*
%{_bindir}/*
/usr/share/fortune
%changelog