mirror of
https://abf.rosa.ru/djam/handbrake.git
synced 2025-02-23 16:52:51 +00:00
LOG Add patch to make more strings translatable, minor spec cleanups
This commit is contained in:
parent
0c0611e099
commit
8dd12dfaae
2 changed files with 116 additions and 29 deletions
93
HandBrake-0.9.9-fixghb.patch
Normal file
93
HandBrake-0.9.9-fixghb.patch
Normal file
|
@ -0,0 +1,93 @@
|
|||
diff -urN HandBrake-0.9.9/gtk/src/ghb.ui HandBrake-0.9.9-patched/gtk/src/ghb.ui
|
||||
--- HandBrake-0.9.9/gtk/src/ghb.ui 2013-02-20 20:07:46.000000000 +0400
|
||||
+++ HandBrake-0.9.9-patched/gtk/src/ghb.ui 2013-07-14 10:33:37.000000000 +0400
|
||||
@@ -411,7 +411,7 @@
|
||||
<object class="GtkAction" id="source_action">
|
||||
<property name="stock_id">gtk-open</property>
|
||||
<property name="name">source_action</property>
|
||||
- <property name="label">_Source</property>
|
||||
+ <property name="label" translatable="yes">_Source</property>
|
||||
<signal handler="source_button_clicked_cb" name="activate"/>
|
||||
</object>
|
||||
</child>
|
||||
@@ -419,7 +419,7 @@
|
||||
<object class="GtkAction" id="source_single_action">
|
||||
<property name="stock_id">gtk-open</property>
|
||||
<property name="name">source_single_action</property>
|
||||
- <property name="label">Single _Title</property>
|
||||
+ <property name="label" translatable="yes">Single _Title</property>
|
||||
<signal handler="single_title_source_cb" name="activate"/>
|
||||
</object>
|
||||
</child>
|
||||
@@ -427,7 +427,7 @@
|
||||
<object class="GtkAction" id="destination1">
|
||||
<property name="stock_id">gtk-save-as</property>
|
||||
<property name="name">destination1</property>
|
||||
- <property name="label">_Destination</property>
|
||||
+ <property name="label" translatable="yes">_Destination</property>
|
||||
<signal handler="destination_browse_clicked_cb" name="activate"/>
|
||||
</object>
|
||||
</child>
|
||||
@@ -456,7 +456,7 @@
|
||||
<property name="sensitive">False</property>
|
||||
<property name="icon-name">hb-add-queue</property>
|
||||
<property name="name">queue_add_menu</property>
|
||||
- <property name="label">_Add Queue</property>
|
||||
+ <property name="label" translatable="yes">_Add Queue</property>
|
||||
<signal handler="queue_add_clicked_cb" name="activate"/>
|
||||
</object>
|
||||
</child>
|
||||
@@ -465,7 +465,7 @@
|
||||
<property name="sensitive">False</property>
|
||||
<property name="icon-name">hb-add-queue</property>
|
||||
<property name="name">queue_add_all_menu</property>
|
||||
- <property name="label">Add A_ll Queue</property>
|
||||
+ <property name="label" translatable="yes">Add A_ll Queue</property>
|
||||
<signal handler="queue_add_all_clicked_cb" name="activate"/>
|
||||
</object>
|
||||
</child>
|
||||
@@ -474,7 +474,7 @@
|
||||
<property name="sensitive">False</property>
|
||||
<property name="icon-name">hb-start</property>
|
||||
<property name="name">queue_start_menu</property>
|
||||
- <property name="label">_Start Queue</property>
|
||||
+ <property name="label" translatable="yes">_Start Queue</property>
|
||||
<signal handler="queue_start_clicked_cb" name="activate"/>
|
||||
</object>
|
||||
</child>
|
||||
@@ -604,7 +604,7 @@
|
||||
<object class="GtkMenu" id="presets_menu">
|
||||
<child>
|
||||
<object class="GtkImageMenuItem" id="presets_default">
|
||||
- <property name="label">_Make Default</property>
|
||||
+ <property name="label" translatable="yes">_Make Default</property>
|
||||
<property name="image">image12</property>
|
||||
<property name="visible">True</property>
|
||||
<property name="use_underline">True</property>
|
||||
@@ -2551,7 +2551,7 @@
|
||||
<property name="visible">True</property>
|
||||
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
|
||||
<property name="expanded">False</property>
|
||||
- <property name="label">Advanced</property>
|
||||
+ <property name="label" translatable="yes">Advanced</property>
|
||||
<child>
|
||||
<object class="GtkVBox" id="vbox44">
|
||||
<property name="visible">True</property>
|
||||
@@ -3274,7 +3274,7 @@
|
||||
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
|
||||
<property name="tooltip-text" translatable="yes">Add new subtitle to the list</property>
|
||||
<property name="relief">GTK_RELIEF_NONE</property>
|
||||
- <property name="label">Subtitle</property>
|
||||
+ <property name="label" translatable="yes">Subtitle</property>
|
||||
<property name="image">subtitle_add_image</property>
|
||||
<signal handler="subtitle_add_clicked_cb" name="clicked"/>
|
||||
</object>
|
||||
@@ -3290,7 +3290,7 @@
|
||||
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
|
||||
<property name="tooltip-text" translatable="yes">Add new SRT subtitle to the list</property>
|
||||
<property name="relief">GTK_RELIEF_NONE</property>
|
||||
- <property name="label">Import SRT</property>
|
||||
+ <property name="label" translatable="yes">Import SRT</property>
|
||||
<property name="image">srt_add_image</property>
|
||||
<signal handler="srt_add_clicked_cb" name="clicked"/>
|
||||
</object>
|
|
@ -1,26 +1,22 @@
|
|||
%define lname HandBrake
|
||||
|
||||
%define major 1
|
||||
%define libname %mklibname %{name} %{major}
|
||||
%define libnamedev %mklibname %{name} %{major} -d
|
||||
|
||||
Summary: MPEG-AVC(H.264)/MPEG-4 converter
|
||||
Name: handbrake
|
||||
Version: 0.9.9
|
||||
Release: 1
|
||||
Release: 2
|
||||
License: GPLv2+
|
||||
Group: Video
|
||||
URL: http://handbrake.fr/
|
||||
Url: http://handbrake.fr/
|
||||
Source0: %{lname}-%{version}.tar.bz2
|
||||
BuildRequires: yasm
|
||||
BuildRequires: zlib1-devel
|
||||
BuildRequires: bzip2-devel
|
||||
Patch0: HandBrake-0.9.9-fixghb.patch
|
||||
BuildRequires: intltool
|
||||
BuildRequires: svn
|
||||
BuildRequires: iso-codes
|
||||
BuildRequires: valgrind
|
||||
BuildRequires: libtool
|
||||
BuildRequires: libgstreamer0.10-plugins-base-devel
|
||||
BuildRequires: svn
|
||||
BuildRequires: valgrind
|
||||
BuildRequires: yasm
|
||||
BuildRequires: bzip2-devel
|
||||
BuildRequires: pkgconfig(gstreamer-plugins-base-0.10)
|
||||
BuildRequires: pkgconfig(theora)
|
||||
BuildRequires: pkgconfig(libgtkhtml-3.14)
|
||||
BuildRequires: pkgconfig(libnotify)
|
||||
|
@ -30,16 +26,18 @@ BuildRequires: pkgconfig(gudev-1.0)
|
|||
BuildRequires: pkgconfig(libass)
|
||||
BuildRequires: pkgconfig(vorbis)
|
||||
BuildRequires: pkgconfig(samplerate)
|
||||
BuildRequires: pkgconfig(zlib)
|
||||
|
||||
%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.
|
||||
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.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{lname}-%{version}
|
||||
%patch0 -p1
|
||||
#fix encoding of non-utf8 files
|
||||
#doesn't work, iconv detects illegal input sequence, --silent doesn't exist anymoreq
|
||||
#iconv -t utf-8 $RPM_BUILD_DIR/%lname-%version/CREDITS
|
||||
|
@ -51,16 +49,14 @@ computers, media centers, and portable electronic devices.
|
|||
./configure --prefix=%{_prefix} --launch --launch-jobs=0 --enable-ff-mpeg2
|
||||
|
||||
cd build && make
|
||||
cd .
|
||||
|
||||
%install
|
||||
cd build
|
||||
%makeinstall_std
|
||||
%makeinstall_std -C build
|
||||
|
||||
install -m 0755 HandBrakeCLI %{buildroot}/%{_bindir}/HandBrakeCLI
|
||||
cd %{buildroot}/%{_bindir}
|
||||
install -m 0755 build/HandBrakeCLI %{buildroot}%{_bindir}/HandBrakeCLI
|
||||
pushd %{buildroot}%{_bindir}
|
||||
ln -s ./HandBrakeCLI ./handbrake
|
||||
cd -
|
||||
popd
|
||||
|
||||
sed -i -e "s|hb-icon|hb-icon.png|" %{buildroot}%{_datadir}/applications/ghb.desktop
|
||||
|
||||
|
@ -72,10 +68,8 @@ desktop-file-install --vendor="" \
|
|||
|
||||
rm -rf %{buildroot}%{_datadir}/icons/hicolor/icon-theme.cache
|
||||
|
||||
%clean
|
||||
|
||||
%files
|
||||
%doc AUTHORS COPYING CREDITS NEWS THANKS TRANSLATIONS
|
||||
%_bindir/*
|
||||
%_datadir/applications/*
|
||||
%_datadir/icons/hicolor/*/apps/hb-icon.png
|
||||
%{_bindir}/*
|
||||
%{_datadir}/applications/*
|
||||
%{_datadir}/icons/hicolor/*/apps/hb-icon.png
|
||||
|
|
Loading…
Add table
Reference in a new issue