]> git.pld-linux.org Git - packages/adplug.git/blob - adplug.spec
70a0021521287181d17e4de4232dbbb4f6066b7f
[packages/adplug.git] / adplug.spec
1 Summary:        AdLib sound player library
2 Summary(pl):    Biblioteka odtwarzacza d¼wiêku AdLib
3 Name:           adplug
4 Version:        2.0
5 Release:        1
6 License:        LGPL
7 Group:          Libraries
8 Source0:        http://dl.sourceforge.net/adplug/%{name}-%{version}.tar.bz2
9 # Source0-md5:  48c1bb7c8618c45596d79767dec2e962
10 Patch0:         %{name}-info.patch
11 URL:            http://adplug.sourceforge.net/
12 BuildRequires:  libbinio-devel >= 1.4
13 BuildRequires:  libstdc++-devel
14 BuildRequires:  pkgconfig
15 BuildRequires:  texinfo
16 Requires:       libbinio >= 1.4
17 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19 %description
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
26 %description -l pl
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.
32
33 %package devel
34 Summary:        Header files for AdPlug library
35 Summary(pl):    Pliki nag³ówkowe biblioteki AdPlug.
36 Group:          Development/Libraries
37 Requires:       %{name} = %{version}-%{release}
38 Requires:       libbinio-devel >= 1.4
39
40 %description devel
41 This is the package containing the header files for AdPlug library.
42
43 %description devel -l pl
44 Ten pakiet zawiera pliki nag³ówkowe biblioteki AdPlug.
45
46 %package static
47 Summary:        Static AdPlug library
48 Summary(pl):    Statyczna biblioteka AdPlug
49 Group:          Development/Libraries
50 Requires:       %{name}-devel = %{version}
51
52 %description static
53 Static AdPlug library.
54
55 %description static -l pl
56 Statyczna biblioteka AdPlug.
57
58 %prep
59 %setup -q
60 %patch0 -p1
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
72 # for system-wide adplugdb database
73 install -d $RPM_BUILD_ROOT/var/lib/adplug
74
75 %clean
76 rm -rf $RPM_BUILD_ROOT
77
78 %post   -p /sbin/ldconfig
79 %postun -p /sbin/ldconfig
80
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
87 %files
88 %defattr(644,root,root,755)
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
94
95 %files devel
96 %defattr(644,root,root,755)
97 %attr(755,root,root) %{_libdir}/libadplug.so
98 %{_libdir}/libadplug.la
99 %{_includedir}/%{name}
100 %{_pkgconfigdir}/adplug.pc
101 %{_infodir}/libadplug.info*
102
103 %files static
104 %defattr(644,root,root,755)
105 %{_libdir}/libadplug.a
This page took 0.051848 seconds and 2 git commands to generate.