diff --git a/README.md b/README.md index ac534cd..fcbe030 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # fdk-aac +A standalone library of the Fraunhofer FDK AAC code from Android. + diff --git a/fdk-aac.spec b/fdk-aac.spec new file mode 100644 index 0000000..a623676 --- /dev/null +++ b/fdk-aac.spec @@ -0,0 +1,77 @@ +Name: fdk-aac +Version: 2.0.2 +Release: 1mamba +Summary: A standalone library of the Fraunhofer FDK AAC code from Android +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://sourceforge.net/projects/opencore-amr/ +Source: https://github.com/mstorsjo/fdk-aac.git/v%{version}/fdk-aac-%{version}.tar.bz2 +License: Apache License 2.0 +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libgcc +BuildRequires: libstdc++6-devel +## AUTOBUILDREQ-END +BuildRequires: cmake +Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} + +%description +A standalone library of the Fraunhofer FDK AAC code from Android. + +%package -n lib%{name} +Group: System/Libraries +Summary: A standalone library of the Fraunhofer FDK AAC code from Android + +%description -n lib%{name} +A standalone library of the Fraunhofer FDK AAC code from Android. +This package contains shared libraries for %{name}. + +%package -n lib%{name}-devel +Group: Development/Libraries +Summary: Development files for %{name} +Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} +Requires: pkg-config + +%description -n lib%{name}-devel +This package contains libraries and header files for developing applications that use %{name}. + + +%debug_package + +%prep +%setup -q + +%build +%cmake -d build +%make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall -C build + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%post -n lib%{name} -p /sbin/ldconfig +%postun -n lib%{name} -p /sbin/ldconfig + +%files -n lib%{name} +%defattr(-,root,root) +%{_libdir}/libfdk-aac.so.* + +%files -n lib%{name}-devel +%defattr(-,root,root) +%dir %{_includedir}/fdk-aac +%{_includedir}/fdk-aac/*.h +%{_libdir}/libfdk-aac.so +%{_libdir}/pkgconfig/fdk-aac.pc +%dir %{_libdir}/cmake/fdk-aac +%{_libdir}/cmake/fdk-aac/fdk-aac-*.cmake +%doc ChangeLog + + +%changelog +* Sun Feb 13 2022 Silvan Calarco 2.0.2-1mamba +- package created using the webbuild interface