]> git.pld-linux.org Git - packages/wmSun.git/blob - wmSun.spec
- switch to rpm 3.0.2
[packages/wmSun.git] / wmSun.spec
1 Summary:        wmSun displays the current day's Sun Rise and Set Times
2 Summary(pl):    wmSun wy¶wietla aktualny czas wschodu i zachodu s³oñca
3 Name:           wmSun
4 Version:        1.03
5 Release:        3
6 Copyright:      GPL
7 Group:          X11/Window Managers/Tools
8 Group(pl):      X11/Zarz±dcy Okien/Narzêdzia
9 Source0:        ftp://leadbelly.lanl.gov/pub/mgh/%{name}-%{version}.tar.gz
10 Source1:        wmSun.desktop
11 BuildRequires:    XFree86-devel
12 BuildRequires:    xpm-devel
13 BuildRoot:      /tmp/%{name}-%{version}-root
14
15 %define _prefix /usr/X11R6
16 %define _mandir %{_prefix}/man
17
18 %description
19 wmSun displays the current day's Sun Rise and Set Times.
20 You must enter your LAtitude and Longitude correctly for it to work.
21
22 %description -l pl
23 wmSun wy¶wietla aktualne godziny wschodu i zachodu s³oñca.
24 Aby program dzia³a³ poprawnie, musisz podaæ w³a¶ciw± dla
25 miejsca, w którym przebywasz, d³ugo¶æ i szeroko¶æ geograficzn±.
26
27 %prep
28 %setup -q
29
30 %build
31 make -C %{name} clean
32 make -C %{name} \
33         CFLAGS="$RPM_OPT_FLAGS -Wall" \
34         INCDIR="-I/usr/X11R6/include"
35
36 %install
37 rm -rf $RPM_BUILD_ROOT
38 install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1} \
39         $RPM_BUILD_ROOT/etc/X11/applnk/DockApplets
40
41 install -s %{name}/%{name} $RPM_BUILD_ROOT%{_bindir}
42 install %{name}/%{name}.1 $RPM_BUILD_ROOT%{_mandir}/man1
43
44 install %{SOURCE1} $RPM_BUILD_ROOT/etc/X11/applnk/DockApplets
45
46 gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man1/* \
47         BUGS TODO
48
49 %clean
50 rm -rf $RPM_BUILD_ROOT
51
52 %files
53 %defattr(644,root,root,755)
54 %doc {BUGS,TODO}.gz
55 %attr(755,root,root) %{_bindir}/%{name}
56 %{_mandir}/man1/%{name}.1.gz
57 /etc/X11/applnk/DockApplets/wmSun.desktop
This page took 0.035332 seconds and 4 git commands to generate.