]>
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 |
dbb7ba0c | 4 | Version: 2.0.1 |
88c3efd8 RK |
5 | Release: 1 |
6 | License: LGPL | |
7 | Group: Libraries | |
8 | Source0: http://dl.sourceforge.net/adplug/%{name}-%{version}.tar.bz2 | |
dbb7ba0c | 9 | # Source0-md5: b3e469e3437d29a79a1ab5febe220f17 |
66de562b | 10 | Patch0: %{name}-info.patch |
88c3efd8 | 11 | URL: http://adplug.sourceforge.net/ |
66de562b JB |
12 | BuildRequires: libbinio-devel >= 1.4 |
13 | BuildRequires: libstdc++-devel | |
14 | BuildRequires: pkgconfig | |
15 | BuildRequires: texinfo | |
16 | Requires: libbinio >= 1.4 | |
88c3efd8 RK |
17 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
18 | ||
19 | %description | |
2102c99f JB |
20 | AdPlug is a free, multi-platform, hardware independent AdLib sound |
21 | player library, mainly written in C++. AdPlug plays sound data, | |
22 | originally created for the AdLib (OPL2) audio board, on top of an OPL2 | |
23 | emulator or by using the real hardware. No OPL2 chip is required for | |
24 | playback. | |
25 | ||
aecf8060 JR |
26 | %description -l pl.UTF-8 |
27 | AdPlug to wolnodostępna, wieloplatformowa, niezależna od sprzętu | |
28 | biblioteka odtwarzacza dźwięku AdLib, napisana głównie w C++. AdPlug | |
29 | odtwarza dane dźwiękowe stworzone pierwotnie dla karty dźwiękowej | |
30 | AdLib (OPL2) przy użyciu emulatora OPL2 lub prawdziwego sprzętu. Do | |
31 | odtwarzania nie jest wymagany układ OPL2. | |
88c3efd8 RK |
32 | |
33 | %package devel | |
2102c99f | 34 | Summary: Header files for AdPlug library |
0067036a | 35 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki AdPlug. |
88c3efd8 | 36 | Group: Development/Libraries |
2102c99f | 37 | Requires: %{name} = %{version}-%{release} |
66de562b | 38 | Requires: libbinio-devel >= 1.4 |
88c3efd8 RK |
39 | |
40 | %description devel | |
2102c99f | 41 | This is the package containing the header files for AdPlug library. |
88c3efd8 | 42 | |
aecf8060 JR |
43 | %description devel -l pl.UTF-8 |
44 | Ten pakiet zawiera pliki nagłówkowe biblioteki AdPlug. | |
88c3efd8 RK |
45 | |
46 | %package static | |
2102c99f | 47 | Summary: Static AdPlug library |
0067036a | 48 | Summary(pl.UTF-8): Statyczna biblioteka AdPlug |
88c3efd8 RK |
49 | Group: Development/Libraries |
50 | Requires: %{name}-devel = %{version} | |
51 | ||
52 | %description static | |
2102c99f | 53 | Static AdPlug library. |
88c3efd8 | 54 | |
aecf8060 | 55 | %description static -l pl.UTF-8 |
2102c99f | 56 | Statyczna biblioteka AdPlug. |
88c3efd8 RK |
57 | |
58 | %prep | |
59 | %setup -q | |
66de562b | 60 | %patch0 -p1 |
88c3efd8 RK |
61 | |
62 | %build | |
63 | %configure | |
64 | %{__make} | |
65 | ||
66 | %install | |
67 | rm -rf $RPM_BUILD_ROOT | |
68 | ||
69 | %{__make} install \ | |
70 | DESTDIR=$RPM_BUILD_ROOT | |
71 | ||
66de562b JB |
72 | # for system-wide adplugdb database |
73 | install -d $RPM_BUILD_ROOT/var/lib/adplug | |
74 | ||
88c3efd8 RK |
75 | %clean |
76 | rm -rf $RPM_BUILD_ROOT | |
77 | ||
2102c99f JB |
78 | %post -p /sbin/ldconfig |
79 | %postun -p /sbin/ldconfig | |
80 | ||
66de562b JB |
81 | %post devel |
82 | [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1 | |
83 | ||
84 | %postun devel | |
85 | [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1 | |
86 | ||
88c3efd8 RK |
87 | %files |
88 | %defattr(644,root,root,755) | |
66de562b JB |
89 | %doc AUTHORS BUGS ChangeLog NEWS README TODO |
90 | %attr(755,root,root) %{_bindir}/adplugdb | |
91 | %attr(755,root,root) %{_libdir}/libadplug-*.so.*.*.* | |
92 | %{_mandir}/man1/adplugdb.1* | |
93 | %dir /var/lib/adplug | |
88c3efd8 RK |
94 | |
95 | %files devel | |
96 | %defattr(644,root,root,755) | |
66de562b JB |
97 | %attr(755,root,root) %{_libdir}/libadplug.so |
98 | %{_libdir}/libadplug.la | |
2102c99f | 99 | %{_includedir}/%{name} |
66de562b JB |
100 | %{_pkgconfigdir}/adplug.pc |
101 | %{_infodir}/libadplug.info* | |
88c3efd8 RK |
102 | |
103 | %files static | |
104 | %defattr(644,root,root,755) | |
66de562b | 105 | %{_libdir}/libadplug.a |