]> 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.3.3
5 Release:        2
6 License:        LGPL v2.1+
7 Group:          Libraries
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)
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 # obsoleted by pkg-config
85 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libadplug.la
86
87 %clean
88 rm -rf $RPM_BUILD_ROOT
89
90 %post   -p /sbin/ldconfig
91 %postun -p /sbin/ldconfig
92
93 %post   devel -p /sbin/postshell
94 -/usr/sbin/fix-info-dir -c %{_infodir}
95
96 %postun devel -p /sbin/postshell
97 -/usr/sbin/fix-info-dir -c %{_infodir}
98
99 %files
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*
106 %dir /var/lib/adplug
107
108 %files devel
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*
114
115 %files static
116 %defattr(644,root,root,755)
117 %{_libdir}/libadplug.a
This page took 0.088525 seconds and 4 git commands to generate.