Sophie

Sophie

distrib > Mageia > 3 > i586 > media > core-release-src > by-pkgid > e730e60d100c03b5103c010e7aa2175d > files > 1

mediainfo-0.7.61-2.mga3.src.rpm

Name:		mediainfo
Version:	0.7.61
Release:	%mkrel 2
Summary:	Supplies technical and tag information about a video or audio file
Group:		Sound/Utilities
License:	GPL+
URL:		http://mediainfo.sourceforge.net/
Source0:	http://downloads.sourceforge.net/%{name}/%{name}_%{version}.tar.bz2
Patch0:		mediainfo_0.7.57-fix-qtgui-build.patch
BuildRequires:	dos2unix
BuildRequires:	mediainfo-devel
BuildRequires:	libzen-devel
BuildRequires:	pkgconfig
BuildRequires:	wxgtku2.8-devel
BuildRequires: 	zlib-devel
BuildRequires:	qt4-devel
BuildRequires:	imagemagick

%description
MediaInfo supplies technical and tag information about a video or audio file.

What information can I get from MediaInfo?
* General: title, author, director, album, track number, date, duration...
* Video: codec, aspect, fps, bitrate...
* Audio: codec, sample rate, channels, language, bitrate...
* Text: language of subtitle
* Chapters: number of chapters, list of chapters

DivX, XviD, H263, H.263, H264, x264, ASP, AVC, iTunes, MPEG-1,
MPEG1, MPEG-2, MPEG2, MPEG-4, MPEG4, MP4, M4A, M4V, QuickTime,
RealVideo, RealAudio, RA, RM, MSMPEG4v1, MSMPEG4v2, MSMPEG4v3,
VOB, DVD, WMA, VMW, ASF, 3GP, 3GPP, 3GP2

What format (container) does MediaInfo support?
* Video: MKV, OGM, AVI, DivX, WMV, QuickTime, Real, MPEG-1,
  MPEG-2, MPEG-4, DVD (VOB) (Codecs: DivX, XviD, MSMPEG4, ASP,
  H.264, AVC...)
* Audio: OGG, MP3, WAV, RA, AC3, DTS, AAC, M4A, AU, AIFF
* Subtitles: SRT, SSA, ASS, SAMI

%package gui-wx
Summary:	wx-based GUI for %{name}
Group:		Sound/Utilities
Requires:	%{name}-gui-common = %{version}-%{release}
Provides:	%{name}-gui = %{version}-%{release}

%description gui-wx
wx-based graphical user interface for %{name}.

%package gui-qt
Summary:        Qt-based GUI for %{name}
Group:          Sound/Utilities
Requires:	%{name}-gui-common = %{version}-%{release}
Provides:	%{name}-gui = %{version}-%{release}

%description gui-qt
Qt-based graphical user interface for %{name}.

%package gui-common
Summary:        Common files for %{name} GUIs
Group:          Sound/Utilities
BuildArch:	noarch

%description gui-common
Common files for %{name} GUI packages.

%prep
%setup -q -n MediaInfo
%patch0 -p0 -b .buildfix

# fix EOLs and rights
dos2unix License.html History_*.txt 
chmod 644 *.html *.txt Release/*.txt

%build
# build CLI
pushd Project/GNU/CLI
	autoreconf -vfi
	%configure2_5x --disable-static
	%make
popd

# build GUI
pushd Project/GNU/GUI
	autoreconf -vfi
	%configure2_5x --disable-static
	%make
popd

# build Qt based GUI
pushd Project/QMake/GUI
	%qmake_qt4
	%make
popd

%install
rm -rf %{buildroot}
pushd Project/GNU/CLI
	%makeinstall_std
popd

pushd Project/GNU/GUI
	%makeinstall_std
popd

pushd Project/QMake/GUI
	%makeinstall_std INSTALL_ROOT=%{buildroot}
popd

# icon
install -Dm 644 Source/Resource/Image/MediaInfo.png \
	%{buildroot}%{_datadir}/icons/hicolor/256x256/apps/%{name}.png

for i in 16 32 48 64 128; do
	mkdir -p %{buildroot}%{_datadir}/icons/hicolor/${i}x${i}/apps/
	convert -scale ${i} Source/Resource/Image/MediaInfo.png %{buildroot}%{_datadir}/icons/hicolor/${i}x${i}/apps/%{name}.png
done

# menu-entry
mkdir -p %{buildroot}/%{_datadir}/applications/
cat > %{buildroot}/%{_datadir}/applications/%{_real_vendor}-%{name}-wx.desktop << EOF
[Desktop Entry]
Type=Application
Name=MediaInfo
Comment=Supplies technical and tag information about a video or audio file
Icon=%{name}
Exec=%{name}-wx %f
Terminal=false
Categories=AudioVideo;AudioVideoEditing;GTK;
EOF

mkdir -p %{buildroot}/%{_datadir}/applications/
cat > %{buildroot}/%{_datadir}/applications/%{_real_vendor}-%{name}-qt.desktop << EOF
[Desktop Entry]
Type=Application
Name=MediaInfo
Comment=Supplies technical and tag information about a video or audio file
Icon=%{name}
Exec=%{name}-qt %f
Terminal=false
Categories=AudioVideo;AudioVideoEditing;Qt;
EOF

#service menu for KDE4
install -Dm644 ./Project/GNU/GUI/mediainfo-gui.kde4.desktop \
	%{buildroot}%{_datadir}/kde4/services/ServiceMenus/%{name}-qt.desktop

#fix service menu
sed -i -e 's|\(^Exec=\).*|\1kdialog -msgbox "$\(mediainfo-qt %u\)"|g' %{buildroot}%{_datadir}/kde4/services/ServiceMenus/%{name}-qt.desktop
sed -i -e 's|%{name}-gui|%{name}-qt|g' %{buildroot}%{_datadir}/kde4/services/ServiceMenus/%{name}-qt.desktop

#fix binary name
mv %{buildroot}%{_bindir}/%{name}-gui %{buildroot}%{_bindir}/%{name}-wx

%files
%doc Release/ReadMe_CLI_Linux.txt
%doc License.html History_CLI.txt
%{_bindir}/mediainfo

%files gui-wx
%doc Release/ReadMe_GUI_Linux.txt
%doc License.html History_GUI.txt
%{_bindir}/%{name}-wx
%{_datadir}/applications/%{_real_vendor}-%{name}-wx.desktop

%files gui-common
%{_datadir}/icons/hicolor/*/apps/*.png

%files gui-qt
%{_bindir}/%{name}-qt
%{_datadir}/applications/%{_real_vendor}-%{name}-qt.desktop
%{_datadir}/kde4/services/ServiceMenus/%{name}-qt.desktop


%changelog

* Sat Jan 12 2013 umeabot <umeabot> 0.7.61-2.mga3
+ Revision: 359890
- Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild

* Wed Nov 07 2012 fwang <fwang> 0.7.61-1.mga3
+ Revision: 315934
- update rpm group
- new version 0.7.61

* Mon Sep 03 2012 wally <wally> 0.7.60-1.mga3
+ Revision: 287652
- new version 0.7.60

* Sat Aug 11 2012 wally <wally> 0.7.59-1.mga3
+ Revision: 280541
- new version 0.7.59

* Sat Jun 02 2012 wally <wally> 0.7.58-1.mga3
+ Revision: 253442
- new version 0.7.58

* Tue May 29 2012 luigiwalser <luigiwalser> 0.7.57-1.mga3
+ Revision: 248858
- 0.7.57
- rediff patch0

* Thu Feb 02 2012 wally <wally> 0.7.53-1.mga2
+ Revision: 204078
- new version 0.7.53
- rediff P0

* Sat Dec 24 2011 wally <wally> 0.7.52-1.mga2
+ Revision: 187207
- new version 0.7.52

* Fri Nov 11 2011 wally <wally> 0.7.51-1.mga2
+ Revision: 166781
- new version 0.7.51
- redo P0

* Tue Sep 27 2011 wally <wally> 0.7.50-1.mga2
+ Revision: 149630
- new version 0.7.50
- new version 0.7.48
- add service menu entry for KDE4 (mga#2402)

  + ahmad <ahmad>
    - Rebuild against wxgtk2.8 with enabled catch_segvs

* Mon Jul 18 2011 wally <wally> 0.7.47-1.mga2
+ Revision: 125992
- new version 0.7.47
- new version 0.7.46

* Sun Jun 19 2011 wally <wally> 0.7.45-1.mga2
+ Revision: 109993
- fix summaries and descriptions for GUI packages
- imported package mediainfo