Summary: AdLib sound player library Summary(pl.UTF-8): Biblioteka odtwarzacza dźwięku AdLib Name: adplug Version: 2.0.1 Release: 1 License: LGPL Group: Libraries Source0: http://dl.sourceforge.net/adplug/%{name}-%{version}.tar.bz2 # Source0-md5: b3e469e3437d29a79a1ab5febe220f17 Patch0: %{name}-info.patch URL: http://adplug.sourceforge.net/ BuildRequires: libbinio-devel >= 1.4 BuildRequires: libstdc++-devel BuildRequires: pkgconfig BuildRequires: texinfo Requires: libbinio >= 1.4 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description AdPlug is a free, multi-platform, hardware independent AdLib sound player library, mainly written in C++. AdPlug plays sound data, originally created for the AdLib (OPL2) audio board, on top of an OPL2 emulator or by using the real hardware. No OPL2 chip is required for playback. %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.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.UTF-8 Ten pakiet zawiera pliki nagłówkowe biblioteki AdPlug. %package static Summary: Static AdPlug library Summary(pl.UTF-8): Statyczna biblioteka AdPlug Group: Development/Libraries Requires: %{name}-devel = %{version} %description static Static AdPlug library. %description static -l pl.UTF-8 Statyczna biblioteka AdPlug. %prep %setup -q %patch0 -p1 %build %configure %{__make} %install rm -rf $RPM_BUILD_ROOT %{__make} install \ DESTDIR=$RPM_BUILD_ROOT # for system-wide adplugdb database install -d $RPM_BUILD_ROOT/var/lib/adplug %clean rm -rf $RPM_BUILD_ROOT %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 %postun devel [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1 %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.*.*.* %{_mandir}/man1/adplugdb.1* %dir /var/lib/adplug %files devel %defattr(644,root,root,755) %attr(755,root,root) %{_libdir}/libadplug.so %{_libdir}/libadplug.la %{_includedir}/%{name} %{_pkgconfigdir}/adplug.pc %{_infodir}/libadplug.info* %files static %defattr(644,root,root,755) %{_libdir}/libadplug.a