1 Summary: AdLib sound player library
2 Summary(pl.UTF-8): Biblioteka odtwarzacza dźwięku AdLib
8 Source0: https://github.com/adplug/adplug/releases/download/adplug-%{version}/%{name}-%{version}.tar.bz2
9 # Source0-md5: 35cb5005c512821ff480c10b43bba270
10 Patch0: %{name}-info.patch
11 URL: https://adplug.github.io
12 BuildRequires: autoconf >= 2.69
13 BuildRequires: automake >= 1:1.14
14 BuildRequires: libbinio-devel >= 1.4
15 BuildRequires: libstdc++-devel
16 BuildRequires: libtool >= 2:1.5
17 BuildRequires: pkgconfig
18 BuildRequires: sed >= 4.0
19 BuildRequires: texinfo
20 Requires: libbinio >= 1.4
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 AdPlug is a free, multi-platform, hardware independent AdLib sound
25 player library, mainly written in C++. AdPlug plays sound data,
26 originally created for the AdLib (OPL2) audio board, on top of an OPL2
27 emulator or by using the real hardware. No OPL2 chip is required for
30 %description -l pl.UTF-8
31 AdPlug to wolnodostępna, wieloplatformowa, niezależna od sprzętu
32 biblioteka odtwarzacza dźwięku AdLib, napisana głównie w C++. AdPlug
33 odtwarza dane dźwiękowe stworzone pierwotnie dla karty dźwiękowej
34 AdLib (OPL2) przy użyciu emulatora OPL2 lub prawdziwego sprzętu. Do
35 odtwarzania nie jest wymagany układ OPL2.
38 Summary: Header files for AdPlug library
39 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki AdPlug.
40 Group: Development/Libraries
41 Requires: %{name} = %{version}-%{release}
42 Requires: libbinio-devel >= 1.4
45 This is the package containing the header files for AdPlug library.
47 %description devel -l pl.UTF-8
48 Ten pakiet zawiera pliki nagłówkowe biblioteki AdPlug.
51 Summary: Static AdPlug library
52 Summary(pl.UTF-8): Statyczna biblioteka AdPlug
53 Group: Development/Libraries
54 Requires: %{name}-devel = %{version}
57 Static AdPlug library.
59 %description static -l pl.UTF-8
60 Statyczna biblioteka AdPlug.
65 %{__sed} -i 's@<string>@<string.h>@' src/player.h
76 rm -rf $RPM_BUILD_ROOT
79 DESTDIR=$RPM_BUILD_ROOT
81 # for system-wide adplugdb database
82 install -d $RPM_BUILD_ROOT/var/lib/adplug
84 # obsoleted by pkg-config
85 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libadplug.la
88 rm -rf $RPM_BUILD_ROOT
90 %post -p /sbin/ldconfig
91 %postun -p /sbin/ldconfig
93 %post devel -p /sbin/postshell
94 -/usr/sbin/fix-info-dir -c %{_infodir}
96 %postun devel -p /sbin/postshell
97 -/usr/sbin/fix-info-dir -c %{_infodir}
100 %defattr(644,root,root,755)
101 %doc AUTHORS BUGS ChangeLog NEWS README TODO
102 %attr(755,root,root) %{_bindir}/adplugdb
103 %attr(755,root,root) %{_libdir}/libadplug-2.3.3.so.*.*.*
104 %attr(755,root,root) %ghost %{_libdir}/libadplug-2.3.3.so.0
105 %{_mandir}/man1/adplugdb.1*
109 %defattr(644,root,root,755)
110 %attr(755,root,root) %{_libdir}/libadplug.so
111 %{_includedir}/adplug
112 %{_pkgconfigdir}/adplug.pc
113 %{_infodir}/libadplug.info*
116 %defattr(644,root,root,755)
117 %{_libdir}/libadplug.a