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