]> git.pld-linux.org Git - packages/pal.git/blame - pal.spec
- pld initial release - based on original spec
[packages/pal.git] / pal.spec
CommitLineData
1ccdae11 1# TODO:
2# - handle with i18n files
3#
4Summary: A command line calendar that displays holidays and user-defined events.
5Name: pal
6Version: 0.3.4
7Release: 0.1
8License: GPL v2
9Group: Applications/Text
10URL: http://palcal.sourceforge.net/
11Source0: http://dl.sf.net/palcal/%{name}-%{version}.tgz
12# Source0-md5: 86911792eace630a1c2e93846c27290c
13Patch0: %{name}-home_etc.patch
14BuildRequires: gettext-devel
15BuildRequires: glib2-devel >= 2.2
16BuildRequires: readline-devel
17BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19%description
20pal is a command line calendar that displays holidays and user-defined
21events 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
24
25%define debug_package %{nil}
26
27%prep
28%setup -q
29%patch0 -p1
30
31%build
32sed 's/VERSION/%{version}/' pal.1.template > pal.1
33cd src
34%{__make}
35
36cd ../po
37for file in *po; do
38 f=`echo $file|cut -f1 -d.`
39 mkdir -p "$f/LC_MESSAGES"
40 msgfmt $file -o "$f/LC_MESSAGES/%{name}.po"
41done
42
43%install
44rm -rf $RPM_BUILD_ROOT
45install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_bindir},%{_datadir}/%{name},%{_mandir}/man1}
46
47install src/pal $RPM_BUILD_ROOT%{_bindir}
48install share/* $RPM_BUILD_ROOT%{_datadir}/%{name}
49install pal.conf $RPM_BUILD_ROOT%{_sysconfdir}
50install pal.1 $RPM_BUILD_ROOT%{_mandir}/man1
51
52#%%find_lang %{name}
53
54%clean
55rm -rf $RPM_BUILD_ROOT
56
57#%%files -f %{name}.lang
58%files
59%defattr(644,root,root,755)
60%attr(755,root,root) %{_bindir}/*
61%doc ChangeLog doc/*
62%{_mandir}/man1/*
63%{_datadir}/pal
64%{_sysconfdir}/pal.conf
This page took 0.095334 seconds and 4 git commands to generate.