remind/remind.spec

150 lines
4.3 KiB
RPMSpec
Raw Permalink Normal View History

2023-10-05 23:06:10 +00:00
Name: remind
Version: 04.02.08
2023-10-25 18:31:49 +00:00
Release: %autorelease
Summary: Sophisticated calendar and alarm program
# GPL-2.0-only: main software
# GPL-2.0-only AND LicenseRef-Fedora-Public-Domain:
# - src/moon.c
# LicenseRef-Fedora-Public-Domain:
# - src/md5.c
License: GPL-2.0-only AND BSD-2-Clause AND (GPL-2.0-only AND LicenseRef-Fedora-Public-Domain) AND LicenseRef-Fedora-Public-Domain
2023-10-05 23:06:10 +00:00
URL: https://dianne.skoll.ca/projects/remind/
2023-10-25 18:31:49 +00:00
Source: %url/download/%{name}-%{version}.tar.gz
Source: %url/download/%{name}-%{version}.tar.gz.sig
Source: 685A5A5E511D30E2.gpg
Source: tkremind.desktop
2023-10-25 18:31:49 +00:00
# stolen from Debian
Patch: use-system-libjsonparser.diff
Patch: https://git.skoll.ca/Skollsoft-Public/Remind/commit/0203ce3979c17cfb79ab339d092d9861ee9de697.patch
# temporary
Patch: remove-timezone-tests-from-compare.patch
2023-10-05 23:06:10 +00:00
BuildRequires: gcc
2023-10-25 18:31:49 +00:00
BuildRequires: gnupg2
BuildRequires: make
BuildRequires: perl(Cairo)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(JSON::MaybeXS)
BuildRequires: perl(Pango)
BuildRequires: perl-generators
BuildRequires: perl-interpreter
BuildRequires: pkgconfig(json-parser)
BuildRequires: desktop-file-utils
2023-10-25 18:31:49 +00:00
Recommends: remind-tools
Recommends: remind-gui
Recommends: remind-doc
2023-10-05 23:06:10 +00:00
%description
Remind is a sophisticated calendar and alarm program. It includes the following
features:
2023-10-25 18:31:49 +00:00
- A sophisticated scripting language and intelligent handling of exceptions
and holidays
- Plain-text, PDF, PostScript and HTML output
- Timed reminders and pop-up alarms
- A friendly graphical front-end for people who don't want to learn the
scripting language
- Facilities for both the Gregorian and Hebrew calendars
- Support for 12 different languages
%package doc
Summary: Documentation for remind, a sophisticated calendar and alarm program
License: GPL-2.0-only
BuildArch: noarch
2023-10-25 18:31:49 +00:00
%description doc
Documentation and information on how to use remind
2023-10-25 18:31:49 +00:00
%package gui
Summary: GUI for remind, a sophisticated calendar and alarm program
License: GPL-2.0-only
BuildArch: noarch
2024-01-28 04:34:55 +00:00
Provides: tkremind = %{version}-%{release}
Requires: %{name} = %{version}-%{release}
2023-10-05 23:06:10 +00:00
Requires: tcl
Requires: tcllib
2023-10-25 18:31:49 +00:00
Requires: tk >= 8.0
2024-01-28 04:34:55 +00:00
Suggests: google-noto-fonts
2023-10-05 23:06:10 +00:00
2023-10-25 18:31:49 +00:00
%description gui
Tkremind provides a GUI which allows viewing a calendar and adding or editing
reminders without learning the syntax of Remind.
2023-10-05 23:06:10 +00:00
%package tools
Summary: Additional tools for remind
# GPL-2.0-or-later:
# - contrib/ical2rem.pl
# - contrib/rem2ics-0.93/rem2ics.spec
# - contrib/remind-conf-mode/remind-conf-mode.el
# GPL-2.0-or-later AND GPL-2.0-only:
# - contrib/rem2ics-0.93/rem2ics
# GPL-3.0-only:
# - contrib/remind-conf-mode/gpl.txt
License: GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-only
%description tools
Tools to convert the remind output to ps, pdf or html as well as example files.
2023-10-05 23:06:10 +00:00
%prep
2023-10-25 18:31:49 +00:00
%{gpgverify} --keyring='%{SOURCE2}' --signature='%{SOURCE1}' --data='%{SOURCE0}'
%autosetup -p1 -n %{name}-%{version}
# Disable packlist and perllocal update
sed -i 's|\$(PERL) Makefile.PL|\$(PERL) Makefile.PL NO_PACKLIST=1 NO_PERLLOCAL=1 OPTIMIZE="$RPM_OPT_FLAGS"|g' rem2pdf/Makefile.top.in
2023-10-05 23:06:10 +00:00
2024-01-28 04:34:55 +00:00
# json-parser is in fedora; remove bundled copies
rm src/json.h
rm src/json.c
2023-10-05 23:06:10 +00:00
%build
%configure
2023-10-25 18:31:49 +00:00
%make_build
2023-10-05 23:06:10 +00:00
%install
2023-10-25 18:31:49 +00:00
%make_install
2023-10-05 23:06:10 +00:00
desktop-file-install --dir=%{buildroot}%{_datadir}/applications %{SOURCE3}
%check
# NOTE(neil): 2024-01-09 disabling tz.rem as it is broken
sed -iE 's,^TZ=America.*,,;s,^TZ=Europe.*,,' tests/test-rem
make test
2023-10-05 23:06:10 +00:00
%files
%doc README
2023-10-25 18:31:49 +00:00
%license COPYRIGHT MICROSOFT-AND-APPLE
%attr(0755,-,-) %{_bindir}/%{name}
2023-10-05 23:06:10 +00:00
%{_bindir}/rem
2023-10-25 18:31:49 +00:00
%{_datadir}/remind/
%{_mandir}/man1/rem.1*
%{_mandir}/man1/%{name}.1*
%files doc
%doc README docs/
2023-10-25 18:31:49 +00:00
%doc www/ examples/ contrib/
%files tools
2023-10-25 18:31:49 +00:00
%license COPYRIGHT MICROSOFT-AND-APPLE
%attr(0755,-,-) %{_bindir}/rem2html
%attr(0755,-,-) %{_bindir}/rem2pdf
%attr(0755,-,-) %{_bindir}/rem2ps
2023-10-25 18:31:49 +00:00
%{perl_vendorlib}/*
%{_mandir}/man1/rem2html.1*
%{_mandir}/man1/rem2pdf.1*
%{_mandir}/man1/rem2ps.1*
%{_mandir}/man3/Remind::PDF.3pm*
%{_mandir}/man3/Remind::PDF::Entry.3pm*
2023-10-05 23:06:10 +00:00
%files gui
%attr(0755,-,-) %{_bindir}/tkremind
2023-10-25 18:31:49 +00:00
%{_mandir}/man1/tkremind.1*
%{_datadir}/applications/tkremind.desktop
2023-10-05 23:06:10 +00:00
%changelog
2023-10-25 18:31:49 +00:00
%autochangelog