]> git.pld-linux.org Git - packages/amrnb.git/blob - amrnb.spec
- refresh ac/am/lt (needed for amd64)
[packages/amrnb.git] / amrnb.spec
1 #
2 # Conditional build:
3 %bcond_without  static_libs     # don't build static library
4 #
5 Summary:        3GPP AMR Floating-point Speech Codec
6 Summary(pl):    Zmiennoprzecinkowy kodek mowy 3GPP AMR
7 Name:           amrnb
8 Version:        0.0.1
9 Release:        1
10 License:        LGPL
11 Group:          Libraries
12 Source0:        http://ronald.bitfreak.net/priv/%{name}-%{version}.tar.gz
13 # Source0-md5:  c4546d2920cf287847a7286b4dea7472
14 Patch0:         %{name}-inttypes.patch
15 URL:            http://www.3gpp.org/
16 BuildRequires:  autoconf >= 2.50
17 BuildRequires:  automake
18 BuildRequires:  libtool
19 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21 %define         specflags       -fno-strict-aliasing
22
23 %description
24 3GPP AMR Floating-point Speech Codec.
25
26 %description -l pl
27 Zmiennoprzecinkowy kodek mowy 3GPP AMR.
28
29 %package devel
30 Summary:        Header files for amrnb library
31 Summary(pl):    Pliki nag³ówkowe biblioteki amrnb
32 Group:          Development/Libraries
33 Requires:       %{name} = %{version}-%{release}
34
35 %description devel
36 Header files for amrnb library.
37
38 %description devel -l pl
39 Pliki nag³ówkowe biblioteki amrnb.
40
41 %package static
42 Summary:        Static amrnb library
43 Summary(pl):    Statyczna biblioteka amrnb
44 Group:          Development/Libraries
45 Requires:       %{name}-devel = %{version}-%{release}
46
47 %description static
48 Static amrnb library.
49
50 %description static -l pl
51 Statyczna biblioteka amrnb.
52
53 %prep
54 %setup -q
55 %patch0 -p1
56
57 %build
58 %{__libtoolize}
59 %{__aclocal}
60 %{__autoconf}
61 %{__autoheader}
62 %{__automake}
63 %configure \
64         %{?with_static_libs:--enable-static}
65
66 %{__make}
67
68 %install
69 rm -rf $RPM_BUILD_ROOT
70
71 %{__make} install \
72         DESTDIR=$RPM_BUILD_ROOT
73
74 %clean
75 rm -rf $RPM_BUILD_ROOT
76
77 %post   -p /sbin/ldconfig
78 %postun -p /sbin/ldconfig
79
80 %files
81 %defattr(644,root,root,755)
82 %doc AUTHORS README
83 %attr(755,root,root) %{_libdir}/libamrnb.so.*.*.*
84
85 %files devel
86 %defattr(644,root,root,755)
87 %attr(755,root,root) %{_libdir}/libamrnb.so
88 %{_libdir}/libamrnb.la
89 %{_includedir}/amrnb
90
91 %if %{with static_libs}
92 %files static
93 %defattr(644,root,root,755)
94 %{_libdir}/libamrnb.a
95 %endif
This page took 0.077679 seconds and 3 git commands to generate.