Summary: AdLib sound player library
-Summary(pl): Biblioteka odtwarzacza d¼wiêku AdLib
+Summary(pl.UTF-8): Biblioteka odtwarzacza dźwięku AdLib
Name: adplug
-Version: 2.0
+Version: 2.2.1
Release: 1
-License: LGPL
+License: LGPL v2.1+
Group: Libraries
-Source0: http://dl.sourceforge.net/adplug/%{name}-%{version}.tar.bz2
-# Source0-md5: 48c1bb7c8618c45596d79767dec2e962
+Source0: http://downloads.sourceforge.net/adplug/%{name}-%{version}.tar.bz2
+# Source0-md5: 8f815fd5d254de0fe5df818df9d1d8af
Patch0: %{name}-info.patch
URL: http://adplug.sourceforge.net/
+BuildRequires: autoconf
+BuildRequires: automake
BuildRequires: libbinio-devel >= 1.4
BuildRequires: libstdc++-devel
+BuildRequires: libtool >= 2:1.5
BuildRequires: pkgconfig
+BuildRequires: sed >= 4.0
BuildRequires: texinfo
Requires: libbinio >= 1.4
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
emulator or by using the real hardware. No OPL2 chip is required for
playback.
-%description -l pl
-AdPlug to wolnodostêpna, wieloplatformowa, niezale¿na od sprzêtu
-biblioteka odtwarzacza d¼wiêku AdLib, napisana g³ównie w C++. AdPlug
-odtwarza dane d¼wiêkowe stworzone pierwotnie dla karty d¼wiêkowej
-AdLib (OPL2) przy u¿yciu emulatora OPL2 lub prawdziwego sprzêtu. Do
-odtwarzania nie jest wymagany uk³ad OPL2.
+%description -l pl.UTF-8
+AdPlug to wolnodostępna, wieloplatformowa, niezależna od sprzętu
+biblioteka odtwarzacza dźwięku AdLib, napisana głównie w C++. AdPlug
+odtwarza dane dźwiękowe stworzone pierwotnie dla karty dźwiękowej
+AdLib (OPL2) przy użyciu emulatora OPL2 lub prawdziwego sprzętu. Do
+odtwarzania nie jest wymagany układ OPL2.
%package devel
Summary: Header files for AdPlug library
-Summary(pl): Pliki nag³ówkowe biblioteki AdPlug.
+Summary(pl.UTF-8): Pliki nagłówkowe biblioteki AdPlug.
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
Requires: libbinio-devel >= 1.4
%description devel
This is the package containing the header files for AdPlug library.
-%description devel -l pl
-Ten pakiet zawiera pliki nag³ówkowe biblioteki AdPlug.
+%description devel -l pl.UTF-8
+Ten pakiet zawiera pliki nagłówkowe biblioteki AdPlug.
%package static
Summary: Static AdPlug library
-Summary(pl): Statyczna biblioteka AdPlug
+Summary(pl.UTF-8): Statyczna biblioteka AdPlug
Group: Development/Libraries
Requires: %{name}-devel = %{version}
%description static
Static AdPlug library.
-%description static -l pl
+%description static -l pl.UTF-8
Statyczna biblioteka AdPlug.
%prep
%setup -q
%patch0 -p1
+%{__sed} -i 's@<string>@<string.h>@' src/player.h
%build
-%configure
+%{__libtoolize}
+%{__aclocal}
+%{__autoconf}
+%{__automake}
+%configure
%{__make}
%install
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
-%post devel
-[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
+%post devel -p /sbin/postshell
+-/usr/sbin/fix-info-dir -c %{_infodir}
-%postun devel
-[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
+%postun devel -p /sbin/postshell
+-/usr/sbin/fix-info-dir -c %{_infodir}
%files
%defattr(644,root,root,755)
%doc AUTHORS BUGS ChangeLog NEWS README TODO
%attr(755,root,root) %{_bindir}/adplugdb
-%attr(755,root,root) %{_libdir}/libadplug-*.so.*.*.*
+%attr(755,root,root) %{_libdir}/libadplug-2.2.1.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libadplug-2.2.1.so.0
%{_mandir}/man1/adplugdb.1*
%dir /var/lib/adplug