File libadplug.spec of Package libadplug
# norootforbuild
%define soname 0
Name: libadplug-2_2_1-%{soname}
Version: 2.2.1
Release: 1
Summary: AdLib Sound Player Library
Source: http://prdownloads.sourceforge.net/adplug/adplug-%{version}.tar.bz2
URL: http://adplug.sourceforge.net/
Group: System/Libraries
License: GNU Library General Public License version 2.1 (LGPL v2.1)
BuildRoot: %{_tmppath}/build-%{name}-%{version}
BuildRequires: libbinio-devel
BuildRequires: gcc-c++ libstdc++-devel make glibc-devel pkgconfig texinfo
BuildRequires: autoconf automake libtool
%description
AdPlug is a free, cross-platform, hardware independent AdLib sound player
library, mainly written in C++ and released under the LGPL. AdPlug plays sound
data, originally created for the AdLib (OPL2) and Sound Blaster (Dual
OPL2/OPL3) audio boards, directly from its original format on top of an
emulator or by using the real hardware. No OPL chip is required for playback.
Authors:
--------
Simon Peter <dn.tlp@gmx.net>
%package -n libadplug-devel
Summary: Development Files for %{name}
Group: Development/Libraries/C and C++
Requires: %{name} = %{version}-%{release}
Requires: libbinio-devel
Requires: libstdc++-devel
%description -n libadplug-devel
Development files for %{name}.
Authors:
--------
Simon Peter <dn.tlp@gmx.net>
%package -n adplugdb
Summary: AdPlug Database Maintenance Utility
Group: Productivity/Multimedia/Sound/Utilities
Requires: %{name} = %{version}-%{release}
%description -n adplugdb
adplugdb maintains database files in AdPlug database format. It can add, list
and remove records within a central database, or merge a set of databases
together into one single database.
Authors:
--------
Simon Peter <dn.tlp@gmx.net>
%if 0%{?suse_version}
%debug_package
%endif
%prep
%setup -q -n "adplug-%{version}"
%build
export CFLAGS="${RPM_OPT_FLAGS} -fno-strict-aliasing"
%configure --disable-static
%__make %{?_smp_mflags}
%install
%makeinstall
%__rm "%{buildroot}%{_infodir}/dir"
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%clean
%__rm -rf "%{buildroot}"
%files
%defattr(-,root,root)
%doc AUTHORS BUGS ChangeLog COPYING NEWS README TODO
%{_libdir}/libadplug-%{version}.so.%{soname}
%{_libdir}/libadplug-%{version}.so.%{soname}.*.*
%files -n libadplug-devel
%defattr(-,root,root)
%{_includedir}/adplug
%{_libdir}/libadplug.so
%{_libdir}/libadplug.la
%{_libdir}/pkgconfig/adplug.pc
%doc %{_infodir}/libadplug.info*
%files -n adplugdb
%defattr(-,root,root)
%doc AUTHORS COPYING README
%{_bindir}/adplugdb
%doc %{_mandir}/man1/adplugdb.1*
%changelog
* Sun Oct 14 2018 Markus Rex <msrex@msrex.de>
- remove debug-package definition for non-suse distros
* Wed Jul 9 2008 Pascal Bleser <guru@unixtech.be> 2.1-0.pm.3
- added missing Requires in -devel subpackage
* Mon Jul 7 2008 Pascal Bleser <guru@unixtech.be> 2.1-0.pm.2
- added patch to build with GCC 4.3 (missing strings.h include when using strcasecmp)
* Mon Jul 7 2008 Pascal Bleser <guru@unixtech.be> 2.1-0.pm.1
- new package
# Local Variables:
# mode: rpm-spec
# tab-width: 3
# End: