Sophie

Sophie

distrib > Mandriva > 10.2 > x86_64 > by-pkgid > 53013abaa1a3fbb01aed7521138b4bb4 > files > 8

xmovie-1.9.13-2mdk.src.rpm

%define X11prefix %{_prefix}/X11R6

Summary:	A movie player for QuickTime and MPEG-2 movies
Name:		xmovie
Version:	1.9.13
Release:	2mdk
Group:		Video

Source0:	http://heroinewarrior.com/%{name}-%{version}-src.tar.bz2
#Patch0:	xmovie-1.8-no-ix86.patch.bz2
# sorry, no avi in this one, because it requires lame which does have problems
# Not needed for now, as USE_AVI is defined as 0 because building it with
# gcc 3.0 has some problems. We might need to re-eanble these patches later
# so we make it stay in the source.
#Patch1:	xmovie-1.8-no-avi.patch.bz2
#Patch2:	xmovie-1.8-no-define-use-avi.patch.bz2
#Patch3: 	xmovie-1.9-varpatch.bz2
Patch4:		xmovie-1.9.11-with-pic.patch.bz2
Patch5:		xmovie-1.9-no-cxxrepository.patch.bz2
Patch6:		xmovie-1.9.13-ppc-build-fix.patch.bz2
Patch7:		xmovie-1.9.13-gcc3_4.patch.bz2
# hack: make a lot of static variables that are only used in inline asm code 
# global because otherwise gcc thinks they're not used
Patch8:		xmovie-1.9.13-gcc3_4_1-asm.patch.bz2
Patch9:		xmovie-1.9.13-gcc3_4-warnings.patch.bz2
URL:		http://heroinewarrior.com/xmovie.html
License:	GPL
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-buildroot
BuildRequires:	glib-devel png-devel XFree86-static-libs >= 4.0.1
%ifarch %ix86
BuildRequires:  nasm
%endif


%description
Introducing a movie player for MPEG-2, DVD, and Quicktime movies with
stereo sound.  It won't play any movies you download from the
internet.  What XMovie is used for is playing long, high resolution
movies you capture or composite yourself with stereo sound.  The other
Quicktime players, well, the other player is not convenient for movies
over 50 minutes and it doesn't support aspect ratios or stereo sound.

XMovie plays MPEG-1/MPEG-2 system streams, MP2/MP3/AC3 audio, MPEG-1/2
video, Quicktime video (Motion JPEG A, Uncompressed RGB, Component video,
Progressive JPEG, PNG, YUV 4:2:0, DV), Quicktime audio: Twos complement,
IMA4, ulaw).

%prep
%setup -q
#%ifnarch %ix86
#%patch0 -p1 -b .no-ix86
#%endif
#%patch3 -p1 -b .build
%patch4 -p1 -b .pic
#%ifnarch %ix86
#%patch5 -p1 -b .cxxrepository
#%endif
%patch6 -p1 -b .ppc-qt-makefiles
%patch7 -p1 -b .gcc3_4
%patch8 -p1 -b .gcc3_4_1-asm
%patch9 -p1 -b .gcc3_4-warnings

%build
chmod -R u+rw,go+r .
# fucking legal issues.
rm -rf avifile/audioencoder
export CFLAGS="$RPM_OPT_FLAGS"
export CXXFLAGS="$RPM_OPT_FLAGS"
%ifarch ppc
export CFLAGS="$CFLAGS -mcpu=7450 -maltivec"
%endif
# Don't use %%configure. I mean it. It breaks things.
%ifnarch %ix86
./configure --alpha --no-mmx --no-css
%else
./configure --no-css
%endif

export PATH=$PATH:.
make

%install
mkdir -p $RPM_BUILD_ROOT/%{X11prefix}/bin
make PREFIX="$RPM_BUILD_ROOT%X11prefix" install
install -m 755 -d $RPM_BUILD_ROOT%{_menudir}

cat << EOF > $RPM_BUILD_ROOT%{_menudir}/%name
?package(xmovie):\
	needs="X11"\
	icon="video_section.png"\
	section="Multimedia/Video"\
	title="XMovie"\
	longtitle="Video player"\
	mimetypes="video/x-msvideo;video/quicktime;video/x-flic;video/mpeg;video/x-mpeg"\
	command="%{X11prefix}/bin/xmovie"
EOF

%post
%update_menus

%postun
%clean_menus

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc xmovie/README xmovie/index.html
%attr(755,root,root) %{X11prefix}/bin/xmovie
%{_menudir}/*

%changelog
* Sat Jul 17 2004 Christiaan Welvaart <cjw@daneel.dyndns.org> 1.9.13-2mdk
- rebuild with gcc 3.4 (patch7,patch8,patch9)
- fix ppc buid (patch6)

* Mon May 31 2004 Per Øyvind Karlsen <peroyvind@linux-mandrake.com> 1.9.13-1mdk
- 1.9.13
- drop obsolete patches

* Sun Jan 04 2004 Per Øyvind Karlsen <peroyvind@linux-mandrake.com> 1.9.11-1mdk
- 1.9.11
- fix buildrequires (lib64..)
- drop P3
- regenerate P4

* Wed Aug 27 2003 David Baudens <baudens@mandrakesoft.com> 1.9-14mdk
- Remove "InitialPreference"

* Tue May 27 2003 David BAUDENS <baudens@mandrakesoft.com> 1.9-13mdk
- Fix menu icon

* Wed Aug 14 2002 Gwenole Beauchesne <gbeauchesne@mandrakesoft.com> 1.9-12mdk
- Automated rebuild with gcc 3.2-0.3mdk

* Thu Jul 25 2002 Gwenole Beauchesne <gbeauchesne@mandrakesoft.com> 1.9-11mdk
- Automated rebuild with gcc3.2

* Mon Jul 01 2002 Geoffrey Lee <snailtalk@mandrakesoft.com> 1.9-10mdk
- Whops really apply patch 5 aka fix typo.

* Mon Jul 01 2002 Geoffrey Lee <snailtalk@mandrakesoft.com> 1.9-9mdk
- Fix build on the Alpha.

* Wed May 29 2002 Gwenole Beauchesne <gbeauchesne@mandrakesoft.com> 1.9-8mdk
- Automated rebuild with gcc 3.1-1mdk

* Thu Feb 28 2002 Frederic Crozat <fcrozat@mandrakesoft.com> 1.9-7mdk
- Fix menu generation : don't touch _prefix macro, or it breaks everything
- Use more macros

* Mon Feb 04 2002 Thierry Vignaud <tvignaud@mandrakesoft.com> 1.9-6mdk
- rebuild for new libXv

* Wed Oct 17 2001 Stefan van der Eijk <stefan@eijk.nu> 1.9-5mdk
- rebuild against libpng3

* Thu Sep 20 2001 David BAUDENS <baudens@mandrakesoft.com> 1.9-4mdk
- Fix menu (mime type)

* Thu Aug 30 2001 David BAUDENS <baudens@mandrakesoft.com> 1.9-3mdk
- Use new icons

* Sun Aug 26 2001 Geoffrey Lee <snailtalk@mandrakesoft.com> 1.9-2mdk
- Include the menu file inside the spec file.
- Include small, normal and large icons (ghibo).

* Sat Aug 25 2001 Geoffrey Lee <snailtalk@mandrakesoft.com> 1.9-1mdk
- Bump out the new and shiny 1.9.
- Remove the obsolete gcc 2.95 permissive hack.
- Make it build again (chmou).

* Thu Jul 12 2001 Geoffrey Lee <snailtalk@mandrakesoft.com> 1.8-3mdk
- Put menu file in /usr/lib/menu (no, duhhhhh).
- Make this build on non-ix86 platforms.

* Tue Jul 03 2001 Stefan van der Eijk <stefan@eijk.nu> 1.8-2mdk
- BuildRequires:	glib-devel
- BuildRequires:	libpng-devel
- Removed BuildRequires:	XFree86-devel

* Sat May 26 2001 Geoffrey lee <snailtalk@mandrakesoft.com> 1.8-1mdk
- Build a 1.8 for general consumption in cooker.

* Tue May 01 2001 Geoffrey Lee <snailtalk@mandrakesoft.com> 1.7-1mdk
- Build 1.7 for everyone to use.

* Thu Apr 19 2001 Geoffrey Lee <snailtalk@mandrakesoft.com> 1.6-2mdk
- Force it to only build in x86 aka add an ExclusiveArch: for x86.

* Thu Feb 08 2001 Geoffrey Lee <snailtalk@mandrakesoft.com> 1.6-1mdk
- new source bumped into cooker.
- use of the %%configure macro.
- new url.
- use -fexceptions which is needed to compile.

* Wed Jan 24 2001 Till Kamppeter <till@mandrakesoft.com> 1.5.4-1mdk
- Another new source

* Thu Nov 30 2000 Geoffrey Lee <snailtalk@mandrakesoft.com> 1.5.3-1mdk
- new and shiny source bumped into cooker.

* Fri Nov 16 2000 David BAUDENS <baudens@mandrakesoft.com> 1.5.2-2mdk
- ExcludeArch: ppc

* Tue Nov 14 2000 Geoffrey Lee <snailtalk@mandrakesoft.com> 1.5.2-1mdk
- new and shiny source bumped into cooker.

* Fri Oct 24 2000 Montel Laurent <lmontel@mandrakesoft.com> 1.5.1-2mdk
- Now xmovie is the first application to read video when you click on
  konqueror

* Tue Aug 29 2000 Geoffrey Lee <snailtalk@mandrakesoft.com> 1.5.1-1mdk
- s|1.5|1.5.1|;

* Fri Aug 25 2000 Geoffrey Lee <snailtalk@mandrakesoft.com> 1.5-1mdk
- new and shiny version, major changes ..!!
- get untar of source to shut up as it is too annoying to watch.

* Thu Aug 10 2000 Giuseppe Ghibò <ghibo@mandrakesoft.com> 1.4-1mdk
- updated to version 1.4.

* Thu Jul 06 2000 Chmouel Boudjnah <chmouel@mandrakesoft.com> 1.3.1-6mdk
- ExludArch: ppc too.

* Wed May 24 2000 Chmouel Boudjnah <chmouel@mandrakesoft.com> 1.3.1-5mdk
- ExcludeArch: alpha since it contain non portable asm.

* Sat Apr 29 2000 Giuseppe Ghibò <ghibo@mandrakesoft.com> 1.3.1-4mdk
- updated to real 1.3.1 version.
- fixed absolute path in for icon in menu entry.

* Tue Apr 18 2000 dam's <damien@mandrakesoft.com> 1.3.1-3mdk
- Convert gif icon to xpm.

* Mon Apr 17 2000 dam's <damien@mandrakesoft.com> 1.3.1-2mdk
- Added menu entry.

* Thu Mar 30 2000 dam's <damien@mandrakesoft.com> 1.3.1-1mdk
- Update to 1.3.1.

* Mon Nov 15 1999 Chmouel Boudjnah <chmouel@mandrakesoft.com>
- Fix gcc2.95 compilation.

* Sat Nov 06 1999 John Buswell <johnb@mandrakesoft.com>
- 1.1.1
- Build Release

* Sat Sep 18 1999 Giuseppe Ghibò <ghibo@linux-mandrake.com>
- initial SPEC file for Mandrake distribution.