Summary: A WindowMaker Dock CD+Sound Applet
-Summary(pl): Dock CD+Sound aplet do WindowMakera
+Summary(pl): Dokowalny aplet CD+Sound do WindowMakera
Name: WMRack
Version: 1.0b5
-Release: 3
-Copyright: GPL
+Release: 5
+License: GPL
Vendor: FGA bitart Furch & Graf GbR
-Group: X11/Applications
-Source: WMRack-%{version}.tar.bz2
-Icon: wmrack.gif
-BuildRoot: /tmp/%{name}-%{version}-root
+Group: X11/Window Managers/Tools
+Source0: http://dl.sourceforge.net/wmrack/%{name}-%{version}.tar.gz
+Patch0: %{name}-DESTDIR.patch
+#Icon: wmrack.gif
+URL: http://wmrack.sf.net/
+BuildRequires: autoconf
+BuildRequires: automake
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define _prefix /usr/X11R6
+%define _mandir %{_prefix}/man
%description
-This is the second and hopefully last beta release of WMRack. It
-features cdrom and mixer functions. Please repeat any bugs. Compiled
-with extra verbose output.
+It features cdrom and mixer functions.
-Read the manpage for a description of the supported functions and
-how to install the applet to your button bar (Wharf, Dock, etc...)
+Read the manpage for a description of the supported functions and how
+to install the applet to your button bar (Wharf, Dock, etc...)
-Sorry, styles not updated. Wait for the non-beta. Old styles
-still work but need an extra (middle) button.
+Sorry, styles not updated. Wait for the non-beta. Old styles still
+work but need an extra (middle) button.
+
+%description -l pl
+WMRack zawiera funkcje miksera i odtwarzacza cdrom.
+
+Przeczytaj stronê manuala, je¿eli szukasz opisu obs³ugiwanych funkcji
+oraz jak zainstalowaæ aplet na swoim pasku przycisków (Wharf, Dock,
+itp).
%prep
%setup -q
+%patch0 -p1
%build
-CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-s" \
-./configure \
- --prefix=/usr/X11R6
-make
+%{__aclocal}
+%{__autoconf}
+%configure
+
+%{__make}
%install
rm -rf $RPM_BUILD_ROOT
-make prefix=$RPM_BUILD_ROOT/usr/X11R6 install
+%{__make} install DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%doc LICENSE README TODO WARRANTY
-/usr/X11R6/GNUstep/Library/WMRack
-
-%attr(755,root,root) /usr/X11R6/bin/*
-%attr(644,root, man) /usr/X11R6/man/man1/*
-
-%changelog
-* Sun Nov 1 1998 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
- [1.0b5-3]
-- added -q %setup parameter,
-- changed Buildroot to /tmp/%%{name}-%%{version}-root,
-- added using %%{name} and %%{version} in Source,
-- changed instal prefix to /usr/X11R6
-- added LDFLAGS="-s" to ./configure enviroment,
-- added Group(pl) and Summary(pl),
-- added %attr and %defattr macros in %files (allow build package from
- non-root account).
-
-* Thu Aug 6 1998 Oliver Graf <ograf@fga.de>
-- started changelog
-- added defines for version and release
+%doc README TODO WARRANTY
+#%%{_prefix}/GNUstep/Library/WMRack
+%{_libdir}/WMRack
+
+%attr(755,root,root) %{_bindir}/*
+%{_mandir}/man1/*