File gcal.spec of Package gcal

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


Name:           gcal
Version:        4
Release:        0
Summary:        A Program for Printing Calendars
License:        GPL-3.0+
Group:          Productivity/Office/Organizers
Url:            http://www.gnu.org/software/gcal/
Source0:        ftp://ftp.gnu.org/gnu/gcal/gcal-%{version}.tar.xz
Source1:        ftp://ftp.gnu.org/gnu/gcal/gcal-%{version}.tar.xz.sig
Source2:        %{name}.keyring
Patch0:         gcal-3.01-longerstrings.patch
Patch1:         gcal-3.6-cleanup.patch
BuildRequires:  ncurses-devel
BuildRequires:  xz
Requires(post): %{install_info_prereq}
Requires(preun): %{install_info_prereq}

%description
Gcal is a program for printing calendars.  Gcal displays a calendar for
a month or a year, eternal holiday lists, and fixed date lists.  The
program correctly omits the dates that were skipped when the current
Gregorian calendar replaced the earlier Julian calendar.

%lang_package

%prep
%setup -q
%patch0
%patch1

%build
%configure
make %{?_smp_mflags} "CFLAGS=%{optflags}"

%install
make DESTDIR=%{buildroot} install %{?_smp_mflags}
%find_lang %{name}

%post
%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz

%preun
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz

%files
%defattr(-,root,root)
%doc BUGS LIMITATIONS README TODO AUTHORS COPYING NEWS THANKS
%doc data/gcalrc doc/GREG-REFORM
%{_datadir}/gcal
%{_bindir}/gcal
%{_bindir}/gcal2txt
%{_bindir}/tcal
%{_bindir}/txt2gcal
%{_infodir}/gcal.info.gz

%files lang -f %{name}.lang
%defattr(-,root,root)

%changelog
openSUSE Build Service is sponsored by