Projects
Multimedia
aften
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 4
View file
aften.spec
Changed
@@ -4,22 +4,18 @@ # # Please submit bugfixes or comments to toni@links2linux.de -# norootforbuild - -%define _prefix /usr Name: aften Summary: A/52 audio encoder - creates stereo and multi-channel audio streams Version: 0.0.8.git20110104 -Release: 1 +Release: 0 License: LGPL-2.1 -Group: Productivity/Multimedia/Sound/Utilities -Url: http://aften.sourceforge.net/ +URL: http://aften.sourceforge.net/ Source: aften-%{version}.tar.gz +Patch0: %name.patch BuildRequires: cmake BuildRequires: gcc-c++ BuildRequires: yasm -BuildRoot: %{_tmppath}/%{name}-%{version}-build %description Aften: A/52 audio encoder based on FFmpeg. @@ -54,55 +50,31 @@ Shared libraies for aften. %prep -%setup -q -n %{name}-%{version} -%__chmod 644 Changelog COPYING README +%autosetup -p1 %build -%__mkdir -p build -pushd build - cmake .. \ - -DCMAKE_INSTALL_PREFIX:STRING=%{_prefix} \ - -DSHARED=1 \ - -DBINDINGS_CXX=1 - - # fix for x86_64 build - %__sed -i -e "s|{CMAKE_INSTALL_PREFIX}/lib|{CMAKE_INSTALL_PREFIX}/%{_lib}|g" \ - cmake_install.cmake - - %__make %{?jobs:-j%{jobs}} -popd +chmod -c 644 COPYING +%cmake \ + -DSHARED=1 \ + -DBINDINGS_CXX=1 \ + %nil +%cmake_build %install -pushd build - %makeinstall \ - DESTDIR=%{buildroot} -popd - -%__install -m 644 build/libaften*.a \ - %{buildroot}%{_libdir} - -%clean - -d %{buildroot} -a "%{buildroot}" != "" && %__rm -rf %{buildroot} - -%post -n libaften0 -p /sbin/ldconfig +%cmake_install -%postun -n libaften0 -p /sbin/ldconfig +%ldconfig_scriptlets -n libaften0 %files -%defattr(-, root, root) -%doc Changelog COPYING README +%license COPYING %{_bindir}/* %files -n libaften0 -%defattr(-, root, root) %{_libdir}/libaften.so.* %{_libdir}/libaftenxx.so.* %files -n libaften-devel -%defattr(-, root, root) -%dir %{_includedir}/aften/ -%{_includedir}/aften/*.h -%{_libdir}/libaften*.a +%{_includedir}/aften %{_libdir}/libaften.so %{_libdir}/libaftenxx.so
View file
aften.patch
Added
@@ -0,0 +1,13 @@ +--- + CMakeLists.txt | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -1,5 +1,5 @@ + # CMake project file by Prakash Punnoor +-CMAKE_MINIMUM_REQUIRED(VERSION 2.4) ++CMAKE_MINIMUM_REQUIRED(VERSION 3.21) + + IF(COMMAND cmake_policy) + cmake_policy(SET CMP0003 NEW)
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
.