]>
Commit | Line | Data |
---|---|---|
1ccdae11 | 1 | # TODO: |
2 | # - handle with i18n files | |
3 | # | |
4 | Summary: A command line calendar that displays holidays and user-defined events. | |
5 | Name: pal | |
6 | Version: 0.3.4 | |
7 | Release: 0.1 | |
8 | License: GPL v2 | |
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) | |
18 | ||
19 | %description | |
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 | |
24 | ||
25 | %define debug_package %{nil} | |
26 | ||
27 | %prep | |
28 | %setup -q | |
29 | %patch0 -p1 | |
30 | ||
31 | %build | |
32 | sed 's/VERSION/%{version}/' pal.1.template > pal.1 | |
33 | cd src | |
34 | %{__make} | |
35 | ||
36 | cd ../po | |
37 | for 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" | |
41 | done | |
42 | ||
43 | %install | |
44 | rm -rf $RPM_BUILD_ROOT | |
45 | install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_bindir},%{_datadir}/%{name},%{_mandir}/man1} | |
46 | ||
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 | |
51 | ||
52 | #%%find_lang %{name} | |
53 | ||
54 | %clean | |
55 | rm -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 |