%if %mdvver < 200900 %define mozver %(rpm -q --queryformat %%{VERSION} mozilla-firefox) %else %define xulrunner 1.9 %define libname %mklibname xulrunner %xulrunner %define xulver %(rpm -q --queryformat %%{VERSION} %libname) %endif Name: miro Version: 2.0.3 Release: %mkrel 8 Summary: Miro Player Group: Video License: GPLv2+ URL: http://www.getmiro.com/ Source0: ftp://ftp.osuosl.org/pub/pculture.org/miro/src/Miro-%version.tar.gz # gw os.getlogin() fails in the build system Patch4: miro-2.0-work-around-python-problem.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildRequires: pygtk2.0-devel BuildRequires: libxine-devel BuildRequires: python-pyrex BuildRequires: openssl-devel %if %mdvver >= 200900 BuildRequires: xcb-devel %else BuildRequires: libxcb-devel BuildRequires: libpthread-stubs %endif BuildRequires: gtk2-devel %if %mdvver < 200900 BuildRequires: mozilla-firefox-devel %else BuildRequires: xulrunner-devel-unstable >= %xulrunner %endif BuildRequires: desktop-file-utils BuildRequires: libxv-devel BuildRequires: imagemagick %if %mdvver > 200810 BuildRequires: libtorrent-rasterbar-devel BuildRequires: python-libtorrent-rasterbar Requires: python-libtorrent-rasterbar %else BuildRequires: libboost-devel %endif Requires: pygtk2.0-libglade Requires: gnome-python-gtkmozembed Requires: gnome-python-gconf Requires: dbus-python Requires: python-pyrex Requires: gstreamer0.10-python Requires: gstreamer0.10-plugins-base %if %mdvver < 200900 Requires: libmozilla-firefox = %mozver %else #gw as Fedora does: Requires: %libname = %xulver %endif Requires(post): desktop-file-utils Requires(postun): desktop-file-utils Provides: democracy Obsoletes: democracy %description Internet TV player with integrated RSS and BitTorrent functionality. %prep %setup -q -n Miro-%version %patch4 -p1 #gw fix wrong libdir perl -pi -e "s^lib/miro^%_lib/miro^" ./platform/gtk-x11/plat/renderers/xinerenderer.py platform/gtk-x11/setup.py %build cd platform/gtk-x11 && CFLAGS="%{optflags}" %{__python} setup.py build %install rm -rf %{buildroot} cd platform/gtk-x11 && %{__python} setup.py install -O1 --skip-build --root %{buildroot} cd ../.. %find_lang miro perl -pi -e 's,miro-72x72.png,%{name},g' %{buildroot}%{_datadir}/applications/* desktop-file-install --vendor="" \ --remove-key="Encoding" \ --remove-category="Application" \ --add-category="Video" \ --add-category="TV" \ --add-category="X-MandrivaLinux-CrossDesktop" \ --dir %{buildroot}%{_datadir}/applications %{buildroot}%{_datadir}/applications/* mkdir -p %{buildroot}%{_iconsdir}/hicolor/{24x24,48x48,72x72,128x128}/apps cp -f %{buildroot}%{_datadir}/pixmaps/%{name}-24x24.png %{buildroot}%{_iconsdir}/hicolor/24x24/apps/%{name}.png cp -f %{buildroot}%{_datadir}/pixmaps/%{name}-72x72.png %{buildroot}%{_iconsdir}/hicolor/72x72/apps/%{name}.png cp -f %{buildroot}%{_datadir}/pixmaps/%{name}-128x128.png %{buildroot}%{_iconsdir}/hicolor/128x128/apps/%{name}.png convert -scale 48x48 %{buildroot}%{_datadir}/pixmaps/%{name}-72x72.png %{buildroot}%{_iconsdir}/hicolor/48x48/apps/%{name}.png gunzip %buildroot%{_mandir}/man1/*.gz %clean rm -rf %{buildroot} %post %update_desktop_database %update_mime_database %update_icon_cache hicolor %postun %clean_desktop_database %clean_mime_database %clean_icon_cache hicolor %files -f miro.lang %defattr(-,root,root,-) %doc README CREDITS %attr(755,root,root) %_bindir/* %{_datadir}/miro %{_datadir}/applications/*.desktop %{_iconsdir}/hicolor/*/apps/*.png %{_datadir}/pixmaps/*.png %{_datadir}/pixmaps/*.xpm %dir %_libdir/miro/ %_libdir/miro/xine_extractor %{_mandir}/man1/* %{_datadir}/mime/packages/*.xml %{py_platsitedir}/miro* %changelog * Thu Nov 12 2009 Götz Waschk <waschk@mandriva.org> 2.0.3-8mdv2009.1 + Revision: 465194 - rebuild for new xulrunner + Frederic Crozat <fcrozat@mandriva.com> - Rebuild with latest xulrunner - Rebuild with latest xulrunner - Rebuild with latest xulrunner - Rebuild with latest xulrunner - Rebuild with latest xulrunner * Sat Mar 28 2009 Gustavo De Nardin <gustavodn@mandriva.com> 2.0.3-2mdv2009.1 + Revision: 361845 - rebuild for xulrunner 1.9.0.8 * Sat Mar 14 2009 Frederik Himpe <fhimpe@mandriva.org> 2.0.3-1mdv2009.1 + Revision: 354855 - update to new version 2.0.3 * Thu Mar 12 2009 Götz Waschk <waschk@mandriva.org> 2.0.2-2mdv2009.1 + Revision: 354134 - rebuild for new xulrunner * Tue Mar 10 2009 Götz Waschk <waschk@mandriva.org> 2.0.2-1mdv2009.1 + Revision: 353382 - new version - update file list * Tue Mar 10 2009 Götz Waschk <waschk@mandriva.org> 2.0.1-2mdv2009.1 + Revision: 353374 - rebuild * Thu Feb 12 2009 Frederik Himpe <fhimpe@mandriva.org> 2.0.1-1mdv2009.1 + Revision: 339897 - update to new version 2.0.1 + Götz Waschk <waschk@mandriva.org> - use bundled libtorrent on 2008.1 * Wed Feb 11 2009 Götz Waschk <waschk@mandriva.org> 2.0-1mdv2009.1 + Revision: 339378 - new version - drop patches 0,1,5,6,7,8 - rediff patch 4 - fix installation - update file list * Tue Feb 03 2009 Funda Wang <fundawang@mandriva.org> 1.2.8-9mdv2009.1 + Revision: 337068 - rebuild for new xulrunner * Sat Dec 27 2008 Adam Williamson <awilliamson@mandriva.org> 1.2.8-8mdv2009.1 + Revision: 319598 - rebuild with python 2.6 * Wed Dec 24 2008 Funda Wang <fundawang@mandriva.org> 1.2.8-6mdv2009.1 + Revision: 318247 - rebuild for new xulrunner * Sun Dec 21 2008 Funda Wang <fundawang@mandriva.org> 1.2.8-5mdv2009.1 + Revision: 316920 - rebuild for new boost + Adam Williamson <awilliamson@mandriva.org> - drop boost requirements and boost patch: boost was only used for libtorrent and we're on system libtorrent now * Tue Dec 16 2008 Adam Williamson <awilliamson@mandriva.org> 1.2.8-3mdv2009.1 + Revision: 314964 - adjust buildrequires and requires to use system libtorrent - add libtorrent14.patch: from upstream SVN, work with libtorrent 0.14+ - add system_libtorrent.patch: from upstream SVN, check for and use system libtorrent(-rasterbar) if present - add disable_heart.patch: disables iheartmiro as it causes miro to hang at start if not already configured - rediff work-around-python-problem.patch for fuzz=0 + Oden Eriksson <oeriksson@mandriva.com> - lowercase ImageMagick * Fri Nov 14 2008 Götz Waschk <waschk@mandriva.org> 1.2.8-2mdv2009.1 + Revision: 303096 - rebuild for new xulrunner * Sun Oct 26 2008 Funda Wang <fundawang@mandriva.org> 1.2.8-1mdv2009.1 + Revision: 297423 - New version 1.2.8 - rebuild for new xulrunner * Mon Sep 29 2008 Götz Waschk <waschk@mandriva.org> 1.2.7-3mdv2009.0 + Revision: 289234 - rebuild for new xulrunner * Fri Sep 26 2008 Tiago Salem <salem@mandriva.com.br> 1.2.7-2mdv2009.0 + Revision: 288700 - rebuild for the new xulrunner * Fri Sep 26 2008 Götz Waschk <waschk@mandriva.org> 1.2.7-1mdv2009.0 + Revision: 288629 - fix build with new boost - fix xcb build deps + Per Ãyvind Karlsen <peroyvind@mandriva.org> - rebuild against new boost + Frederik Himpe <fhimpe@mandriva.org> - Update to new version 1.2.6 * Wed Jul 30 2008 Götz Waschk <waschk@mandriva.org> 1.2.4-5mdv2009.0 + Revision: 255044 - build with xulrunner * Wed Jul 16 2008 Oden Eriksson <oeriksson@mandriva.com> 1.2.4-4mdv2009.0 + Revision: 236422 - rebuilt for mozilla-firefox-2.0.0.16 * Thu Jul 03 2008 Tiago Salem <salem@mandriva.com.br> 1.2.4-2mdv2009.0 + Revision: 231253 - Rebuild for firefox 2.0.0.15 + Funda Wang <fundawang@mandriva.org> - Add patch to build against gcc4.3 - New version 1.2.4 * Wed Apr 23 2008 Frederik Himpe <fhimpe@mandriva.org> 1.2.3-1mdv2009.0 + Revision: 196969 - New upstream version - Fix path of xinerenderer.py for substitution of libxecdir * Mon Mar 31 2008 Adam Williamson <awilliamson@mandriva.org> 1.2.1-1mdv2008.1 + Revision: 191277 - include a 48x48 icon, this is required by fd.o spec - rediff no-autoupdate.patch - use new-style macros consistently - new release 1.2.1 * Wed Mar 26 2008 Tiago Salem <salem@mandriva.com.br> 1.1.2-2mdv2008.1 + Revision: 190336 - Rebuild for Firefox 2.0.0.13 * Wed Feb 13 2008 Götz Waschk <waschk@mandriva.org> 1.1.2-1mdv2008.1 + Revision: 166941 - new version * Sat Feb 09 2008 Funda Wang <fundawang@mandriva.org> 1.1-2mdv2008.1 + Revision: 164644 - rebuild for new FF * Fri Jan 11 2008 Götz Waschk <waschk@mandriva.org> 1.1-1mdv2008.1 + Revision: 147896 - fix buildrequires - new version - depend on gstreamer + Olivier Blin <oblin@mandriva.com> - restore BuildRoot + Thierry Vignaud <tvignaud@mandriva.com> - kill re-definition of %%buildroot on Pixel's request * Wed Dec 12 2007 Götz Waschk <waschk@mandriva.org> 1.0-2mdv2008.1 + Revision: 117691 - rebuild for new firefox * Wed Nov 14 2007 Götz Waschk <waschk@mandriva.org> 1.0-1mdv2008.1 + Revision: 108820 - new version * Mon Nov 05 2007 Götz Waschk <waschk@mandriva.org> 0.9.9.9-3mdv2008.1 + Revision: 106070 - rebuild for new firefox * Fri Nov 02 2007 Götz Waschk <waschk@mandriva.org> 0.9.9.9-2mdv2008.1 + Revision: 105177 - drop patch 0 and build with new boost * Thu Nov 01 2007 Götz Waschk <waschk@mandriva.org> 0.9.9.9-1mdv2008.1 + Revision: 104454 - new version - rediff patches 1,4 - drop patch 2 - fix installation of xine_extractor - update file list * Sun Oct 21 2007 Götz Waschk <waschk@mandriva.org> 0.9.9.1-3mdv2008.1 + Revision: 100867 - build against boost_python-gcc42 * Fri Oct 19 2007 Götz Waschk <waschk@mandriva.org> 0.9.9.1-2mdv2008.1 + Revision: 100434 - rebuild for new firefox * Fri Sep 07 2007 Götz Waschk <waschk@mandriva.org> 0.9.9.1-1mdv2008.1 + Revision: 81464 - update patch 2 * Fri Sep 07 2007 Götz Waschk <waschk@mandriva.org> 0.9.9.1-1mdv2008.0 + Revision: 81452 - new version * Wed Sep 05 2007 Götz Waschk <waschk@mandriva.org> 0.9.9-2mdv2008.0 + Revision: 80323 - drop patch 3, fixes bug #33185 * Wed Sep 05 2007 Götz Waschk <waschk@mandriva.org> 0.9.9-1mdv2008.0 + Revision: 79986 - reenable patch 3 - patch to fix build system problem with python + Funda Wang <fundawang@mandriva.org> - BR libxv - Rediff dbus patch - rediff no autoupdate patch - New version 0.9.9 * Wed Sep 05 2007 Adam Williamson <awilliamson@mandriva.org> 0.9.8.1-2mdv2008.0 + Revision: 79656 - have to keep the icons in /usr/share/pixmaps as the app uses them directly - fix double quote mark - fd.o icons - drop creation of miro.real as this seems to be done upstream now, so duplicating it was preventing the app from running (see http://forum.mandriva.com/viewtopic.php?p=365287) - fix menu entry issues: categories, deprecated key, icon name - use Fedora license policy - spec clean + Götz Waschk <waschk@mandriva.org> - remove mdk-folders patch * Thu Aug 02 2007 Götz Waschk <waschk@mandriva.org> 0.9.8.1-1mdv2008.0 + Revision: 58199 - new version * Tue Jul 31 2007 Götz Waschk <waschk@mandriva.org> 0.9.8-5mdv2008.0 + Revision: 57234 - rebuild * Thu Jul 19 2007 Götz Waschk <waschk@mandriva.org> 0.9.8-4mdv2008.0 + Revision: 53539 - add missing deps - readd wrapper, it ist still needed * Thu Jul 19 2007 Götz Waschk <waschk@mandriva.org> 0.9.8-3mdv2008.0 + Revision: 53509 - fix dbus exception on startup * Thu Jul 19 2007 Götz Waschk <waschk@mandriva.org> 0.9.8-2mdv2008.0 + Revision: 53446 - fix mime package - remove wrapper script * Wed Jul 18 2007 Götz Waschk <waschk@mandriva.org> 0.9.8-1mdv2008.0 + Revision: 53269 - new version - rediff patch 0 - import democracy as miro * Fri Jun 15 2007 Götz Waschk <waschk@mandriva.org> 0.9.6-3mdv2008.0 + Revision: 39941 - rebuild for new ff + Anssi Hannula <anssi@mandriva.org> - rebuild with correct optflags + Frederic Crozat <fcrozat@mandriva.com> - Release 0.9.6 - Remove patches 2, 3, 4 (merged upstream) * Wed Apr 25 2007 Götz Waschk <waschk@mandriva.org> 0.9.5.3-1mdv2008.0 + Revision: 18190 - Import democracy