Sophie

Sophie

distrib > Mandriva > 10.2 > x86_64 > by-pkgid > b982d2fc682bcde06d3f659d22ebf3ee > files > 2

xvidcap-1.1.3-3mdk.src.rpm

%define name	xvidcap
%define version	1.1.3
%define release 3mdk

Name: 	 	%{name}
Summary: 	Screen capture video recorder
Version: 	%{version}
Release: 	%{release}

Source:		%{name}-%{version}.tar.bz2
URL:		http://xvidcap.sourceforge.net/
License:	GPL
Group:		Video
BuildRoot:	%{_tmppath}/%{name}-buildroot
BuildRequires:	gtk2-devel jpeg-devel png-devel zlib-devel 
Requires:	ffmpeg

%description
xvidcap is a screen capture enabling you to capture videos off your X-Window
desktop for illustration or documentation purposes. It is intended to be a
standards-based alternative to tools like Lotus ScreenCam.

%prep
%setup -q

%build
export CPPFLAGS=-I`pwd`/ffmpeg/libavcodec/
%configure2_5x --with-gtk2 --with-forced-embedded-ffmpeg
%make

%install
rm -rf $RPM_BUILD_ROOT
%makeinstall
rm -fr $RPM_BUILD_ROOT/%_docdir

#menu
mkdir -p $RPM_BUILD_ROOT%{_menudir}
cat << EOF > $RPM_BUILD_ROOT%{_menudir}/%{name}
?package(%{name}): command="gvidcap" icon="video_section.png" needs="x11" title="XVidCap" longtitle="Screen Capture Video Recorder" section="Multimedia/Video"
EOF

%clean
rm -rf $RPM_BUILD_ROOT

%post
%update_menus
		
%postun
%clean_menus

%files
%defattr(-,root,root)
%doc AUTHORS ChangeLog COPYING NEWS README TODO
%{_bindir}/%name
%{_bindir}/gvidcap
%{_mandir}/man1/*
%{_menudir}/%name

%changelog
* Wed Feb 16 2005 Götz Waschk <waschk@linux-mandrake.com> 1.1.3-3mdk
- rebuild

* Fri Nov 19 2004 Götz Waschk <waschk@linux-mandrake.com> 1.1.3-2mdk
- build with static ffmpeg

* Tue Feb 17 2004 2004 Austin Acton <austin@mandrake.org> 1.1.3-1mdk
- initial package