-
Notifications
You must be signed in to change notification settings - Fork 2
/
ilbc.spec.in
71 lines (55 loc) · 1.74 KB
/
ilbc.spec.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
Summary: iLBC is a library for the iLBC low bit rate speech codec.
Name: @PACKAGE@2
Version: @VERSION@
Release: 1%{?dist}
License: Global IP Sound iLBC Public License, v2.0
Group: System Environment/Libraries
URL: http://www.soft-switch.org/voipcodecs
BuildRoot: %{_tmppath}/%{name}-%{version}-root
Source: http://www.soft-switch.org/downloads/voipcodecs@PACKAGE@-@VERSION@.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Docdir: %{_prefix}/doc
BuildRequires: audiofile-devel
BuildRequires: doxygen
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: libtool
%description
iLBC is a library for the iLBC low bit rate speech codec.
%package devel
Summary: iLBC development files
Group: Development/Libraries
Requires: @PACKAGE@2 = %{version}
%description devel
iLBC development files.
%prep
%setup -q -n @PACKAGE@-%{version}
%build
./bootstrap.sh
%configure --enable-doc --disable-static --disable-rpath --libdir=%{_libdir}/ilbc2 --includedir=%{_includedir}/ilbc2
make
%install
%{__rm} -rf %{buildroot}
make install DESTDIR=%{buildroot}
%{__rm} %{buildroot}%{_libdir}/ilbc2/libilbc.la
%{__mkdir} -p %{buildroot}%{_libdir}/pkgconfig/
%{__mv} %{buildroot}%{_libdir}/ilbc2/pkgconfig/ilbc.pc %{buildroot}%{_libdir}/pkgconfig/ilbc2.pc
%clean
%{__rm} -rf %{buildroot}
%files
%defattr(-,root,root,-)
%doc ChangeLog AUTHORS COPYING NEWS README
%{_libdir}/ilbc2/libilbc.so.*
# %{_datadir}/ilbc
%files devel
%defattr(-,root,root,-)
%doc doc/api
%{_includedir}/ilbc2/ilbc.h
%{_includedir}/ilbc2
%{_libdir}/ilbc2/libilbc.so
%{_libdir}/pkgconfig/ilbc2.pc
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%changelog
* Thu Feb 7 2008 Steve Underwood <steveu@coppice.org> 0.0.1
- First pass