-Summary: Blade's MP3 Encoder
-Summary(pl): Encoder MP3 Bladeya
-Name: BladeEnc
-Version: 076
-Release: 1
-Copyright: Freeware
-Vendor: Tord Jansson <tord.jansson@swipnet.se>
-Group: Applications/Sound
-Group(pl): Aplikacje/D¼wiêk
-Source: http://home8.swipnet.se/~w-82625/binaries/%{name}-%{version}-i386-linux.tar.gz
-URL: http://home8.swipnet.se/~w-82625/
-ExclusiveOS: Linux
-#ExclusiveArch:i386
-BuildRoot: /tmp/%{name}-%{version}-root
+Summary: Blade's MP3 Encoder
+Summary(pl): Koder MP3 Blade'a
+Name: bladeenc
+Version: 0.94.2
+Release: 5
+Epoch: 1
+License: GPL
+Vendor: Tord Jansson <tord.jansson@swipnet.se>
+Group: Applications/Sound
+Source0: http://bladeenc.mp3.no/source/%{name}-%{version}-src-stable.tar.gz
+Patch0: %{name}-fseek-sec.patch
+Patch1: %{name}-home_etc.patch
+URL: http://bladeenc.mp3.no/
+BuildRequires: autoconf
+BuildRequires: automake
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+Obsoletes: BladeEnc
%description
-BladeEnc is a program to generate MP3 files from WAV or AIFF sound files.
+BladeEnc is a program to generate MP3 files from WAV or AIFF sound
+files.
%description -l pl
BladeEnc jest programem s³u¿±cym do generowania plików MP3 z plików
d¼wiêkowych w formacie WAV lub AIFF.
%prep
-%setup -q -n %{name}-0.76-i386-linux
+%setup -q
+%patch0 -p1
+%patch1 -p1
+
+%build
+%{__aclocal}
+%{__autoconf}
+%configure
+%{__make}
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{_bindir}
-install -s bladeenc $RPM_BUILD_ROOT%{_bindir}
-gzip -9nf BladeEnc.html
-
-%files
-%defattr(644,root,root,755)
-%doc BladeEnc.html.gz
-
-%attr(755,root,root) %{_bindir}/*
+%{__make} install DESTDIR=$RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
-%changelog
-* Sat Jan 02 1999 Arkadiusz Mi¶kiewicz <misiek@misiek.eu.org>
-- initial RPM release
+%files
+%defattr(644,root,root,755)
+%doc README TODO ChangeLog AUTHORS
+%attr(755,root,root) %{_bindir}/*