1 |
%define major 0 |
2 |
%define libname %mklibname %{name} %{major} |
3 |
%define develname %mklibname %{name} -d |
4 |
|
5 |
Name: freealut |
6 |
Summary: OpenAL Utility Toolkit (ALUT) |
7 |
Version: 1.1.0 |
8 |
Release: %mkrel 8 |
9 |
License: LGPLv2 |
10 |
Group: System/Libraries |
11 |
URL: http://www.openal.org |
12 |
Source: http://www.openal.org/openal_webstf/downloads/%{name}-%{version}.tar.bz2 |
13 |
Patch0: %{name}-openal.patch |
14 |
BuildRequires: openal-devel |
15 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot |
16 |
|
17 |
%description |
18 |
ALUT is the OpenAL Utility Toolkit. |
19 |
|
20 |
%package -n %{libname} |
21 |
Summary: Main library for ALUT |
22 |
Group: System/Libraries |
23 |
Provides: %{name} = %{version}-%{release} |
24 |
|
25 |
%description -n %{libname} |
26 |
This package contains the library needed to run programs dynamically |
27 |
linked with ALUT. |
28 |
|
29 |
%package -n %{develname} |
30 |
Summary: Headers for developing programs that will use ALUT |
31 |
Group: Development/C |
32 |
Requires: %{libname} = %{version}-%{release} |
33 |
Provides: lib%{name}-devel = %{version}-%{release} |
34 |
Provides: %{name}-devel = %{version}-%{release} |
35 |
Obsoletes: %mklibname %{name} 0 -d |
36 |
Provides: %mklibname %{name} 0 -d |
37 |
Conflicts: openal-devel < 0.0.8-2 |
38 |
|
39 |
%description -n %{develname} |
40 |
This package contains the headers that programmers will need to develop |
41 |
applications which will use ALUT. |
42 |
|
43 |
%prep |
44 |
%setup -q |
45 |
%patch0 -p1 -b .openal |
46 |
|
47 |
%build |
48 |
./autogen.sh |
49 |
%configure2_5x |
50 |
%make |
51 |
|
52 |
%install |
53 |
%makeinstall_std |
54 |
|
55 |
rm -f %{buildroot}%{_libdir}/*.la |
56 |
|
57 |
%post -n %{develname} |
58 |
%_install_info %{name}.info |
59 |
|
60 |
%preun -n %{develname} |
61 |
%_remove_install_info %{name}.info |
62 |
|
63 |
%files -n %{libname} |
64 |
%doc AUTHORS ChangeLog NEWS README |
65 |
%{_libdir}/*.so.%{major}* |
66 |
|
67 |
%files -n %{develname} |
68 |
%{_includedir}/AL |
69 |
%{_libdir}/*.a |
70 |
%{_libdir}/pkgconfig/%{name}.pc |
71 |
%{_libdir}/*.so |
72 |
%{_bindir}/%{name}-config |
73 |
|
74 |
|