]> git.pld-linux.org Git - packages/wmSun.git/blobdiff - wmSun.spec
- dropped pre-cvs changelog
[packages/wmSun.git] / wmSun.spec
index 741133b5d8506cb6c6dc47014df0b4f27d1ea3a8..9394cceba042ee339cd5cab936d587c0e2e38c6d 100644 (file)
@@ -1,41 +1,51 @@
-Summary: wmSun displays the current day's Sun Rise and Set Times
-%define version 1.03
-Name: wmSun
-Version: %{version}
-Release: 1
-Copyright: GPL
-Group: X Windows/Window Managers
-Source: ftp://leadbelly.lanl.gov/pub/mgh/%{name}-%{version}.tar.gz
-Packager: Ian Macdonald <ianmacd@xs4all.nl>
-BuildRoot: /var/tmp/%{name}-root
+Summary:       wmSun displays the current day's Sun Rise and Set Times
+Summary(pl.UTF-8):     wmSun wyświetla aktualny czas wschodu i zachodu Słońca
+Name:          wmSun
+Version:       1.03
+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.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
+%setup -q
 
 %build
-touch %{name}/%{name}.c
-make -C %{name}
+%{__make} -C %{name} clean
+%{__make} -C %{name} \
+       CC="%{__cc}" \
+       CFLAGS="%{rpmcflags} -Wall"
 
 %install
 rm -rf $RPM_BUILD_ROOT
-mkdir -p $RPM_BUILD_ROOT/usr/X11R6/{bin,man/man1}
-install -s -m 755 %{name}/%{name} $RPM_BUILD_ROOT/usr/X11R6/bin
-install -m 444 %{name}/%{name}.1 $RPM_BUILD_ROOT/usr/X11R6/man/man1
+install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1,%{_desktopdir}/docklets}
 
-%files
-%defattr(-,root,root)
-/usr/X11R6/bin/%{name}
-/usr/X11R6/man/man1/%{name}.1
-%doc BUGS COPYING TODO
+install %{name}/%{name} $RPM_BUILD_ROOT%{_bindir}
+install %{name}/%{name}.1 $RPM_BUILD_ROOT%{_mandir}/man1
+
+install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}/docklets
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%changelog
-* Tue Feb 9 1998 Ian Macdonald <ianmacd@xs4all.nl>
-
-- first RPM release
+%files
+%defattr(644,root,root,755)
+%doc BUGS TODO
+%attr(755,root,root) %{_bindir}/%{name}
+%{_mandir}/man1/%{name}.1*
+%{_desktopdir}/docklets/wmSun.desktop
This page took 0.089932 seconds and 4 git commands to generate.