]> git.pld-linux.org Git - packages/opencore-amr.git/blame - opencore-amr.spec
add static_libs bcond
[packages/opencore-amr.git] / opencore-amr.spec
CommitLineData
fbd20c08
JP
1#
2# Conditional build:
3%bcond_without static_libs # static libraries
4
1f6082b2 5Summary: OpenCORE Framework implementation of Adaptive Multi Rate Narrowband and Wideband speech codec
6Summary(pl.UTF-8): Szkielet OpenCORE kodeków mowy Adaptive Multi Rate Narrowband i Wideband
7Name: opencore-amr
ff98310c 8Version: 0.1.6
6ce21ed4 9Release: 1
1f6082b2 10License: Apache v2.0
11Group: Libraries
ff98310c
JB
12Source0: https://downloads.sourceforge.net/opencore-amr/%{name}-%{version}.tar.gz
13# Source0-md5: 03de025060a4f16c4c44218f65e13e95
1f6082b2 14URL: http://opencore-amr.sourceforge.net/
753143cf 15BuildRequires: autoconf >= 2.50
1f6082b2 16BuildRequires: automake
17BuildRequires: libstdc++-devel
6ce21ed4 18BuildRequires: libtool >= 2:2
fbd20c08 19BuildRequires: rpmbuild(macros) >= 1.527
1f6082b2 20BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22%description
23This library contains an implementation of the 3GPP TS 26.073
24specification for the Adaptive Multi Rate (AMR) speech codec and an
25implementation for the 3GPP TS 26.173 specification for the Adaptive
26Multi-Rate - Wideband (AMR-WB) speech decoder. The implementation is
27derived from the OpenCORE framework, part of the Google Android
28project.
29
30%description -l pl.UTF-8
753143cf 31Biblioteka ta zawiera implementację specyfikacji 3GPP TS 26.073 kodeka
b8fad5a2
ER
32mowy Adaptive Multi Rate (AMR) oraz implementację specyfikacji 3GPP TS
3326.173 dekodera mowy Adaptive Multi-Rate - Wideband (AMR-WB).
1f6082b2 34Implementacja pochodzi ze szkieletu OpenCORE, części projektu Google
35Android.
36
37%package devel
38Summary: Header files for opencore-amr library
39Summary(pl.UTF-8): Pliki nagłówkowe biblioteki opencore-amr
40Group: Development/Libraries
41Requires: %{name} = %{version}-%{release}
42
43%description devel
44Header files for opencore-amr library.
45
46%description devel -l pl.UTF-8
47Pliki nagłówkowe biblioteki opencore-amr.
48
49%package static
50Summary: Static opencore-amr library
51Summary(pl.UTF-8): Statyczna biblioteka opencore-amr
52Group: Development/Libraries
53Requires: %{name}-devel = %{version}-%{release}
54
55%description static
56Static opencore-amr library.
57
58%description static -l pl.UTF-8
59Statyczna biblioteka opencore-amr.
60
61%prep
62%setup -q
63
753143cf 64%{__rm} m4/libtool.m4 m4/lt*.m4
b8fad5a2 65
1f6082b2 66%build
67%{__libtoolize}
68%{__aclocal} -I m4
69%{__autoconf}
1f6082b2 70%{__automake}
126520f5 71%configure \
fbd20c08
JP
72 --disable-silent-rules \
73 %{__enable_disable static_libs static}
1f6082b2 74%{__make}
75
76%install
77rm -rf $RPM_BUILD_ROOT
78
79%{__make} install \
80 DESTDIR=$RPM_BUILD_ROOT
81
82%clean
83rm -rf $RPM_BUILD_ROOT
84
85%post -p /sbin/ldconfig
86%postun -p /sbin/ldconfig
87
88%files
89%defattr(644,root,root,755)
6ce21ed4 90%doc ChangeLog README
1f6082b2 91%attr(755,root,root) %{_libdir}/libopencore-amrnb.so.*.*.*
92%attr(755,root,root) %{_libdir}/libopencore-amrwb.so.*.*.*
93%attr(755,root,root) %ghost %{_libdir}/libopencore-amrnb.so.0
94%attr(755,root,root) %ghost %{_libdir}/libopencore-amrwb.so.0
95
96%files devel
97%defattr(644,root,root,755)
98%attr(755,root,root) %{_libdir}/libopencore-amrnb.so
99%attr(755,root,root) %{_libdir}/libopencore-amrwb.so
100%{_libdir}/libopencore-amrnb.la
101%{_libdir}/libopencore-amrwb.la
102%{_includedir}/opencore-amrnb
103%{_includedir}/opencore-amrwb
104%{_pkgconfigdir}/opencore-amrnb.pc
105%{_pkgconfigdir}/opencore-amrwb.pc
106
fbd20c08 107%if %{with static_libs}
1f6082b2 108%files static
109%defattr(644,root,root,755)
110%{_libdir}/libopencore-amrnb.a
111%{_libdir}/libopencore-amrwb.a
fbd20c08 112%endif
This page took 0.477127 seconds and 4 git commands to generate.