Blob Blame Raw
Summary: Reminder utility
Name:    calendar
Version: 1.25
Release: 5%{?dist}
License: BSD
Group:   Applications/Productivity

# The source archive is generated with the
# script.  Update the script's TAG variable when a new version of
# OpenBSD is released.  The version number we use for the calendar
# program is the CVS revision ID of the calendar.c file.  This is
# determined by the script so it can make the source archive.
Source0: %{name}-%{version}.tar.gz
Source1: Makefile.linux

Patch0:  %{name}-1.25-linux.patch
Patch1:  %{name}-1.25-coding.patch

BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

The OpenBSD calendar command is a reminder utility.  Calendar reads
a mix of configuration files and standard calendar databases and
then displays lines that begin with either today's date or
tomorrow's.  The output of the command shows upcoming events for the

%setup -q
%patch0 -p1
%patch1 -p1
%{__cp} %{SOURCE1} Makefile

for c in calendars/*.*/* ; do
    fromcode="$(%{__grep} '^LANG=' "$c" | %{__sed} 's/^LANG=\(.*\)\.\(.*\)\(@.*\)\{0,1\}/\2/')"
    if [ ! -z "$fromcode" ]; then
        iconv -f "$fromcode" -t "UTF-8" "$c" > "$c.conv"
        %{__mv} "$c.conv" "$c"

%{__make} %{?_smp_mflags}

%{__rm} -rf %{buildroot}
%{__make} install DESTDIR=%{buildroot}

%{__rm} -rf %{buildroot}

%attr(755,root,root) %{_bindir}/calendar

* Tue Mar 03 2009 David Cantrell <> - 1.25-5
- Convert output to locale's character coding

* Mon Feb 23 2009 Fedora Release Engineering <> - 1.25-4
- Rebuilt for

* Tue Feb 17 2009 David Cantrell <> - 1.25-3
- Use cvs status to get the revision number of calendar.c

* Tue Feb 17 2009 David Cantrell <> - 1.25-2
- Fixed problems in
- Set permissions on to 0644

* Thu Feb 12 2009 David Cantrell <> - 1.25-1
- Packaged OpenBSD's calendar(1) command from OpenBSD 4.4