5cb2434
%define gstreamer_version	0.10.1
5cb2434
%define gstreamer_plugins_base_version	0.10.1
5cb2434
%define gstreamer_plugins_good_version	0.10.0
da1c9f7
da1c9f7
Summary: Movie player for GNOME 2
da1c9f7
Name: totem
bnocera b25493c
Version: 2.17.90
2e58025
Release: 1%{?dist} 
da1c9f7
License: GPL
da1c9f7
Group: Applications/Multimedia
bnocera b25493c
URL: http://www.gnome.org/projects/totem/
bnocera b25493c
Source0: http://ftp.gnome.org/pub/GNOME/sources/totem/2.17/totem-%{version}.tar.bz2
f220693
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) 
292ca89
78f58bc
Requires(pre): GConf2 >= 2.14
78f58bc
Requires(preun): GConf2 >= 2.14
f1a7e9d
Requires(post): GConf2 >= 2.14
292ca89
Requires(post): desktop-file-utils
f1a7e9d
Requires(post): scrollkeeper
292ca89
Requires(postun): desktop-file-utils
f1a7e9d
Requires(postun): scrollkeeper
292ca89
da1c9f7
Requires: gnome-desktop >= 2.6.0
e221454
Requires: gstreamer >= %gstreamer_version
5cb2434
Requires: gstreamer-plugins-base >= %gstreamer_plugins_base_version
5cb2434
Requires: gstreamer-plugins-good >= %gstreamer_plugins_good_version
3a26c94
Requires: iso-codes
8f1d040
Requires: %{name}-plparser = %{version}-%{release}
292ca89
da1c9f7
BuildRequires: gcc-c++, pkgconfig, gettext, scrollkeeper
e221454
BuildRequires: gstreamer-devel >= %gstreamer_version
5cb2434
BuildRequires: gstreamer-plugins-base-devel >= %gstreamer_plugins_base_version
da1c9f7
BuildRequires: gnome-desktop-devel >= 2.6.0, gnome-vfs2-devel, libglade2-devel
da1c9f7
BuildRequires: perl-XML-Parser
3a26c94
BuildRequires: iso-codes-devel
05e22e3
BuildRequires: firefox-devel
292ca89
BuildRequires: gnome-icon-theme
5dc3bcf
BuildRequires: nautilus-devel
292ca89
BuildRequires: libXtst-devel
292ca89
BuildRequires: libXxf86vm-devel
292ca89
BuildRequires: libXt-devel
292ca89
BuildRequires: dbus-devel
dacd8be
BuildRequires: hal-devel
557bac0
BuildRequires: gnome-doc-utils
292ca89
50f5975
Obsoletes: nautilus-media
da1c9f7
da1c9f7
%description
da1c9f7
Totem is simple movie player for the Gnome desktop. It features a
da1c9f7
simple playlist, a full-screen mode, seek and volume controls, as well as
da1c9f7
a pretty complete keyboard navigation.
da1c9f7
e62234e
%package mozplugin
e62234e
Summary: Mozilla plugin for Totem
e62234e
Group: Applications/Internet
e62234e
e62234e
%description mozplugin
e62234e
Totem is simple movie player for the Gnome desktop. The mozilla plugin
e62234e
for totem allows totem to be embeded into a web browser. 
e62234e
8f1d040
%package plparser
8f1d040
Summary: Totem playlist parser library
8f1d040
Group: Development/Libraries
8f1d040
8f1d040
%description plparser
8f1d040
A library to parse various forms of music playlists.
8f1d040
e752e09
%package devel
dacd8be
Summary: Libraries/include files for Totem
e752e09
Group: Development/Libraries
e752e09
Requires: %{name} = %{version}-%{release}
e752e09
Requires: gnome-vfs2-devel
e752e09
Requires: libxml2-devel
e752e09
Requires: gtk2-devel
db66fee
Requires: pkgconfig
e752e09
e752e09
%description devel
e752e09
Totem is simple movie player for the Gnome desktop. It features a
e752e09
simple playlist, a full-screen mode, seek and volume controls, as well as
e752e09
a pretty complete keyboard navigation.
e752e09
e752e09
This package contains the libraries and includes files necessary to develop
e752e09
applications with Totem's plparser library.
e752e09
e752e09
da1c9f7
%prep
da1c9f7
%setup -q
da1c9f7
da1c9f7
%build
7edf1dc
# try to work around a problem where gst-inspect does 
7edf1dc
# not find playbin the first time around
ab0af6e
/usr/bin/gst-inspect-0.10 --print-all > /dev/null
e62234e
export MOZILLA_PLUGINDIR=%{_libdir}/mozilla 
ab0af6e
%configure 			\
ab0af6e
	--enable-gstreamer 	\
ab0af6e
	--disable-lirc 		\
ab0af6e
	--disable-vanity 	\
ab0af6e
	--enable-mozilla 	\
ab0af6e
	--enable-nautilus	\
f1a7e9d
	--disable-scrollkeeper  \
ab0af6e
	--disable-nvtv
da1c9f7
da1c9f7
make %{?_smp_mflags}
da1c9f7
da1c9f7
%install
da1c9f7
rm -rf $RPM_BUILD_ROOT
da1c9f7
export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
c4be5ae
make install DESTDIR=$RPM_BUILD_ROOT
da1c9f7
%find_lang %{name}
da1c9f7
c98dedb
#nor vanity
c98dedb
rm -f $RPM_BUILD_ROOT%{_datadir}/pixmaps/vanity.png
da1c9f7
5a83620
# no static libs and libtool archives either
5a83620
rm -f $RPM_BUILD_ROOT%{_libdir}/*.a
5a83620
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
5a83620
rm -f $RPM_BUILD_ROOT%{_libdir}/nautilus/extensions-1.0/*.a
5a83620
rm -f $RPM_BUILD_ROOT%{_libdir}/nautilus/extensions-1.0/*.la
e62234e
rm -f $RPM_BUILD_ROOT%{_libdir}/mozilla/plugins/*.a
e62234e
rm -f $RPM_BUILD_ROOT%{_libdir}/mozilla/plugins/*.la
5a83620
da1c9f7
%clean
da1c9f7
rm -rf $RPM_BUILD_ROOT
da1c9f7
26ae87a
%post
26ae87a
/sbin/ldconfig
f1a7e9d
scrollkeeper-update -q
292ca89
update-desktop-database -q
da1c9f7
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
7e8697a
gconftool-2 --makefile-install-rule \
7e8697a
        %{_sysconfdir}/gconf/schemas/totem.schemas 			\
7e8697a
        %{_sysconfdir}/gconf/schemas/totem-handlers.schemas 		\
7e8697a
        %{_sysconfdir}/gconf/schemas/totem-video-thumbnail.schemas 	\
7e8697a
	>& /dev/null || :
b54acb9
touch %{_datadir}/icons/hicolor
b54acb9
if [ -x /usr/bin/gtk-update-icon-cache ]; then
b54acb9
  /usr/bin/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor
b54acb9
fi
da1c9f7
78f58bc
%pre
78f58bc
if [ "$1" -gt 1 ]; then
78f58bc
    export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
7e8697a
    gconftool-2 --makefile-uninstall-rule 				\
7e8697a
        %{_sysconfdir}/gconf/schemas/totem.schemas 			\
7e8697a
        %{_sysconfdir}/gconf/schemas/totem-handlers.schemas 		\
7e8697a
        %{_sysconfdir}/gconf/schemas/totem-video-thumbnail.schemas 	\
7e8697a
	>& /dev/null || :
78f58bc
fi
78f58bc
 
83dbdff
%preun
83dbdff
if [ "$1" -eq 0 ]; then
83dbdff
    export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
7e8697a
    gconftool-2 --makefile-uninstall-rule 				\
7e8697a
        %{_sysconfdir}/gconf/schemas/totem.schemas 			\
7e8697a
        %{_sysconfdir}/gconf/schemas/totem-handlers.schemas 		\
7e8697a
        %{_sysconfdir}/gconf/schemas/totem-video-thumbnail.schemas 	\
7e8697a
	>& /dev/null || :
83dbdff
fi
83dbdff
 
292ca89
%postun
292ca89
/sbin/ldconfig
f1a7e9d
scrollkeeper-update -q
292ca89
update-desktop-database -q
b54acb9
touch %{_datadir}/icons/hicolor
b54acb9
if [ -x /usr/bin/gtk-update-icon-cache ]; then
b54acb9
  /usr/bin/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor
b54acb9
fi
da1c9f7
da1c9f7
%files -f %{name}.lang
da1c9f7
%defattr(-,root,root,-)
da1c9f7
%doc AUTHORS COPYING ChangeLog NEWS README TODO
da1c9f7
%config %{_sysconfdir}/gconf/schemas/*.schemas
da1c9f7
%{_bindir}/%{name}
da1c9f7
%{_datadir}/applications/%{name}.desktop
da1c9f7
%{_datadir}/gnome/help/%{name}/
da1c9f7
%{_datadir}/omf/%{name}/
da1c9f7
%{_datadir}/%{name}/
3a26c94
%{_libdir}/nautilus/extensions-1.0/*.so*
50f5975
%{_bindir}/%{name}-video-thumbnailer
49f7750
%{_bindir}/%{name}-video-indexer
70ca5fc
%{_datadir}/icons/hicolor/*/apps/totem.png
70ca5fc
%{_datadir}/icons/hicolor/scalable/apps/totem.svg
da1c9f7
%exclude %{_datadir}/%{name}/vanity.*
da1c9f7
%{_mandir}/man1/%{name}.1*
e752e09
%{_mandir}/man1/totem-video-thumbnailer.1.gz
e752e09
8f1d040
%files plparser
8f1d040
%defattr(-, root, root)
8f1d040
%{_libdir}/libtotem-plparser.so.*
8f1d040
e62234e
%files mozplugin
e62234e
%defattr(-, root, root)
e62234e
%{_libdir}/mozilla/plugins/*
3f5a7e4
%{_libexecdir}/totem-plugin-viewer
e62234e
e752e09
%files devel
e752e09
%defattr(-, root, root)
bnocera b25493c
%{_includedir}/%{name}
e752e09
%{_libdir}/pkgconfig/*.pc
e752e09
%{_libdir}/*so
da1c9f7
da1c9f7
%changelog
bnocera b25493c
* Mon Jan 29 2007 - Bastien Nocera <bnocera@redhat.com> - 2.17.90-1
bnocera b25493c
- Make the -devel package own %{_includedir}/totem and below
bnocera b25493c
- Resolves: #212093
bnocera b25493c
- Update homepage, and download URLs
bnocera b25493c
- Update to 2.17.90, remove obsolete patch
bnocera b25493c
f220693
* Tue Jan 16 2007 Matthias Clasen <mclasen@redhat.com> - 2.17.5-1
f220693
- Update to 2.17.5
f220693
8f1d040
* Mon Nov 20 2006 Alexander Larsson <alexl@redhat.com> - 2.17.3-2
8f1d040
- Remove libtotem-plparser.so from totem package
8f1d040
- Split out totem-plparser into subpackage
8f1d040
- Resolves: #203640
8f1d040
7e8697a
* Wed Nov 15 2006 Matthias Clasen <mclasen@redhat.com> - 2.17.3-1
7e8697a
- Update to 2.17.3
7e8697a
 
7e33a71
* Sat Nov  4 2006 Matthias Clasen <mclasen@redhat.com> - 2.17.2-1 
7e33a71
- Update to 2.17.2
7e33a71
f734ec4
* Sun Oct 22 2006 Matthias Clasen <mclasen@redhat.com> - 2.17.1-1 
f734ec4
- Update to 2.17.1
f734ec4
f734ec4
* Sat Oct 21 2006 Matthias Clasen <mclasen@redhat.com> - 2.17.0-1
8f57887
- Update to 2.17.0
8f57887
78f58bc
* Wed Oct 18 2006 Matthias Clasen <mclasen@redhat.com> - 2.16.1-2
78f58bc
- Fix scripts to follow packaging guidelines
78f58bc
7d433e8
* Thu Sep  7 2006 Matthias Clasen <mclasen@redhat.com> - 2.16.1-1.fc6
7d433e8
- Update to 2.16.1, including several improvements to 
7d433e8
  the mozilla plugin
7d433e8
850ccd7
* Sun Sep  3 2006 Matthias Clasen <mclasen@redhat.com> - 2.16.0-1.fc6
850ccd7
- Update to 2.16.0
850ccd7
db66fee
* Tue Aug 22 2006 Matthias Clasen <mclasen@redhat.com> - 1.5.92-1.fc6
db66fee
- Update to 1.5.92
db66fee
- Require pkgconfig in the -devel package
db66fee
c6a709a
* Mon Aug 14 2006 Matthias Clasen <mclasen@redhat.com> - 1.5.91-2.fc6
50e0df2
- Make translations work again
50e0df2
70ca5fc
* Sun Aug 13 2006 Matthias Clasen <mclasen@redhat.com> - 1.5.91-1.fc6
70ca5fc
- Update to 1.5.91
70ca5fc
83dbdff
* Thu Aug  3 2006 Matthias Clasen <mclasen@redhat.com> - 1.5.90-1.fc6
83dbdff
- Update to 1.5.90
83dbdff
05e22e3
* Mon Jul 31 2006 Matthias Clasen <mclasen@redhat.com> - 1.5.4-4
05e22e3
- Rebuild against firefox-devel
05e22e3
bf2cffa
* Wed Jul 19 2006 Matthias Clasen <mclasen@redhat.com> - 1.5.4-3
bf2cffa
- Don't use deprecated dbus api
bf2cffa
99bcbb9
* Wed Jul 19 2006 Matthias Clasen <mclasen@redhat.com> - 1.5.4-2
99bcbb9
- Rebuild against dbus
99bcbb9
00036e1
* Wed Jul 12 2006 Matthias Clasen <mclasen@redhat.com> - 1.5.4-1
00036e1
- Update to 1.5.4
00036e1
8fdeb9e
* Wed Jun 14 2006 Matthias Clasen <mclasen@redhat.com> - 1.5.2-2
8fdeb9e
- Work around a gstreamer problem
8fdeb9e
dacd8be
* Tue Jun 13 2006 Matthias Clasen <mclasen@redhat.com> - 1.5.2-1
dacd8be
- Update to 1.5.2
dacd8be
- BuildRequire hal
b54acb9
- Update icon themes
dacd8be
2275096
* Wed May 17 2006 Matthias Clasen <mclasen@redhat.com> - 1.5.1-1
2275096
- Update to 1.5.1
2275096
292ca89
* Wed Apr 19 2006 Matthias Clasen <mclasen@redhat.com> - 1.4.0-3
292ca89
- Add missing BuildRequires (#181304)
292ca89
409e2b4
* Tue Mar 14 2006 Ray Strode <rstrode@redhat.com> - 1.4.0-2
409e2b4
- Update to 1.4.0
409e2b4
a0edcc3
* Mon Mar 13 2006 Matthias Clasen <mclasen@redhat.com> - 1.4.0-1
a0edcc3
- Update to 1.4.0
a0edcc3
2d8b29d
* Tue Feb 28 2006 Matthias Clasen <mclasen@redhat.com> - 1.3.92-1
2d8b29d
- Update to 1.3.92
2d8b29d
23df27a
* Mon Feb 13 2006 Matthias Clasen <mclasen@redhat.com> - 1.3.91-1
23df27a
- Update to 1.3.91
23df27a
f582749
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 1.3.90-2.1
f582749
- bump again for double-long bug on ppc(64)
f582749
343d67c
* Thu Feb  9 2006 Matthias Clasen <mclasen@redhat.com> - 1.3.90-2
343d67c
- Rebuild
343d67c
4d070cf
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 1.3.90-1.1
4d070cf
- rebuilt for new gcc4.1 snapshot and glibc changes
4d070cf
3f0f70e
* Mon Jan 30 2006 Matthias Clasen <mclasen@redhat.com> - 1.3.90-1
3f0f70e
- Update to 1.3.90
3f0f70e
32c4a8d
* Fri Jan 20 2006 Matthias Clasen <mclasen@redhat.com> - 1.3.1-1
32c4a8d
- Update to 1.3.1
32c4a8d
e221454
* Fri Jan 06 2006 John (J5) Palmieri <johnp@redhat.com> 1.3.0-3
e221454
- Build with gstreamer 0.10
e221454
- Enable the mozilla plugin
e221454
78df498
* Thu Jan 05 2006 John (J5) Palmieri <johnp@redhat.com> 1.3.0-2
78df498
- GStreamer has been split into gstreamer08 and gstreamer (0.10) packages
78df498
  we need gstreamer08 for now
78df498
38ac5be
* Thu Dec 20 2005 Matthias Clasen <mclasen@redhat.com> 1.3.0-1
38ac5be
- Update to 1.3.0
38ac5be
694df5d
* Thu Dec 15 2005 Matthias Clasen <mclasen@redhat.com> 1.2.1-1
694df5d
- Update to 1.2.1
694df5d
6c87a1b
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
6c87a1b
- rebuilt
6c87a1b
db32d7d
* Wed Oct 26 2005 John (J5) Palmieri <johnp@redhat.com> - 1.2.0-1
db32d7d
- Update to 1.2.0
db32d7d
fe16acf
* Tue Oct 25 2005 Matthias Clasen <mclasen@redhat.com> - 1.1.5-1
fe16acf
- Update to 1.1.5
fe16acf
0299cdf
* Tue Aug 18 2005 John (J5) Palmieri <johnp@redhat.com> - 1.1.4-1
0299cdf
- Update to upstream version 1.1.4 and rebuild
6302bd2
- Don't build with nautilus-cd-burner on s390 platforms
0299cdf
ddae4c3
* Fri Jul 22 2005 Colin Walters <walters@redhat.com> - 1.1.3-1
ddae4c3
- Update to upstream version 1.1.2
ddae4c3
3a26c94
* Wed Jun 29 2005 John (J5) Palmieri <johnp@redhat.com> - 1.1.2-1
3a26c94
- Update to upstream version 1.1.2
3a26c94
c8c1669
* Tue May 17 2005 John (J5) Palmieri <johnp@redhat.com> - 1.0.2-1
c8c1669
- Update to upstream version 1.0.2 to fix minor bugs
c8c1669
- Register the thumbnail and handlers schemas
c8c1669
c8384b5
* Tue Feb 29 2005 John (J5) Palmieri <johnp@redhat.com> - 1.0.1-1
c8384b5
- Update to upstream version 1.0.1
e752e09
- Break out devel package
c8384b5
26ae87a
* Mon Feb 21 2005 Bill Nottingham <notting@redhat.com> - 0.101-4
26ae87a
- fix %%post
26ae87a
50f5975
* Wed Feb  2 2005 Matthias Clasen <mclasen@redhat.com> - 0.101-3
50f5975
- Obsolete nautilus-media
50f5975
- Install property page and thumbnailer
50f5975
6b441df
* Wed Feb  2 2005 Matthias Clasen <mclasen@redhat.com> - 0.101-2
425c24e
- Update to 0.101
425c24e
 
20883de
* Mon Jan 03 2005 Colin Walters <walters@redhat.com> - 0.100-2
20883de
- Grab patch totem-0.100-desktopfile.patch from CVS to fix
20883de
  missing menu entry (144088)
20883de
- Remove workaround for desktop file being misinstalled, fixed
20883de
  by above patch
20883de
573ad81
* Mon Jan 03 2005 Colin Walters <walters@redhat.com> - 0.100-1
573ad81
- New upstream version 0.100
573ad81
621dc75
* Sun Dec  5 2004 Bill Nottingham <notting@redhat.com> - 0.99.22-1
621dc75
- update to 0.99.22
621dc75
3c3a224
* Thu Oct 28 2004 Colin Walters <walters@redhat.com> - 0.99.19-2
3c3a224
- Add patch to remove removed items from package from help
3c3a224
976d2b5
* Thu Oct 14 2004 Colin Walters <walters@redhat.com> - 0.99.19-1
976d2b5
- New upstream 0.99.19
976d2b5
  - Fixes crasher with CD playback (see NEWS)
976d2b5
2e2f98b
* Tue Oct 12 2004 Alexander Larsson <alexl@redhat.com> - 0.99.18-2
2e2f98b
- Call update-desktop-database in post
2e2f98b
257c542
* Tue Oct 12 2004 Alexander Larsson <alexl@redhat.com> - 0.99.18-1
257c542
- update to 0.99.18
257c542
da1c9f7
* Wed Oct  6 2004 Alexander Larsson <alexl@redhat.com> - 
da1c9f7
- Initial version, based on specfile by Matthias Saou <http://freshrpms.net/>
da1c9f7