Name: l-smash Version: 2.14.5 Release: 1%{?dist} Summary: l-smash - MP4 muxer and other tools Group: Applications/System License: MIT license URL: http://l-smash.github.io/l-smash/ %undefine _disable_source_fetch Source0: https://github.com/l-smash/l-smash/archive/v%{version}.tar.gz Packager: VU DUY HOANG %define debug_package %nil Requires: %{name}-devel = %{version} %description MP4 muxer and other tools %package devel Summary: Development tools for the l-smash Group: System Environment Provides: liblsmash.so.2 Provides: liblsmash.so.2()(64bit) Provides: liblsmash.so.2(LSMASH_2)(64bit) %description devel The libraries, header files and documentation for using l-smash %prep %setup -q %build CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{_prefix} --libdir=%{_libdir} --enable-shared --disable-static make %{?_smp_mflags} %install [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT make DESTDIR=$RPM_BUILD_ROOT install rm $RPM_BUILD_ROOT%{_libdir}/liblsmash.so #ln -sf liblsmash.so.2 liblsmash.so %post devel if [ $1 == 1 ];then cd %{_libdir} ln -sf liblsmash.so.2 liblsmash.so /sbin/ldconfig fi %postun devel if [ $1 == 0 ];then rm -rf %{_libdir}/liblsmash.so /sbin/ldconfig fi %clean [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT %files %license LICENSE /usr/bin/boxdumper /usr/bin/muxer /usr/bin/remuxer /usr/bin/timelineeditor %files devel %{_includedir}/lsmash.h %{_libdir}/liblsmash.so.2 %{_libdir}/pkgconfig/liblsmash.pc