File faac.spec of Package faac

90
 
1
#
2
# spec file for package faac
3
#
4
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
5
# Copyright (c) 2013 Marguerite Su <marguerite@opensuse.org>
6
#
7
# All modifications and additions to the file contributed by third parties
8
# remain the property of their copyright owners, unless otherwise agreed
9
# upon. The license for this file, and modifications and additions to the
10
# file, is the same license as for the pristine package itself (unless the
11
# license for the pristine package is not an Open Source License, in which
12
# case the license is the MIT License). An "Open Source License" is a
13
# license that conforms to the Open Source Definition (Version 1.9)
14
# published by the Open Source Initiative.
15
16
# Please submit bugfixes or comments via http://bugs.opensuse.org/
17
#
18
19
%define so_name libfaac0
20
21
Name:           faac
22
Version:        1.31
23
Release:        0
24
Summary:        Frontend for encoding MPEG2/4 AAC
25
# Original Code was free to use but restricted. Modifications are LGPL-2.1+
26
License:        SUSE-Freeware and LGPL-2.1+
27
Url:            https://github.com/knik0/faac
28
Source0:        %name-%version.tar
29
Source99:       baselibs.conf
30
BuildRequires:  autoconf
31
BuildRequires:  automake
32
BuildRequires:  libtool
33
BuildRequires:  gcc-c++
34
Requires:       %so_name = %version-%release
35
36
%description
37
FAAC is a LC, MAIN and LTP profile, MPEG2 and MPEG-4 AAC encoder, completely
38
written from scratch.
39
40
%package -n %so_name
41
Summary:        Shared library part of faac
42
43
%description -n %so_name
44
FAAC is a LC, MAIN and LTP profile, MPEG2 and MPEG-4 AAC encoder, completely
45
written from scratch.
46
Shared library part of faac
47
48
%package devel
49
Summary:        Header files and static library for the faac library
50
Requires:       %so_name = %version-%release
51
Provides:       libfaac-devel = %version-%release
52
53
%description devel
54
FAAC is a LC, MAIN and LTP profile, MPEG2 and MPEG-4 AAC encoder, completely
55
written from scratch.
56
Header files and static library for the faac library
57
58
%prep
59
%autosetup -p1
60
61
%build
62
sed -i~ 's@2.71@2.69@' configure.ac
63
diff -u "$_"~ "$_" && exit 1
64
bash bootstrap
65
%configure --enable-shared \
66
           --disable-static
67
%make_build
68
69
%install
70
%make_install
71
find %buildroot -type f -name "*.la" -delete -print
72
73
%ldconfig_scriptlets -n %so_name
74
75
%files
76
%doc AUTHORS ChangeLog README
77
%license COPYING
78
%_bindir/*
79
%_mandir/man1/faac.1%{ext_man}
80
81
%files -n %so_name
82
%_libdir/*.so.*
83
84
%files devel
85
%_libdir/*.so
86
%_libdir/pkgconfig/*.pc
87
%_includedir/*
88
89
%changelog
90