]> git.pld-linux.org Git - packages/adplug.git/blob - adplug.spec
- drop .la file, release 2
[packages/adplug.git] / adplug.spec
1 Summary:        AdLib sound player library
2 Summary(pl.UTF-8):      Biblioteka odtwarzacza dźwięku AdLib
3 Name:           adplug
4 Version:        2.2.1
5 Release:        3
6 License:        LGPL v2.1+
7 Group:          Libraries
8 Source0:        http://downloads.sourceforge.net/adplug/%{name}-%{version}.tar.bz2
9 # Source0-md5:  8f815fd5d254de0fe5df818df9d1d8af
10 Patch0:         %{name}-info.patch
11 URL:            http://adplug.sourceforge.net/
12 BuildRequires:  autoconf
13 BuildRequires:  automake
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)
22
23 %description
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
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.
36
37 %package devel
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
43
44 %description devel
45 This is the package containing the header files for AdPlug library.
46
47 %description devel -l pl.UTF-8
48 Ten pakiet zawiera pliki nagłówkowe biblioteki AdPlug.
49
50 %package static
51 Summary:        Static AdPlug library
52 Summary(pl.UTF-8):      Statyczna biblioteka AdPlug
53 Group:          Development/Libraries
54 Requires:       %{name}-devel = %{version}
55
56 %description static
57 Static AdPlug library.
58
59 %description static -l pl.UTF-8
60 Statyczna biblioteka AdPlug.
61
62 %prep
63 %setup -q
64 %patch0 -p1
65 %{__sed} -i 's@<string>@<string.h>@' src/player.h
66
67 %build
68 %{__libtoolize}
69 %{__aclocal}
70 %{__autoconf}
71 %{__automake}
72 %configure
73 %{__make}
74
75 %install
76 rm -rf $RPM_BUILD_ROOT
77
78 %{__make} install \
79         DESTDIR=$RPM_BUILD_ROOT
80
81 # for system-wide adplugdb database
82 install -d $RPM_BUILD_ROOT/var/lib/adplug
83
84 %clean
85 rm -rf $RPM_BUILD_ROOT
86
87 %post   -p /sbin/ldconfig
88 %postun -p /sbin/ldconfig
89
90 %post   devel -p /sbin/postshell
91 -/usr/sbin/fix-info-dir -c %{_infodir}
92
93 %postun devel -p /sbin/postshell
94 -/usr/sbin/fix-info-dir -c %{_infodir}
95
96 %files
97 %defattr(644,root,root,755)
98 %doc AUTHORS BUGS ChangeLog NEWS README TODO
99 %attr(755,root,root) %{_bindir}/adplugdb
100 %attr(755,root,root) %{_libdir}/libadplug-2.2.1.so.*.*.*
101 %attr(755,root,root) %ghost %{_libdir}/libadplug-2.2.1.so.0
102 %{_mandir}/man1/adplugdb.1*
103 %dir /var/lib/adplug
104
105 %files devel
106 %defattr(644,root,root,755)
107 %attr(755,root,root) %{_libdir}/libadplug.so
108 %{_libdir}/libadplug.la
109 %{_includedir}/%{name}
110 %{_pkgconfigdir}/adplug.pc
111 %{_infodir}/libadplug.info*
112
113 %files static
114 %defattr(644,root,root,755)
115 %{_libdir}/libadplug.a
This page took 0.123192 seconds and 3 git commands to generate.