]> git.pld-linux.org Git - packages/amrnb.git/blob - amrnb.spec
- it isn't LGPL in any way
[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:        2
10 # AUTHORS specifies "License unknown", 26104-610.doc in original sources says:
11 # Copyright Notification
12 # No part may be reproduced except as authorized by written permission.
13 # The copyright and the foregoing restriction extend to reproduction in all media.
14 # (c) 2004, 3GPP Organizational Partners (ARIB, CCSA, ETSI, T1, TTA, TTC).
15 # All rights reserved.
16 License:        restricted
17 Group:          Libraries
18 # autotooled version of http://www.3gpp.org/ftp/Specs/latest/Rel-6/26_series/26104-610.zip
19 Source0:        http://ronald.bitfreak.net/priv/%{name}-%{version}.tar.gz
20 # Source0-md5:  c4546d2920cf287847a7286b4dea7472
21 Patch0:         %{name}-inttypes.patch
22 URL:            http://www.3gpp.org/
23 BuildRequires:  autoconf >= 2.50
24 BuildRequires:  automake
25 BuildRequires:  libtool
26 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28 %define         specflags       -fno-strict-aliasing
29
30 %description
31 3GPP AMR Floating-point Speech Codec.
32
33 %description -l pl
34 Zmiennoprzecinkowy kodek mowy 3GPP AMR.
35
36 %package devel
37 Summary:        Header files for amrnb library
38 Summary(pl):    Pliki nag³ówkowe biblioteki amrnb
39 Group:          Development/Libraries
40 Requires:       %{name} = %{version}-%{release}
41
42 %description devel
43 Header files for amrnb library.
44
45 %description devel -l pl
46 Pliki nag³ówkowe biblioteki amrnb.
47
48 %package static
49 Summary:        Static amrnb library
50 Summary(pl):    Statyczna biblioteka amrnb
51 Group:          Development/Libraries
52 Requires:       %{name}-devel = %{version}-%{release}
53
54 %description static
55 Static amrnb library.
56
57 %description static -l pl
58 Statyczna biblioteka amrnb.
59
60 %prep
61 %setup -q
62 %patch0 -p1
63
64 %build
65 %{__libtoolize}
66 %{__aclocal}
67 %{__autoconf}
68 %{__autoheader}
69 %{__automake}
70 %configure \
71         %{?with_static_libs:--enable-static}
72
73 %{__make}
74
75 %install
76 rm -rf $RPM_BUILD_ROOT
77
78 %{__make} install \
79         DESTDIR=$RPM_BUILD_ROOT
80
81 %clean
82 rm -rf $RPM_BUILD_ROOT
83
84 %post   -p /sbin/ldconfig
85 %postun -p /sbin/ldconfig
86
87 %files
88 %defattr(644,root,root,755)
89 %doc AUTHORS README
90 %attr(755,root,root) %{_libdir}/libamrnb.so.*.*.*
91
92 %files devel
93 %defattr(644,root,root,755)
94 %attr(755,root,root) %{_libdir}/libamrnb.so
95 %{_libdir}/libamrnb.la
96 %{_includedir}/amrnb
97
98 %if %{with static_libs}
99 %files static
100 %defattr(644,root,root,755)
101 %{_libdir}/libamrnb.a
102 %endif
This page took 0.052375 seconds and 3 git commands to generate.