]> git.pld-linux.org Git - packages/amrnb.git/blob - amrnb.spec
8642c3deaae19718e0830c346ff459833510981b
[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 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18 %define         specflags       -fno-strict-aliasing
19
20 %description
21 3GPP AMR Floating-point Speech Codec.
22
23 %description -l pl
24 Zmiennoprzecinkowy kodek mowy 3GPP AMR.
25
26 %package devel
27 Summary:        Header files for amrnb library
28 Summary(pl):    Pliki nag³ówkowe biblioteki amrnb
29 Group:          Development/Libraries
30 Requires:       %{name} = %{version}-%{release}
31
32 %description devel
33 Header files for amrnb library.
34
35 %description devel -l pl
36 Pliki nag³ówkowe biblioteki amrnb.
37
38 %package static
39 Summary:        Static amrnb library
40 Summary(pl):    Statyczna biblioteka amrnb
41 Group:          Development/Libraries
42 Requires:       %{name}-devel = %{version}-%{release}
43
44 %description static
45 Static amrnb library.
46
47 %description static -l pl
48 Statyczna biblioteka amrnb.
49
50 %prep
51 %setup -q
52 %patch0 -p1
53
54 %build
55 %configure \
56         %{?with_static_libs:--enable-static}
57
58 %{__make}
59
60 %install
61 rm -rf $RPM_BUILD_ROOT
62
63 %{__make} install \
64         DESTDIR=$RPM_BUILD_ROOT
65
66 %clean
67 rm -rf $RPM_BUILD_ROOT
68
69 %post   -p /sbin/ldconfig
70 %postun -p /sbin/ldconfig
71
72 %files
73 %defattr(644,root,root,755)
74 %doc AUTHORS README
75 %attr(755,root,root) %{_libdir}/libamrnb.so.*.*.*
76
77 %files devel
78 %defattr(644,root,root,755)
79 %attr(755,root,root) %{_libdir}/libamrnb.so
80 %{_libdir}/libamrnb.la
81 %{_includedir}/amrnb
82
83 %if %{with static_libs}
84 %files static
85 %defattr(644,root,root,755)
86 %{_libdir}/libamrnb.a
87 %endif
This page took 0.066525 seconds and 2 git commands to generate.