David Cantrell 3a67d1b
%define alphatag 20211220cvs
84bc925
1705741
Summary: Reminder utility
1705741
Name:    calendar
83f591b
Version: 1.37
1b0701f
Release: 7.%{alphatag}%{?dist}
1705741
License: BSD
1705741
URL:     http://www.openbsd.org/cgi-bin/cvsweb/src/usr.bin/calendar
1705741
1705741
# The source archive is generated with the export-calendar-source.sh
1705741
# script.  Update the script's TAG variable when a new version of
1705741
# OpenBSD is released.  The version number we use for the calendar
1705741
# program is the CVS revision ID of the calendar.c file.  This is
1705741
# determined by the script so it can make the source archive.
84bc925
Source0: %{name}-%{version}-%{alphatag}.tar.gz
1705741
Source1: Makefile.linux
1705741
Source2: export-calendar-source.sh
1705741
c3a7185
Patch0:  %{name}-1.37-linux.patch
1705741
David Cantrell 39f36ed
BuildRequires: gcc
0877276
BuildRequires: make
fef6a52
Requires: cpp
fef6a52
1705741
%description
1705741
The OpenBSD calendar command is a reminder utility.  Calendar reads
1705741
a mix of configuration files and standard calendar databases and
1705741
then displays lines that begin with either today's date or
1705741
tomorrow's.  The output of the command shows upcoming events for the
1705741
week.
1705741
1705741
%prep
84bc925
%setup -q -n %{name}-%{version}-%{alphatag}
b8f5033
%patch0 -p1 -b .orig
a55ee6b
cp %{SOURCE1} Makefile
1705741
b11318f
for c in calendars/*.*/* ; do
a55ee6b
    fromcode="$(grep '^LANG=' "$c" | sed 's/^LANG=\(.*\)\.\(.*\)\(@.*\)\{0,1\}/\2/')"
b11318f
    if [ ! -z "$fromcode" ]; then
b11318f
        iconv -f "$fromcode" -t "UTF-8" "$c" > "$c.conv"
a55ee6b
        mv "$c.conv" "$c"
b11318f
    fi
b11318f
done
b11318f
1705741
%build
a55ee6b
make %{?_smp_mflags}
1705741
1705741
%install
a55ee6b
make install DESTDIR=%{buildroot}
1705741
1705741
%files
1705741
%attr(755,root,root) %{_bindir}/calendar
1705741
%{_mandir}/man1/calendar.1.gz
1705741
%{_datadir}/calendar
1705741
1705741
%changelog
1b0701f
* Wed Jul 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.37-7.20211220cvs
1b0701f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
1b0701f
c6c2691
* Wed Jan 19 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.37-6.20211220cvs
c6c2691
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
c6c2691
David Cantrell 3a67d1b
* Mon Dec 20 2021 David Cantrell <dcantrell@redhat.com> - 1.37-20211220cvs
David Cantrell 3a67d1b
- Upgrade to calendar(1) from OpenBSD 7.0
David Cantrell 3a67d1b
59ba3ba
* Wed Jul 21 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.37-4.20200430cvs
59ba3ba
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
59ba3ba
e0ffa3a
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.37-3.20200430cvs
e0ffa3a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
e0ffa3a
d7023a6
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.37-2.20200430cvs
d7023a6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
d7023a6
fa93c9a
* Thu Apr 30 2020 David Cantrell <dcantrell@redhat.com> - 1.37-1.20200430cvs
fa93c9a
- Upgrade to calendar(1) from OpenBSD 6.6
fa93c9a
- Include missing calendar data files (#1809218)
fa93c9a
008d389
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.37-2.20190827cvs
008d389
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
008d389
83f591b
* Tue Aug 27 2019 David Cantrell <dcantrell@redhat.com> - 1.37-1.20190827cvs
83f591b
- Upgrade to calendar(1) from OpenBSD 6.5
83f591b
- Correct translation filenames in Makefile.linux
83f591b
a8bb517
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.35-4.20190227cvs
a8bb517
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
a8bb517
495132b
* Thu Mar 07 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.35-2.20190227cvs
495132b
- Fix downgradepath
495132b
David Cantrell b7dc1aa
* Wed Feb 27 2019 David Cantrell <dcantrell@redhat.com> - 1.35-1.20190227cvs
David Cantrell b7dc1aa
- Upgrade to calendar-1.35 from OpenBSD 6.4
David Cantrell b7dc1aa
- Fix path to 'cpp' in pathnames.h (#1653311)
David Cantrell b7dc1aa
6a23e9e
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.35-2.20180719cvs
6a23e9e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
6a23e9e
David Cantrell f090eec
* Thu Jul 19 2018 David Cantrell <dcantrell@redhat.com> - 1.35-1.20180719cvs
David Cantrell f090eec
- Upgrade to calendar-1.35 from OpenBSD 6.3
David Cantrell f090eec
David Cantrell 39f36ed
* Thu Jul 19 2018 David Cantrell <dcantrell@redhat.com> - 1.28-10.20140613cvs
David Cantrell 39f36ed
- BR gcc per https://fedoraproject.org/wiki/Changes/Remove_GCC_from_BuildRoot
David Cantrell 39f36ed
ee01e85
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.28-9.20140613cvs
ee01e85
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
ee01e85
1d2d0d4
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.28-8.20140613cvs
1d2d0d4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
1d2d0d4
9f2bea9
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.28-7.20140613cvs
9f2bea9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
9f2bea9
a84e9e5
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.28-6.20140613cvs
a84e9e5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
a84e9e5
9df0b33
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.28-5.20140613cvs
9df0b33
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
9df0b33
3ed14b2
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.28-4.20140613cvs
3ed14b2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
3ed14b2
ad7d1eb
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.28-3.20140613cvs
ad7d1eb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
ad7d1eb
7c0db78
* Fri Aug 15 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.28-2.20140613cvs
7c0db78
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
7c0db78
161ed15
* Fri Jun 13 2014 David Cantrell <dcantrell@redhat.com> - 1.28-1.20140613cvs
161ed15
- Rebase to the version of 'calendar' from OpenBSD 5.5
161ed15
535df22
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.26-8.20110531cvs
535df22
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
535df22
e88f5cc
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.26-7.20110531cvs
e88f5cc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
e88f5cc
22fa23d
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.26-6.20110531cvs
22fa23d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
22fa23d
cd4f635
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.26-5.20110531cvs
cd4f635
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
cd4f635
e40bec0
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.26-4.20110531cvs
e40bec0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
e40bec0
161ed15
* Thu Jun 02 2011 David Cantrell <dcantrell@redhat.com> - 1.26-3.20110531cvs
7a72326
- Must increment release number regardless of cvstag
7a72326
fef6a52
* Tue May 31 2011 David Cantrell <dcantrell@redhat.com> - 1.26-1.20110531cvs
fef6a52
- Upgraded to calendar source from OpenBSD 4.9 (corrects two dates)
fef6a52
- Require cpp (#708609)
fef6a52
f317adc
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.26-2.20110115cvs
f317adc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
f317adc
David Cantrell 63e5722
* Sat Jan 15 2011 David Cantrell <dcantrell@redhat.com> - 1.26-1.20110115cvs
David Cantrell 63e5722
- Upgraded to calendar source from OpenBSD 4.8
David Cantrell 63e5722
a55ee6b
* Fri May 21 2010 David Cantrell <dcantrell@redhat.com> - 1.25-10.20091114cvs
a55ee6b
- Do not use RPM macros for basic commands in the spec file
a55ee6b
0cb9b13
* Wed Feb 24 2010 David Cantrell <dcantrell@redhat.com> - 1.25-9.20091114cvs
0cb9b13
- Add missing parens around srandom() and random() calls
0cb9b13
84bc925
* Sat Nov 14 2009 David Cantrell <dcantrell@redhat.com> - 1.25-8.20091114cvs
84bc925
- Upgraded to calendar snapshot from OpenBSD 4.6
84bc925
84b6689
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.25-7
84b6689
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
84b6689
3c7b601
* Thu Apr 09 2009 David Cantrell <dcantrell@redhat.com> - 1.25-6
3c7b601
- Honor RPM_OPT_FLAGS and fix debuginfo (#494717)
3c7b601
b11318f
* Tue Mar 03 2009 David Cantrell <dcantrell@redhat.com> - 1.25-5
b11318f
- Convert output to locale's character coding
b11318f
96898f6
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.25-4
96898f6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
96898f6
1705741
* Tue Feb 17 2009 David Cantrell <dcantrell@redhat.com> - 1.25-3
1705741
- Use cvs status to get the revision number of calendar.c
1705741
1705741
* Tue Feb 17 2009 David Cantrell <dcantrell@redhat.com> - 1.25-2
1705741
- Fixed problems in export-calendar-source.sh
1705741
- Set permissions on export-calendar-source.sh to 0644
1705741
1705741
* Thu Feb 12 2009 David Cantrell <dcantrell@redhat.com> - 1.25-1
1705741
- Packaged OpenBSD's calendar(1) command from OpenBSD 4.4