]> git.pld-linux.org Git - packages/wmSun.git/blobdiff - wmSun.spec
- dropped pre-cvs changelog
[packages/wmSun.git] / wmSun.spec
index cbd3c1831920f70c9bc82dd1d1f66bbd91c3a0d8..9394cceba042ee339cd5cab936d587c0e2e38c6d 100644 (file)
@@ -1,57 +1,51 @@
 Summary:       wmSun displays the current day's Sun Rise and Set Times
-Summary(pl):   wmSun wy¶wietla aktualny czas wschodu i zachodu s³oñca
+Summary(pl.UTF-8):     wmSun wyświetla aktualny czas wschodu i zachodu Słońca
 Name:          wmSun
 Version:       1.03
-Release:       3
-Copyright:     GPL
-Group:          X11/Window Managers/Tools
-Group(pl):      X11/Zarz±dcy Okien/Narzêdzia
-Source0:       ftp://leadbelly.lanl.gov/pub/mgh/%{name}-%{version}.tar.gz
-Source1:       wmSun.desktop
-BuildRequires:    XFree86-devel
-BuildRequires:    xpm-devel
-BuildRoot:     /tmp/%{name}-%{version}-root
-
-%define _prefix        /usr/X11R6
-%define _mandir %{_prefix}/man
+Release:       8
+License:       GPL v2
+Group:         X11/Window Managers/Tools
+Source0:       http://nis-www.lanl.gov/~mgh/WindowMaker/%{name}-%{version}.tar.gz
+# Source0-md5: defc6747ebdb64b5d3afe91f916d3acc
+Source1:       %{name}.desktop
+URL:           http://nis-www.lanl.gov/~mgh/WindowMaker/DockApps.shtml
+BuildRequires: xorg-lib-libXext-devel
+BuildRequires: xorg-lib-libXpm-devel
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
-wmSun displays the current day's Sun Rise and Set Times.
-You must enter your LAtitude and Longitude correctly for it to work.
+wmSun displays the current day's Sun Rise and Set Times. You must
+enter your LAtitude and Longitude correctly for it to work.
 
-%description -l pl
-wmSun wy¶wietla aktualne godziny wschodu i zachodu s³oñca.
-Aby program dzia³a³ poprawnie, musisz podaæ w³a¶ciw± dla
-miejsca, w którym przebywasz, d³ugo¶æ i szeroko¶æ geograficzn±.
+%description -l pl.UTF-8
+wmSun wyświetla aktualne godziny wschodu i zachodu Słońca. Aby program
+działał poprawnie trzeba podać długość i szerokość geograficzną dla
+miejsca, w którym przebywamy.
 
 %prep
 %setup -q
 
 %build
-make -C %{name} clean
-make -C %{name} \
-        CFLAGS="$RPM_OPT_FLAGS -Wall" \
-       INCDIR="-I/usr/X11R6/include"
+%{__make} -C %{name} clean
+%{__make} -C %{name} \
+       CC="%{__cc}" \
+       CFLAGS="%{rpmcflags} -Wall"
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1} \
-        $RPM_BUILD_ROOT/usr/X11R6/share/applnk/DockApplets
+install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1,%{_desktopdir}/docklets}
 
-install -s %{name}/%{name} $RPM_BUILD_ROOT%{_bindir}
+install %{name}/%{name} $RPM_BUILD_ROOT%{_bindir}
 install %{name}/%{name}.1 $RPM_BUILD_ROOT%{_mandir}/man1
 
-install %{SOURCE1} $RPM_BUILD_ROOT/usr/X11R6/share/applnk/DockApplets
-
-gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man1/* \
-       BUGS TODO
+install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}/docklets
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc {BUGS,TODO}.gz
+%doc BUGS TODO
 %attr(755,root,root) %{_bindir}/%{name}
-%{_mandir}/man1/%{name}.1.gz
-/usr/X11R6/share/applnk/DockApplets/wmSun.desktop
+%{_mandir}/man1/%{name}.1*
+%{_desktopdir}/docklets/wmSun.desktop
This page took 0.059061 seconds and 4 git commands to generate.