mirror of
https://abf.rosa.ru/djam/handbrake.git
synced 2025-02-24 09:12:51 +00:00
108 lines
2.9 KiB
RPMSpec
108 lines
2.9 KiB
RPMSpec
%define _enable_debug_packages %{nil}
|
|
%define debug_package %{nil}
|
|
|
|
%define gstapi 1.0
|
|
%define lname HandBrake
|
|
|
|
Summary: MPEG-AVC(H.264)/MPEG-4 converter
|
|
Name: handbrake
|
|
Version: 0.10.1
|
|
Release: 2
|
|
License: GPLv2+
|
|
Group: Video
|
|
Url: http://handbrake.fr/
|
|
Source0: %{lname}-%{version}.tar.bz2
|
|
Source1: download.tar.bz2
|
|
Source2: LINGUAS_ru.tar.gz
|
|
BuildRequires: intltool
|
|
BuildRequires: iso-codes
|
|
BuildRequires: libtool
|
|
BuildRequires: svn
|
|
BuildRequires: cmake
|
|
BuildRequires: valgrind
|
|
BuildRequires: yasm
|
|
BuildRequires: bzip2-devel
|
|
BuildRequires: ffmpeg-devel
|
|
BuildRequires: jansson-devel
|
|
BuildRequires: liblame-devel
|
|
BuildRequires: pkgconfig(gstreamer-%{gstapi})
|
|
BuildRequires: pkgconfig(gstreamer-plugins-base-%{gstapi})
|
|
BuildRequires: pkgconfig(gthread-2.0)
|
|
BuildRequires: pkgconfig(gtk+-3.0)
|
|
BuildRequires: pkgconfig(gudev-1.0)
|
|
BuildRequires: pkgconfig(libass)
|
|
BuildRequires: pkgconfig(libgtkhtml-3.14)
|
|
BuildRequires: pkgconfig(libnotify)
|
|
BuildRequires: pkgconfig(samplerate)
|
|
BuildRequires: pkgconfig(theora)
|
|
BuildRequires: pkgconfig(vorbis)
|
|
BuildRequires: pkgconfig(webkit-1.0)
|
|
BuildRequires: pkgconfig(webkitgtk-3.0)
|
|
BuildRequires: pkgconfig(x264)
|
|
BuildRequires: pkgconfig(zlib)
|
|
Suggests: typelib(AppIndicator3)
|
|
Suggests: gstreamer%{gstapi}-libav
|
|
Suggests: gstreamer%{gstapi}-plugins-base
|
|
Suggests: gstreamer%{gstapi}-plugins-good
|
|
Suggests: gstreamer%{gstapi}-plugins-bad
|
|
Suggests: gstreamer%{gstapi}-plugins-ugly
|
|
Suggests: gstreamer%{gstapi}-pulse
|
|
|
|
%description
|
|
HandBrake is an open-source, GPL-licensed, multi-platform,
|
|
multi-threaded MPEG-AVC(x.264)/MPEG-4 converter, available for
|
|
MacOS X, Linux and Windows. It is a video encoder that takes
|
|
your movies and transfers them to a format that's useful on
|
|
your computers, media centers, and portable electronic devices.
|
|
|
|
|
|
%files
|
|
%doc AUTHORS COPYING CREDITS NEWS THANKS TRANSLATIONS
|
|
%{_bindir}/*
|
|
%{_datadir}/applications/*
|
|
%{_datadir}/icons/hicolor/scalable/apps/hb-icon.svg
|
|
%{_datadir}/locale/*/LC_MESSAGES/ghb.mo
|
|
|
|
#----------------------------------------------------------------------------
|
|
|
|
%prep
|
|
%setup -qn %{lname}-%{version}
|
|
|
|
tar xjf %{SOURCE1}
|
|
|
|
pushd gtk/po
|
|
tar -xvzf %{SOURCE2}
|
|
popd
|
|
|
|
|
|
find . -name "Makefile*" -o -name "*.m4" |xargs sed -i -e 's,configure.in,configure.ac,g'
|
|
|
|
%build
|
|
# export CFLAGS="$RPM_OPT_FLAGS"
|
|
# export CXXFLAGS="$RPM_OPT_FLAGS"
|
|
./configure --prefix=%{_prefix} --launch --launch-jobs=0
|
|
|
|
pushd gtk
|
|
autoreconf
|
|
popd
|
|
cd build && make
|
|
|
|
%install
|
|
%makeinstall_std -C build
|
|
%find_lang ghb
|
|
|
|
install -m 0755 build/HandBrakeCLI %{buildroot}%{_bindir}/HandBrakeCLI
|
|
pushd %{buildroot}%{_bindir}
|
|
ln -s ./HandBrakeCLI ./handbrake
|
|
popd
|
|
|
|
sed -i -e "s|hb-icon|hb-icon.png|" %{buildroot}%{_datadir}/applications/ghb.desktop
|
|
|
|
desktop-file-install --vendor="" \
|
|
--remove-category="Application" \
|
|
--add-category="X-MandrivaLinux-Multimedia-Video" \
|
|
--add-category="X-MandrivaLinux-CrossDesktop" \
|
|
--dir %{buildroot}%{_datadir}/applications %{buildroot}%{_datadir}/applications/*
|
|
|
|
rm -rf %{buildroot}%{_datadir}/icons/hicolor/icon-theme.cache
|
|
|