Lines 3-9
Link Here
|
3 |
|
3 |
|
4 |
Name: avidemux |
4 |
Name: avidemux |
5 |
Version: 2.4.4 |
5 |
Version: 2.4.4 |
6 |
Release: alt1 |
6 |
Release: alt1.0.6 |
7 |
|
7 |
|
8 |
Summary: Avidemux is a graphical AVI files editor |
8 |
Summary: Avidemux is a graphical AVI files editor |
9 |
Summary(ru_RU.KOI8-R): Avidemux -- ÜÔÏ ÒÅÄÁËÔÏÒ AVI-ÆÁÊÌÏ× Ó ÇÒÁÆÉÞÅÓËÉÍ ÉÎÔÅÒÆÅÊÓÏÍ |
9 |
Summary(ru_RU.KOI8-R): Avidemux -- ÜÔÏ ÒÅÄÁËÔÏÒ AVI-ÆÁÊÌÏ× Ó ÇÒÁÆÉÞÅÓËÉÍ ÉÎÔÅÒÆÅÊÓÏÍ |
Lines 21-26
Source2: %name.desktop
Link Here
|
21 |
|
21 |
|
22 |
Patch: %name-2.0.34-test2-alt-gettext.patch |
22 |
Patch: %name-2.0.34-test2-alt-gettext.patch |
23 |
Patch1: avidemux-pld-x264.patch |
23 |
Patch1: avidemux-pld-x264.patch |
|
|
24 |
Patch2: avidemux_2.4.4-alt-i18n-qm-path.patch |
25 |
Patch3: avidemux_2.4.4-alt-libdts.patch |
24 |
|
26 |
|
25 |
%define xvid_ver 1.0.2 |
27 |
%define xvid_ver 1.0.2 |
26 |
%define mjpegtools_ver 1.6.1.90 |
28 |
%define mjpegtools_ver 1.6.1.90 |
Lines 28-33
Patch1: avidemux-pld-x264.patch
Link Here
|
28 |
Obsoletes: avidemux2 |
30 |
Obsoletes: avidemux2 |
29 |
Provides: avidemux2 = %version-%release |
31 |
Provides: avidemux2 = %version-%release |
30 |
|
32 |
|
|
|
33 |
Requires: %name-qui = %version-%release |
31 |
Requires: xvid >= %xvid_ver |
34 |
Requires: xvid >= %xvid_ver |
32 |
BuildPreReq: xvid-devel >= %xvid_ver |
35 |
BuildPreReq: xvid-devel >= %xvid_ver |
33 |
BuildPreReq: mjpegtools-devel >= %mjpegtools_ver |
36 |
BuildPreReq: mjpegtools-devel >= %mjpegtools_ver |
Lines 35-40
BuildPreReq: mjpegtools-devel >= %mjpegt
Link Here
|
35 |
# manual removed: gcc-java imake xorg-cf-files |
38 |
# manual removed: gcc-java imake xorg-cf-files |
36 |
# Automatically added by buildreq on Tue Jul 15 2008 |
39 |
# Automatically added by buildreq on Tue Jul 15 2008 |
37 |
BuildRequires: gcc-c++ libSDL-devel libXt-devel libXv-devel libaften-devel libdca-devel libfaac-devel libfaad-devel libgtk+2-devel liblame-devel libqt4-devel libx264-devel libxml2-devel libxvid-devel |
40 |
BuildRequires: gcc-c++ libSDL-devel libXt-devel libXv-devel libaften-devel libdca-devel libfaac-devel libfaad-devel libgtk+2-devel liblame-devel libqt4-devel libx264-devel libxml2-devel libxvid-devel |
|
|
41 |
BuildRequires: cmake libqt4-devel kde-common-devel rpm-macros-alternatives |
38 |
|
42 |
|
39 |
#BuildRequires: seamonkey-devel |
43 |
#BuildRequires: seamonkey-devel |
40 |
#BuildRequires: firefox firefox-devel |
44 |
#BuildRequires: firefox firefox-devel |
Lines 54-59
Avidemux -- ÜÔÏ ÒÅÄÁËÔÏÒ AVI-ÆÁÊÌÏ× Ó ÇÒ
Link Here
|
54 |
É ÄÏÂÁ×ÌÑÔØ Ë ÎÉÍ Ú×ÕËÏ×ÕÀ ÄÏÒÏÖËÕ, Á ÚÁÔÅÍ ËÏÄÉÒÏ×ÁÔØ × ÆÁÊÌÙ ÓÖÁÔÙÈ |
58 |
É ÄÏÂÁ×ÌÑÔØ Ë ÎÉÍ Ú×ÕËÏ×ÕÀ ÄÏÒÏÖËÕ, Á ÚÁÔÅÍ ËÏÄÉÒÏ×ÁÔØ × ÆÁÊÌÙ ÓÖÁÔÙÈ |
55 |
ÆÏÒÍÁÔÏ×. |
59 |
ÆÏÒÍÁÔÏ×. |
56 |
|
60 |
|
|
|
61 |
%package gui-qt |
62 |
Group: Video |
63 |
Summary: Qt GUI for %name |
64 |
PreReq(post,preun): alternatives >= 0.2 |
65 |
Requires: %name-common = %version-%release |
66 |
Provides: %name-qui = %version-%release |
67 |
Conflicts: %name <= 2.4.4-alt1 |
68 |
%description gui-qt |
69 |
Qt GUI for %name |
70 |
|
71 |
%package gui-gtk |
72 |
Group: Video |
73 |
Summary: GTK GUI for %name |
74 |
PreReq(post,preun): alternatives >= 0.2 |
75 |
Requires: %name-common = %version-%release |
76 |
Provides: %name-qui = %version-%release |
77 |
Conflicts: %name <= 2.4.4-alt1 |
78 |
%description gui-gtk |
79 |
GTK GUI for %name |
80 |
|
81 |
%package common |
82 |
Group: Video |
83 |
Summary: Common files for %name |
84 |
PreReq(post,preun): alternatives >= 0.2 |
85 |
Provides: %name-qui = %version-%release |
86 |
Conflicts: %name <= 2.4.4-alt1 |
87 |
%description common |
88 |
Common files for %name |
89 |
|
57 |
%prep |
90 |
%prep |
58 |
%ifdef pre |
91 |
%ifdef pre |
59 |
%setup -q -n %{name}_%version%pre |
92 |
%setup -q -n %{name}_%version%pre |
Lines 61-84
Avidemux -- ÜÔÏ ÒÅÄÁËÔÏÒ AVI-ÆÁÊÌÏ× Ó ÇÒ
Link Here
|
61 |
%setup -q |
94 |
%setup -q |
62 |
%endif |
95 |
%endif |
63 |
#patch1 -p1 |
96 |
#patch1 -p1 |
|
|
97 |
%patch2 -p1 |
98 |
%patch3 -p1 |
64 |
|
99 |
|
65 |
%build |
100 |
%build |
66 |
make -f Makefile.dist |
101 |
%K4cmake \ |
67 |
%configure \ |
102 |
-DUSE_ARTS:BOOL=FALSE \ |
68 |
--with-jsapi-include=%_includedir/xulrunner/stable/ \ |
103 |
-DUSE_ESD:BOOL=FALSE |
69 |
--x-libraries="%_x11libdir" \ |
104 |
%K4make |
70 |
--without-esd --without-arts \ |
|
|
71 |
--disable-warnings |
72 |
# non-SMP build due po dir in hasher |
73 |
%make_build || %make |
74 |
|
105 |
|
75 |
%install |
106 |
%install |
76 |
%makeinstall_std |
107 |
%K4install |
77 |
|
108 |
|
78 |
install -pD -m644 %SOURCE1 %buildroot%_pixmapsdir/%name.png |
109 |
install -pD -m644 %SOURCE1 %buildroot%_pixmapsdir/%name.png |
79 |
install -pD -m644 %SOURCE2 %buildroot%_desktopdir/%name.desktop |
110 |
install -pD -m644 %SOURCE2 %buildroot%_desktopdir/%name.desktop |
80 |
ln -s avidemux2_gtk %buildroot%_bindir/%name |
111 |
ln -s avidemux2_gtk %buildroot%_bindir/%name |
81 |
|
112 |
|
|
|
113 |
mkdir -p %buildroot/%_altdir |
114 |
WEIGHT=10 |
115 |
for i in cli gtk qt4 |
116 |
do |
117 |
cat >%buildroot/%_altdir/%{name}_$i<<EOF |
118 |
%_bindir/%name %_bindir/%{name}2_$i $WEIGHT |
119 |
EOF |
120 |
((WEIGHT+=10)) |
121 |
done |
122 |
|
82 |
%find_lang %name |
123 |
%find_lang %name |
83 |
|
124 |
|
84 |
%post |
125 |
%post |
Lines 87-98
ln -s avidemux2_gtk %buildroot%_bindir/%
Link Here
|
87 |
%postun |
128 |
%postun |
88 |
%clean_menus |
129 |
%clean_menus |
89 |
|
130 |
|
90 |
%files -f %name.lang |
131 |
%files |
91 |
%_bindir/%name |
132 |
%_desktopdir/%name.desktop |
92 |
%_bindir/avidemux2_cli |
133 |
|
|
|
134 |
%files gui-gtk -f %name.lang |
93 |
%_bindir/avidemux2_gtk |
135 |
%_bindir/avidemux2_gtk |
|
|
136 |
%_altdir/avidemux_gtk |
137 |
|
138 |
%files gui-qt |
139 |
%_bindir/avidemux2_qt4 |
140 |
%_altdir/avidemux_qt4 |
141 |
%_datadir/qt4/translations/avidemux_*.qm |
142 |
|
143 |
%files common |
144 |
%ghost %_bindir/%name |
145 |
%_bindir/avidemux2_cli |
146 |
%_altdir/avidemux_cli |
94 |
%_pixmapsdir/* |
147 |
%_pixmapsdir/* |
95 |
%_desktopdir/%name.desktop |
|
|
96 |
|
148 |
|
97 |
%changelog |
149 |
%changelog |
98 |
* Sat Mar 21 2009 Vitaly Lipatov <lav@altlinux.ru> 2.4.4-alt1 |
150 |
* Sat Mar 21 2009 Vitaly Lipatov <lav@altlinux.ru> 2.4.4-alt1 |