-#
-# disable mythmusic,mythphone due to https://bugs.pld-linux.org/?do=details&id=5687
-%bcond_without mythmusic
-%bcond_without mythphone
-#
%include /usr/lib/rpm/macros.perl
Summary: Main MythTV plugins
Summary(pl): G³ówne wtyczki MythTV
Name: mythplugins
Version: 0.18.1
-Release: 0.112.9
+Release: 0.112.11
License: GPL v2
Group: Applications/Multimedia
Source0: http://www.mythtv.org/mc/%{name}-%{version}.tar.bz2
Requires: mythdvd
Requires: mythgallery
Requires: mythgame
-%{?with_mythmusic:Requires: mythmusic}
+Requires: mythmusic
Requires: mythnews
-%{?with_mythphone:Requires: mythphone}
+Requires: mythphone
Requires: mythvideo
Requires: mythweather
+ExclusiveArch: %{ix86} %{x8664}
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%define api_ver %(echo %{version} | cut -d. -f1,2)
find '(' -name '*.[ch]' -o -name '*.cpp' -o -name '*.pro' ')' | \
xargs grep -l /lib/ . | xargs sed -i -e '
s,/usr/lib/,/usr/%{_lib}/,g
- s,{PREFIX}/lib,{PREFIX}/%{_lib}/,g
+ s,{PREFIX}/lib,{PREFIX}/%{_lib},g
'
sed -i -e 's|/mnt/store/music|/var/lib/mythmusic|' mythmusic/mythmusic/globalsettings.cpp
# include mythtv build settings
cp %{_datadir}/mythtv/build/config.mak .
-sed -i -e '1iinclude(config.mak)' settings.pro
+sed -i -e "1iinclude(`pwd`/config.mak)" settings.pro
%ifarch %{x8664}
# mmx asm isn't x86_64 compatible in mythmusic
# Not gnu configure
%configure \
--enable-all \
- --disable-festival \
- %{!?with_mythmusic:--disable-mythmusic} \
- %{!?with_mythphone:--disable-mythphone}
+ --disable-festival
# --enable-opengl enable OpenGL (Music and Gallery) [default=no]
# --enable-transcode enable DVD ripping and transcoding [default=no]
%files
%defattr(644,root,root,755)
-%if %{with mythmusic}
%files -n mythmusic
%defattr(644,root,root,755)
%doc mythmusic/README mythmusic/UPGRADING mythmusic/AUTHORS mythmusic/musicdb
%{_datadir}/mythtv/themes/default/text_button_on.png
%{_datadir}/mythtv/themes/default/text_button_pushed.png
%{_datadir}/mythtv/themes/default/track_info_background.png
-%endif
%files -n mythvideo
%defattr(644,root,root,755)
%{_datadir}/mythtv/themes/default/webpage.png
%{_datadir}/mythtv/i18n/mythbrowser_*.qm
-%if %{with mythphone}
%files -n mythphone
%defattr(644,root,root,755)
%doc mythphone/README mythphone/AUTHORS mythphone/TODO
%{_datadir}/mythtv/themes/default/mp_*.png
%{_datadir}/mythtv/themes/default/phone.png
%{_datadir}/mythtv/i18n/mythphone_*.qm
-%endif