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: 2d
-Copyright: GPL
+Release: 5
+License: GPL
Vendor: FGA bitart Furch & Graf GbR
Group: X11/Window Managers/Tools
-Group(pl): X11/Zarz±dcy Okien/Narzêdzia
-Source: WMRack-%{version}.tar.bz2
-Icon: wmrack.gif
-BuildRoot: /tmp/%{name}-%{version}-root
+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 %{_target} \
- --prefix=/usr/X11R6
-make
+%{__aclocal}
+%{__autoconf}
+%configure
+
+%{__make}
%install
rm -rf $RPM_BUILD_ROOT
-make prefix=$RPM_BUILD_ROOT/usr/X11R6 install
-
-gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man1/*
-gzip -9nf README TODO WARRANTY
+%{__make} install DESTDIR=$RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%doc README.gz TODO.gz WARRANTY.gz
-/usr/X11R6/GNUstep/Library/WMRack
-
-%attr(755,root,root) /usr/X11R6/bin/*
-%attr(644,root, man) /usr/X11R6/man/man1/*
-
-%changelog
-* Tue Feb 9 1999 Micha³ Kuratczyk <kurkens@polbox.com>
- [1.0b5-2d]
-- added gzipping man pages and documentation
-- removed LICENSE form %doc (GPL)
-- added %clean section
-
-* 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,
-- changed Group to X11/Window Managers/Tools,
-- added Group(pl) and Summary(pl),
-- added %attr and %defattr macros in %files (allow build package from
- non-root account).
+%doc README TODO WARRANTY
+#%%{_prefix}/GNUstep/Library/WMRack
+%{_libdir}/WMRack
-* Thu Aug 6 1998 Oliver Graf <ograf@fga.de>
-- started changelog
-- added defines for version and release
+%attr(755,root,root) %{_bindir}/*
+%{_mandir}/man1/*