]>
Commit | Line | Data |
---|---|---|
88c3efd8 | 1 | Summary: AdLib sound player library |
0067036a | 2 | Summary(pl.UTF-8): Biblioteka odtwarzacza dźwięku AdLib |
88c3efd8 | 3 | Name: adplug |
a87dcd0d | 4 | Version: 2.3.3 |
3e22c60a | 5 | Release: 2 |
cce478c8 | 6 | License: LGPL v2.1+ |
88c3efd8 | 7 | Group: Libraries |
a87dcd0d JP |
8 | Source0: https://github.com/adplug/adplug/releases/download/adplug-%{version}/%{name}-%{version}.tar.bz2 |
9 | # Source0-md5: 35cb5005c512821ff480c10b43bba270 | |
66de562b | 10 | Patch0: %{name}-info.patch |
a87dcd0d JP |
11 | URL: https://adplug.github.io |
12 | BuildRequires: autoconf >= 2.69 | |
13 | BuildRequires: automake >= 1:1.14 | |
66de562b JB |
14 | BuildRequires: libbinio-devel >= 1.4 |
15 | BuildRequires: libstdc++-devel | |
cce478c8 | 16 | BuildRequires: libtool >= 2:1.5 |
66de562b | 17 | BuildRequires: pkgconfig |
17c450c3 | 18 | BuildRequires: sed >= 4.0 |
66de562b JB |
19 | BuildRequires: texinfo |
20 | Requires: libbinio >= 1.4 | |
88c3efd8 RK |
21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
22 | ||
23 | %description | |
2102c99f JB |
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 | |
28 | playback. | |
29 | ||
aecf8060 JR |
30 | %description -l pl.UTF-8 |
31 | AdPlug to wolnodostępna, wieloplatformowa, niezależna od sprzętu | |
461deb34 | 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. | |
88c3efd8 RK |
36 | |
37 | %package devel | |
2102c99f | 38 | Summary: Header files for AdPlug library |
0067036a | 39 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki AdPlug. |
88c3efd8 | 40 | Group: Development/Libraries |
2102c99f | 41 | Requires: %{name} = %{version}-%{release} |
66de562b | 42 | Requires: libbinio-devel >= 1.4 |
88c3efd8 RK |
43 | |
44 | %description devel | |
2102c99f | 45 | This is the package containing the header files for AdPlug library. |
88c3efd8 | 46 | |
aecf8060 JR |
47 | %description devel -l pl.UTF-8 |
48 | Ten pakiet zawiera pliki nagłówkowe biblioteki AdPlug. | |
88c3efd8 RK |
49 | |
50 | %package static | |
2102c99f | 51 | Summary: Static AdPlug library |
0067036a | 52 | Summary(pl.UTF-8): Statyczna biblioteka AdPlug |
88c3efd8 RK |
53 | Group: Development/Libraries |
54 | Requires: %{name}-devel = %{version} | |
55 | ||
56 | %description static | |
2102c99f | 57 | Static AdPlug library. |
88c3efd8 | 58 | |
aecf8060 | 59 | %description static -l pl.UTF-8 |
2102c99f | 60 | Statyczna biblioteka AdPlug. |
88c3efd8 RK |
61 | |
62 | %prep | |
63 | %setup -q | |
66de562b | 64 | %patch0 -p1 |
17c450c3 | 65 | %{__sed} -i 's@<string>@<string.h>@' src/player.h |
88c3efd8 RK |
66 | |
67 | %build | |
17c450c3 | 68 | %{__libtoolize} |
69 | %{__aclocal} | |
70 | %{__autoconf} | |
71 | %{__automake} | |
72 | %configure | |
88c3efd8 RK |
73 | %{__make} |
74 | ||
75 | %install | |
76 | rm -rf $RPM_BUILD_ROOT | |
77 | ||
78 | %{__make} install \ | |
79 | DESTDIR=$RPM_BUILD_ROOT | |
80 | ||
66de562b JB |
81 | # for system-wide adplugdb database |
82 | install -d $RPM_BUILD_ROOT/var/lib/adplug | |
83 | ||
3e22c60a JB |
84 | # obsoleted by pkg-config |
85 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libadplug.la | |
86 | ||
88c3efd8 RK |
87 | %clean |
88 | rm -rf $RPM_BUILD_ROOT | |
89 | ||
2102c99f JB |
90 | %post -p /sbin/ldconfig |
91 | %postun -p /sbin/ldconfig | |
92 | ||
cce478c8 | 93 | %post devel -p /sbin/postshell |
6bfa4b31 | 94 | -/usr/sbin/fix-info-dir -c %{_infodir} |
66de562b | 95 | |
cce478c8 | 96 | %postun devel -p /sbin/postshell |
6bfa4b31 | 97 | -/usr/sbin/fix-info-dir -c %{_infodir} |
66de562b | 98 | |
88c3efd8 RK |
99 | %files |
100 | %defattr(644,root,root,755) | |
66de562b JB |
101 | %doc AUTHORS BUGS ChangeLog NEWS README TODO |
102 | %attr(755,root,root) %{_bindir}/adplugdb | |
a87dcd0d JP |
103 | %attr(755,root,root) %{_libdir}/libadplug-2.3.3.so.*.*.* |
104 | %attr(755,root,root) %ghost %{_libdir}/libadplug-2.3.3.so.0 | |
66de562b JB |
105 | %{_mandir}/man1/adplugdb.1* |
106 | %dir /var/lib/adplug | |
88c3efd8 RK |
107 | |
108 | %files devel | |
109 | %defattr(644,root,root,755) | |
66de562b | 110 | %attr(755,root,root) %{_libdir}/libadplug.so |
3e22c60a | 111 | %{_includedir}/adplug |
66de562b JB |
112 | %{_pkgconfigdir}/adplug.pc |
113 | %{_infodir}/libadplug.info* | |
88c3efd8 RK |
114 | |
115 | %files static | |
116 | %defattr(644,root,root,755) | |
66de562b | 117 | %{_libdir}/libadplug.a |