Projects
Multimedia
avidemux3
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 35
View file
avidemux3.spec
Changed
@@ -16,10 +16,11 @@ # -%if 0%{?suse_version} > 1320 || 0%{?is_opensuse} +%if 0%{?suse_version} > 1320 || 0%{?suse_version} == 1315 %bcond_without build_qt5 %define qtversion 5 %else +%bcond_with build_qt5 %define qtversion 4 %endif @@ -57,22 +58,14 @@ BuildRequires: pkgconfig(xmu) BuildRequires: pkgconfig(fontconfig) BuildRequires: pkgconfig(freetype2) -%if 0%{?sles_version} -BuildRequires: sqlite-devel -%else BuildRequires: pkgconfig(sqlite3) -%endif # Sound out BuildRequires: arts-devel BuildRequires: pkgconfig(alsa) BuildRequires: pkgconfig(jack) BuildRequires: pkgconfig(libpulse) -%if 0%{?sles_version} -BuildRequires: libesd-devel -%else BuildRequires: pkgconfig(esound) -%endif # Video out BuildRequires: pkgconfig(sdl) @@ -80,9 +73,7 @@ BuildRequires: pkgconfig(glu) BuildRequires: pkgconfig(vdpau) BuildRequires: pkgconfig(xv) -%if 0%{?suse_version} >= 1310 BuildRequires: pkgconfig(libva) -%endif # Audio Codecs BuildRequires: libfaac-devel @@ -92,16 +83,6 @@ BuildRequires: pkgconfig(ogg) BuildRequires: pkgconfig(fdk-aac) BuildRequires: pkgconfig(samplerate) -%if 0%{?sles_version} -BuildRequires: liba52-devel -BuildRequires: libmad-devel -BuildRequires: libvorbis-devel -BuildRequires: libdca-devel -BuildRequires: libopencore-amr-devel -BuildRequires: libvpx-devel -BuildRequires: libtwolame-devel -BuildRequires: libdcaenc-devel -%else BuildRequires: pkgconfig(liba52) BuildRequires: pkgconfig(mad) BuildRequires: pkgconfig(vorbis) @@ -110,20 +91,13 @@ BuildRequires: pkgconfig(vpx) BuildRequires: pkgconfig(twolame) BuildRequires: pkgconfig(dcaenc) -%endif # Video Codecs BuildRequires: libxvidcore-devel BuildRequires: pkgconfig(libass) -%if 0%{?sles_version} -BuildRequires: libx264-devel -BuildRequires: libx265-devel -%else BuildRequires: pkgconfig(x264) BuildRequires: pkgconfig(x265) -%endif -%if ! 0%{?sles_version} %if %{with build_qt5} # QT5-GUI BuildRequires: cmake(Qt5Core) @@ -136,7 +110,6 @@ # QT4-GUI BuildRequires: pkgconfig(QtCore) >= 4.7 %endif -%endif # Main package requires at least one frontend (cli or qt4) Requires: avidemux3-frontend = %{version}-%{release} @@ -172,7 +145,6 @@ This package provides a command-line interface to editing videos with avidemux. -%if ! 0%{?sles_version} %package qt%{qtversion} Summary: Qt interface for avidemux Group: Productivity/Multimedia/Video/Editors and Convertors @@ -212,16 +184,9 @@ This package provides translations for package avidemux3-qt%{qtversion}. -%endif %prep %setup -q -n avidemux_%{version} -%if 0%{?sles_version} -echo '# This line is mandatory to access the configuration functions' > %{_sourcedir}/avidemux3-rpmlintrc -echo '' >> %{_sourcedir}/avidemux3-rpmlintrc -echo 'from Config import *' >> %{_sourcedir}/avidemux3-rpmlintrc -echo 'addFilter("libdir-macro-in-noarch-package")' >> %{_sourcedir}/avidemux3-rpmlintrc -%endif for i in bash cmake cpp sh sql txt; do find . -name \*.$i -print0 | xargs -0 dos2unix -q done @@ -239,12 +204,6 @@ %build flags+="%optflags -fno-strict-aliasing " -%if 0%{?sles_version} -flags+="-D__STDC_CONSTANT_MACROS " -%ifarch %ix86 -flags+="-fomit-frame-pointer " -%endif -%endif %if 0%{?suse_version} == 1320 %ifarch %ix86 flags+="-fno-stack-protector " @@ -253,28 +212,22 @@ export CXXFLAGS="$flags" options+="--with-cli " -%if 0%{?sles_version} -options+="--without-qt4 " -%else %if %{with build_qt5} options+="--with-qt4 " %else options+="--with-qt4 --enable-qt4 " %endif -%endif ./bootStrap.bash $options %install cp -r install/* %{buildroot} -%if ! 0%{?sles_version} # Install desktop file install -D -m644 %{S:1} %{buildroot}%{_datadir}/applications/avidemux3-qt%{qtversion}.desktop sed -i -e 's|qtversion|%{qtversion}|g' %{buildroot}%{_datadir}/applications/avidemux3-qt%{qtversion}.desktop # Install icon install -D -m644 avidemux_icon.png %{buildroot}%{_datadir}/pixmaps/avidemux3.png -%endif # Install man install -D -m644 man/avidemux.1 %{buildroot}%{_mandir}/man1/avidemux.1 @@ -292,7 +245,6 @@ %postun cli -p /sbin/ldconfig -%if ! 0%{?sles_version} %post qt%{qtversion} /sbin/ldconfig %desktop_database_post @@ -300,7 +252,6 @@ %postun qt%{qtversion} /sbin/ldconfig %desktop_database_postun -%endif %files %defattr(-,root,root) @@ -320,9 +271,7 @@ %{_libdir}/libADM_coreImage6.so %{_libdir}/libADM_coreImageLoader6.so %{_libdir}/libADM_coreJobs.so -%if 0%{?suse_version} >= 1310 %{_libdir}/libADM_coreLibVA6.so -%endif %{_libdir}/libADM_coreMuxer6.so %{_libdir}/libADM_coreScript.so %{_libdir}/libADM_coreSocket6.so @@ -491,7 +440,6 @@ %{_libdir}/ADM_plugins6/videoFilters/cli/libADM_vf_mpdelogoCli.so %{_libdir}/ADM_plugins6/videoFilters/cli/libADM_vf_swscaleResize_cli.so -%if ! 0%{?sles_version} %files qt%{qtversion} %defattr(-,root,root) %{_bindir}/avidemux3_jobs_qt%{qtversion} @@ -533,6 +481,5 @@ %dir %{_datadir}/avidemux3/qt%{qtversion} %dir %{_datadir}/avidemux3/qt%{qtversion}/i18n %{_datadir}/avidemux3/qt%{qtversion}/i18n/*.qm -%endif %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
.