Projects
home:hillwood:branches:Essentials
faac
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Difference Between Revision 2 and
Essentials
/
faac
View file
faac-drm.spec
Added
@@ -0,0 +1,116 @@ +# +# spec file for package faac-drm +# +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2013 Marguerite Su <marguerite@opensuse.org> +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + +%define major 0 +%define lib libfaac-drm +%define libname %{lib}%{major} +%define _name faac + +Name: faac-drm +Version: 1.29.7.8 +Release: 0 +Summary: Frontend for encoding MPEG2/4 AAC +# Original Code was free to use but restricted. Modifications are LGPL-2.1+ +License: SUSE-Freeware and LGPL-2.1+ +Group: Productivity/Multimedia/Video/Editors and Convertors +Url: http://www.audiocoding.com/ +Source0: https://sourceforge.net/projects/faac/files/faac-src/faac-1.29/%{_name}-%{version}.tar.gz +Source99: baselibs.conf +# PATCH-FIX-UPSTREAM marguerite@opensuse.org - fix strict-aliasing-punning warning. +Patch0: faac-1.28-strict-aliasing-punning.patch +# PATCH-FIX-UPSTREAM faac-1.29.7.8-disable-sse2.patch hillwood@opensuse.org - fix build for ARM +Patch1: faac-1.29.7.8-disable-sse2.patch +# Use clang instead of gcc if the openSUSE version is Tumbleweed. +# Gcc7 can't build faac on openSUSE Tumbleweed ARM. +%if 0%{?suse_version} > 1320 +BuildRequires: clang +%else +BuildRequires: gcc-c++ +%endif +Requires: %{libname} = %{version} +BuildRoot: %{_tmppath}/%{name}-%{version}-build + +%description +FAAC is a LC, MAIN and LTP profile, MPEG2 and MPEG-4 AAC encoder, completely +written from scratch. + +%package -n %{libname} +Summary: Shared library part of faac +Group: System/Libraries +Provides: %{lib} = %{version} +Obsoletes: %{lib} < %{version} + +%description -n %{libname} +FAAC is a LC, MAIN and LTP profile, MPEG2 and MPEG-4 AAC encoder, completely +written from scratch. +Shared library part of faac + +%package -n %{lib}-devel +Summary: Header files and static library for the faac library +Group: Development/Libraries/C and C++ +Requires: %{libname} = %{version} +Provides: %{libname}-devel = %{version} +Provides: %{name}-devel = %{version} +Obsoletes: %{libname}-devel < %{version} +Obsoletes: %{name}-devel < %{version} + +%description -n %{lib}-devel +FAAC is a LC, MAIN and LTP profile, MPEG2 and MPEG-4 AAC encoder, completely +written from scratch. +Header files and static library for the faac library + +%prep +%setup -q +%patch0 -p1 +%patch1 -p1 + +%build +%if 0%{?suse_version} > 1320 +export CC=clang +export CXX=clang++ +export CFLAGS="%{optflags} -fPIC -fno-strict-aliasing" +%endif +%configure --without-mp4v2 \ + --enable-shared \ + --enable-drm \ + --disable-static +make %{?_smp_mflags} + +%install +%make_install +find %{buildroot} -type f -name "*.la" -delete -print + +%post -n %{libname} -p /sbin/ldconfig +%postun -n %{libname} -p /sbin/ldconfig + +%files +%defattr(-, root, root) +%doc AUTHORS COPYING ChangeLog NEWS README TODO +%{_bindir}/* +%{_mandir}/man1/faac.1%{ext_man} + +%files -n %{libname} +%defattr(-,root,root) +%{_libdir}/*.so.* + +%files -n %{lib}-devel +%defattr(-,root,root) +%{_libdir}/*.so +%{_includedir}/* + +%changelog
View file
faac.spec
Changed
@@ -94,3 +94,4 @@ %_includedir/* %changelog +
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.