2 # - handle with i18n files
4 Summary: A command line calendar that displays holidays and user-defined events.
9 Group: Applications/Text
10 URL: http://palcal.sourceforge.net/
11 Source0: http://dl.sf.net/palcal/%{name}-%{version}.tgz
12 # Source0-md5: 86911792eace630a1c2e93846c27290c
13 Patch0: %{name}-home_etc.patch
14 BuildRequires: gettext-devel
15 BuildRequires: glib2-devel >= 2.2
16 BuildRequires: readline-devel
17 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20 pal is a command line calendar that displays holidays and user-defined
21 events that are specified in text files. Recomended:
22 - LaTex - required for creating ps/pdf/dvi claendars.
23 - at, cron, sendmail - required for event reminders via email
25 %define debug_package %{nil}
32 sed 's/VERSION/%{version}/' pal.1.template > pal.1
38 f=`echo $file|cut -f1 -d.`
39 mkdir -p "$f/LC_MESSAGES"
40 msgfmt $file -o "$f/LC_MESSAGES/%{name}.po"
44 rm -rf $RPM_BUILD_ROOT
45 install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_bindir},%{_datadir}/%{name},%{_mandir}/man1}
47 install src/pal $RPM_BUILD_ROOT%{_bindir}
48 install share/* $RPM_BUILD_ROOT%{_datadir}/%{name}
49 install pal.conf $RPM_BUILD_ROOT%{_sysconfdir}
50 install pal.1 $RPM_BUILD_ROOT%{_mandir}/man1
55 rm -rf $RPM_BUILD_ROOT
57 #%%files -f %{name}.lang
59 %defattr(644,root,root,755)
60 %attr(755,root,root) %{_bindir}/*
64 %{_sysconfdir}/pal.conf