Projects
Multimedia
mythtv
mythtv.spec
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File mythtv.spec of Package mythtv (Revision 11)
Currently displaying revision
11
,
Show latest
# # spec file for package mythtv # # Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2010,2011,2012,2013 Herbert Graeber <herbert@links2linux.de> # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # %define major 0_28 %define soname libmyth %define sover 0_28-0 %define USER mythtv %define GROUP video %define OTHERGROUP audio # Fix: suse-filelist-forbidden-sysconfig %{!?_fillupdir:%global _fillupdir /var/adm/fillup-templates} Name: mythtv Version: 0.28.2+git20180529.ae037d012e Release: 0 Summary: A personal video recorder (PVR/DVR) application License: GPL-2.0-or-later Group: Productivity/Multimedia/Video/Players URL: http://mythtv.org/ Source0: %{name}-fixes-%{version}.tar.gz Source93: mythbackend.sysconfig.in Source94: mythbackend.service.in Source95: mythbackend.rules.in Source96: mythbackend.SuSEfirewall2 Source97: mythbackend.logrotate.in Source98: mythtv-session.desktop Source99: mythfrontend.svg Source100: mythtv.rpmlintrc Patch0: mythtv-perl-install.patch BuildRequires: avahi-compat-mDNSResponder-devel BuildRequires: dcraw BuildRequires: fdupes BuildRequires: fftw3 BuildRequires: fftw3-threads-devel BuildRequires: hicolor-icon-theme BuildRequires: libdvdcss-devel BuildRequires: libfaac-devel BuildRequires: libfame-devel BuildRequires: libgsm-devel BuildRequires: libmp3lame-devel BuildRequires: libmysqlclient-devel BuildRequires: libsensors4-devel BuildRequires: libtool BuildRequires: libxvidcore-devel BuildRequires: lirc-devel BuildRequires: nasm BuildRequires: ncurses-devel BuildRequires: perl-libwww-perl BuildRequires: pkgconfig BuildRequires: python-curl BuildRequires: python-devel BuildRequires: python-future BuildRequires: python-lxml BuildRequires: python-mysql BuildRequires: python-oauth BuildRequires: python-urlgrabber BuildRequires: python-requests-cache BuildRequires: python-xml BuildRequires: transcode BuildRequires: update-desktop-files BuildRequires: yasm BuildRequires: perl(Config) BuildRequires: perl(DBD::mysql) BuildRequires: perl(DBI) BuildRequires: perl(Date::Manip) BuildRequires: perl(DateTime::Format::ISO8601) BuildRequires: perl(Exporter) BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(Fcntl) BuildRequires: perl(File::Copy) BuildRequires: perl(HTTP::Request) BuildRequires: perl(IO::Socket::INET6) BuildRequires: perl(Image::Size) BuildRequires: perl(JSON) BuildRequires: perl(LWP::Simple) BuildRequires: perl(LWP::UserAgent) BuildRequires: perl(Net::UPnP::ControlPoint) BuildRequires: perl(Net::UPnP::QueryResponse) BuildRequires: perl(SOAP::Lite) BuildRequires: perl(Sys::Hostname) BuildRequires: perl(XML::Simple) BuildRequires: perl(XML::XPath) BuildRequires: pkgconfig(Qt5Core) >= 5.2.0 BuildRequires: pkgconfig(Qt5DBus) BuildRequires: pkgconfig(Qt5Gui) BuildRequires: pkgconfig(Qt5Network) BuildRequires: pkgconfig(Qt5OpenGL) BuildRequires: pkgconfig(Qt5Script) BuildRequires: pkgconfig(Qt5Sql) BuildRequires: pkgconfig(Qt5WebKit) BuildRequires: pkgconfig(Qt5WebKitWidgets) BuildRequires: pkgconfig(Qt5Xml) BuildRequires: pkgconfig(alsa) BuildRequires: pkgconfig(dvdnav) BuildRequires: pkgconfig(dvdread) BuildRequires: pkgconfig(exiv2) BuildRequires: pkgconfig(fftw3) BuildRequires: pkgconfig(flac) BuildRequires: pkgconfig(freetype2) BuildRequires: pkgconfig(fribidi) BuildRequires: pkgconfig(jack) BuildRequires: pkgconfig(liba52) BuildRequires: pkgconfig(libass) BuildRequires: pkgconfig(libavc1394) BuildRequires: pkgconfig(libcdaudio) >= 0.99.6 BuildRequires: pkgconfig(libcdio) BuildRequires: pkgconfig(libcdio_cdda) BuildRequires: pkgconfig(libcec) >= 1.7.0 BuildRequires: pkgconfig(libdca) BuildRequires: pkgconfig(libexif) BuildRequires: pkgconfig(libiec61883) BuildRequires: pkgconfig(libpulse) BuildRequires: pkgconfig(libraw1394) BuildRequires: pkgconfig(libva) BuildRequires: pkgconfig(libva-glx) BuildRequires: pkgconfig(libvisual-0.4) BuildRequires: pkgconfig(libxml-2.0) BuildRequires: pkgconfig(mad) BuildRequires: pkgconfig(mjpegtools) BuildRequires: pkgconfig(ogg) BuildRequires: pkgconfig(phonon4qt5) BuildRequires: pkgconfig(sdl) BuildRequires: pkgconfig(taglib) >= 1.7.0 BuildRequires: pkgconfig(theora) BuildRequires: pkgconfig(udev) BuildRequires: pkgconfig(uuid) BuildRequires: pkgconfig(vdpau) BuildRequires: pkgconfig(vorbis) BuildRequires: pkgconfig(vpx) BuildRequires: pkgconfig(x11) BuildRequires: pkgconfig(x264) BuildRequires: pkgconfig(xinerama) BuildRequires: pkgconfig(xmu) BuildRequires: pkgconfig(xproto) BuildRequires: pkgconfig(xrandr) BuildRequires: pkgconfig(xv) BuildRequires: pkgconfig(zlib) # FIXME: use proper Requires(pre/post/preun/...) PreReq: coreutils Conflicts: otherproviders(mythtv) Provides: %{name}-0_27 = %{version} Obsoletes: %{name}-0_27 < %{version} %{?systemd_requires} %ifarch %{ix86} x86_64 BuildRequires: xf86-video-intel BuildRequires: pkgconfig(gl) BuildRequires: pkgconfig(glu) %endif %ifarch %{arm} BuildRequires: -Mesa-libGL-devel BuildRequires: pkgconfig(glesv2) %endif %description MythTV provides a unified graphical interface for recording and viewing television programs. Refer to the mythtv package for more information. There are also several add-ons and themes available. In order to facilitate installations with smart/apt-get/yum and other related package resolvers this meta-package can be used to install all in one sweep. MythTV implements the following DVR features, and more, with a unified graphical interface: - Basic 'live-tv' functionality. Pause/Fast Forward/Rewind "live" TV. - Video compression using RTjpeg or MPEG-4, and support for DVB and hardware encoder cards/devices. - Program listing retrieval using XMLTV - Themable, semi-transparent on-screen display - Electronic program guide - Scheduled recording of TV programs - Resolution of conflicts between scheduled recordings - Basic video editing %package docs Summary: MythTV documentation Group: Documentation/HTML Conflicts: otherproviders(mythtv-docs) Provides: %{name}-0_27-docs = %{version} Obsoletes: %{name}-0_27-docs < %{version} BuildArch: noarch %description docs A personal video recorder (PVR/DVR) application. This package contains the %{name} documentation files. %package -n %{soname}-%{sover} Summary: Library providing %{name} support Group: Development/Libraries/C and C++ Requires: libQt5Sql5-mysql Conflicts: otherproviders(mythtv-frontend-api) Provides: lib%{name}-%{sover} = %{version} Provides: mythtv-frontend-api = %{version} Provides: %{soname}-0_27 = %{version} Obsoletes: %{soname}-0_27 < %{version} %description -n %{soname}-%{sover} A personal video recorder (PVR/DVR) application. Common library code for %{name} and add-on modules (development). %package devel Summary: Development files for %{soname} Group: Development/Libraries/C and C++ Requires: lib%{name}-%{sover} = %{version} Conflicts: otherproviders(mythtv-devel) Provides: %{soname}-0_27-devel = %{version} Obsoletes: %{soname}-0_27-devel < %{version} %description devel A personal video recorder (PVR/DVR) application. This package contains the header files and libraries for developing add-ons for %{name}. %package base-themes Summary: Core user interface themes for %{name} Group: Productivity/Multimedia/Video/Players Recommends: droid-fonts Conflicts: otherproviders(mythtv-base-themes) Provides: %{name}-0_27-base-themes = %{version} Obsoletes: %{name}-0_27-base-themes < %{version} BuildArch: noarch %description base-themes A personal video recorder (PVR/DVR) application. This package contains the base themes for the %{name} user interface. %package common Summary: Common components needed by %{name} Group: Productivity/Multimedia/Video/Players Conflicts: otherproviders(mythtv-common) Provides: %{name}-0_27-common = %{version} Obsoletes: %{name}-0_27-common < %{version} %description common A personal video recorder (PVR/DVR) application. This package contains components needed by multiple other %{name} components. %package frontend Summary: Client component of %{name} (a PVR) Group: Productivity/Multimedia/Video/Players Requires: %(rpm -qf $(readlink -qne %{_libdir}/libcec.so) --qf '%%{NAME} >= %%{VERSION}') Requires: %{name}-base-themes = %{version} Requires: %{name}-common = %{version} Requires: %{name}-frontend-api = %{version} Conflicts: otherproviders(mythvideo) Provides: %{name}-0_27-frontend = %{version} Obsoletes: %{name}-0_27-frontend < %{version} Provides: mythvideo = %{version} %description frontend MythTV provides a unified graphical interface for recording and viewing television programs. This package contains only the client software, which provides a front-end for playback and configuration. It requires access to a %{name}-backend installation, either on the same system or one reachable via the network. %package backend Summary: Server component of %{name} (a DVR) Group: Productivity/Multimedia/Video/Players Requires: %{name}-common = %{version} Requires(pre): %fillup_prereq Requires(pre): coreutils Requires(pre): shadow Requires(pre): util-linux-systemd Recommends: logrotate Conflicts: otherproviders(mythtv-backend) Provides: %{name}-0_27-backend = %{version} Obsoletes: %{name}-0_27-backend < %{version} %if 0%{?suse_version} > 1320 Requires(pre): system-group-hardware %endif %description backend MythTV provides a unified graphical interface for recording and viewing television programs. This package contains only the server software, which provides video and audio capture and encoding services. In order to be useful, it requires a %{name}-frontend installation, either on the same system or one reachable via the network. %package setup Summary: Setup the %{name} backend Group: Productivity/Multimedia/Video/Players Requires: %{name}-backend = %{version} Requires: %{name}-base-themes = %{version} Conflicts: otherproviders((mythtv-setup) Provides: %{name}-0_27-setup = %{version} Obsoletes: %{name}-0_27-setup < %{version} %description setup A personal video recorder (PVR/DVR) application. This package contains the program which sets up the database to use a machine as a backend server. %package -n perl-%{name} Summary: Perl bindings for %{name} Group: Development/Libraries/Perl Requires: perl(DBD::mysql) Requires: perl(Net::UPnP) Requires: perl(Net::UPnP::ControlPoint) Conflicts: otherproviders(perl-mythtv) Provides: perl-MythTV-0_27 = %{version} Obsoletes: perl-MythTV-0_27 < %{version} BuildArch: noarch %{perl_requires} %description -n perl-%{name} A personal video recorder (PVR/DVR) application. Provides a perl-based interface to interacting with %{name}. %package -n python-%{name} Summary: Python bindings for %{name} Group: Development/Libraries/Python Requires: python-future Requires: python-lxml Requires: python-mysql Requires: python-requests-cache Conflicts: otherproviders(python-mythtv) Provides: python-MythTV-0_27 = %{version} Obsoletes: python-MythTV-0_27 < %{version} BuildArch: noarch %description -n python-%{name} A personal video recorder (PVR/DVR) application. Provides a python-based interface to interacting with %{name}. %package -n php-%{name} Summary: PHP bindings for %{name} Group: Development/Libraries/Other Requires: perl-%{name} Conflicts: otherproviders(php-mythtv) Provides: php-MythTV-0_27 = %{version} Obsoletes: php-MythTV-0_27 < %{version} BuildArch: noarch %description -n php-%{name} A personal video recorder (PVR/DVR) application. Provides a php-based interface to interacting with MythTV. %package -n mytharchive Summary: A module for %{name} for creating and burning DVDs Group: Productivity/Multimedia/Video/Players Requires: %{_bindir}/cdrecord Requires: %{_bindir}/mkisofs Requires: dvd+rw-tools Requires: dvdauthor Requires: ffmpeg Requires: mjpegtools Requires: python-imaging Requires: transcode Conflicts: otherproviders(mytharchive) Provides: mytharchive-0_27 = %{version} Obsoletes: mytharchive-0_27 < %{version} %description -n mytharchive A personal video recorder (PVR/DVR) application. MythArchive is a new plugin for MythTV that lets you create DVDs from your recorded shows, MythVideo files and any video files available on your system. %package -n mythbrowser Summary: A small web browser module for %{name} Group: Productivity/Multimedia/Video/Players Conflicts: otherproviders(mythbrowser) Provides: mythbrowser-0_27 = %{version} Obsoletes: mythbrowser-0_27 < %{version} %description -n mythbrowser A personal video recorder (PVR/DVR) application. MythBrowser is a full fledged web-browser (multiple tabs) to display webpages in full-screen mode. Simple page navigation is possible. Starting with version 0.13 it also has full support for mouse driven navigation (right mouse opens and clos es the popup menu). MythBrowser also contains a BookmarkManager to manage the website links in a simple mythplugin. %package -n mythgallery Summary: Image gallery plugin for %{name} Group: Productivity/Multimedia/Video/Players Requires: %{name}-frontend-api = %{version} Requires: dcraw Conflicts: otherproviders(mythgallery) Provides: mythgallery-0_27 = %{version} Obsoletes: mythgallery-0_27 < %{version} %description -n mythgallery A personal video recorder (PVR/DVR) application. The MythGallery plug-in allows you to view all your photos as well as short movies from your digital camera. Myth Gallery will show your photos as they are organised in your file system. Myth will generate thumbnails of both folders as well as individual photos. %package -n mythgame Summary: A game frontend (xmame, nes, snes, pc) for %{name} Group: Productivity/Multimedia/Video/Players Requires: %{name}-frontend-api = %{version} Conflicts: otherproviders(mythgame) Provides: mythgame-0_27 = %{version} Obsoletes: mythgame-0_27 < %{version} %description -n mythgame A personal video recorder (PVR/DVR) application. MythGame is a starter for games and emulators, so they can be run from within %{name}. %package -n mythmusic Summary: The music player add-on module for %{name} Group: Productivity/Multimedia/Video/Players Requires: %{name}-frontend-api = %{version} Conflicts: otherproviders(mythmusic) Provides: mythmusic-0_27 = %{version} Obsoletes: mythmusic-0_27 < %{version} %description -n mythmusic A personal video recorder (PVR/DVR) application. MythMusic is a sophisticated MythTV plugin that allows you to play and manage music and audio files .i.e MP3, Ogg, FLAC, wav etc and play radio streams from the likes of Icecast, Sky FM, Digitally Imported and Radionomy. %package -n mythnetvision Summary: MythTV Plugin for watching internet content Group: Productivity/Multimedia/Video/Players Requires: perl Requires: python-%{name} = %{version} Requires: python-curl Requires: python-oauth Requires: python-xml Conflicts: otherproviders(mythnetvision) Provides: mythnetvision-0_27 = %{version} Obsoletes: mythnetvision-0_27 < %{version} %description -n mythnetvision A personal video recorder (PVR/DVR) application. MythNetvision is a plugin designed to make adding Internet video sources to MythTV fun and easy. MythNetvision consists of two components-- a search screen and a site/RSS browser screen. When installed, MythNetvision appears on the Media Library screen as the options "Search Internet Video" and "Browse Internet Video." %package -n mythnews Summary: An RSS news feed plugin for %{name} Group: Productivity/Multimedia/Video/Players Requires: %{name}-frontend-api = %{version} Conflicts: otherproviders(mythnews) Provides: mythnews-0_27 = %{version} Obsoletes: mythnews-0_27 < %{version} %description -n mythnews A personal video recorder (PVR/DVR) application. MythNews is a module which permits the user to follow their favorite news sources, available in RSS format. %package -n mythweather Summary: A %{name} module that displays a weather forcast Group: Productivity/Multimedia/Video/Players Requires: %{name}-frontend-api = %{version} Requires: perl(DateTime::Format::ISO8601) Requires: perl(Image::Size) Requires: perl(SOAP::Lite) Requires: perl(XML::SAX::Base) Requires: perl(XML::XPath) Conflicts: otherproviders(mythweather) Provides: mythweather-0_27 = %{version} Obsoletes: mythweather-0_27 < %{version} %description -n mythweather A personal video recorder (PVR/DVR) application. MythWeather is a plugin that downloads and displays weather information. %package -n mythzoneminder Summary: A module for %{name} for camera security and surveillance Group: Productivity/Multimedia/Video/Players Requires: %{name}-frontend-api = %{version} Conflicts: otherproviders(mythzoneminder) Provides: mythzoneminder-0_27 = %{version} Obsoletes: mythzoneminder-0_27 < %{version} %description -n mythzoneminder A personal video recorder (PVR/DVR) application. MythZoneMinder is a plugin to interface to some of the features of ZoneMinder. You can use it to view a status window similar to the console window in ZM. Also there are screens to view live camera shots and replay recorded events. %prep %setup -q -n %{name}-fixes-%{version} # Check app version _newversion=$(grep -os '[0-9]\+\.[.0-9]\+\?[0-9]' %{name}/VERSION) _oldversion=$(echo %{version} | grep -o '[0-9]\+\.[.0-9]\+\?[0-9]') if [ -n "$_newversion" ]; then if [ -f %_sourcedir/_service ]; then if [[ "$_oldversion" != $_newversion ]]; then "You need to update the version number in the _service file: $_newversion" 2> /dev/null fi fi fi # Fix build gcc6 # Don't use -isystem /usr/include find . -type f -name \*.pro | while read file; do echo "QMAKE_CFLAGS_ISYSTEM =" >> "$file" done if [ "%{_lib}" != "lib" ]; then find \( -name 'configure' -o -name '*pro' -o -name 'Makefile*' \) \ -exec sed -r -i -e 's,/lib\b,/%{_lib},g' {} \+ fi sed -e 's|^\#\!.*python$|\#\!%{_bindir}/python2|' \ -i $(grep -rl 'env\ python') find -regex ".*\.\(html\|js\|xsl\)" -type f -executable -exec chmod 644 {} \; || : pushd %{name} %patch0 -p1 sed -i 's/\-ldconfig//;s/\-O3//' $(grep -rl '\-ldconfig\|\-O3') cp -a %{SOURCE93} %{SOURCE94} %{SOURCE95} %{SOURCE96} %{SOURCE97} %{SOURCE98} %{SOURCE99} . for file in mythbackend.service.in mythbackend.logrotate.in; do sed -e's|@USER@|%{USER}|g' \ -e's|@GROUP@|%{GROUP}|g' \ -i $file done FAKE_BUILDDATE=$(LC_ALL=C date -r %{_sourcedir}/%{name}.changes '+%b %e %Y') FAKE_BUILDTIME=$(LC_ALL=C date -r %{_sourcedir}/%{name}.changes '+%H:%M:%S') sed -e "s/__DATE__/\"$FAKE_BUILDDATE\"/" \ -e "s/__TIME__/\"$FAKE_BUILDTIME\"/" \ -i $(grep -rl '__DATE__\|__TIME__') || : popd %build export CFLAGS="%{optflags} -fomit-frame-pointer -fno-strict-aliasing" export CXXFLAGS="$CFLAGS" pushd %{name} # FIXME: you should use the %%configure macro ./configure \ --prefix=%{_prefix} \ --libdir=%{_libdir} \ --libdir-name=%{_lib} \ --mandir=%{_mandir} \ --enable-pthreads \ --enable-ffmpeg-pthreads \ --enable-joystick-menu \ --enable-audio-alsa \ --enable-audio-oss \ --enable-audio-jack \ --enable-libfftw3 \ --enable-x11 \ --x11-path=%{_includedir} \ --enable-xv \ --enable-opengl-video \ --enable-xrandr \ --enable-lirc \ --enable-ivtv \ --enable-firewire \ --enable-dvb \ --enable-libmp3lame \ --enable-libtheora --enable-libvorbis \ --enable-libxvid \ --enable-vdpau \ --enable-vaapi \ --enable-libfaac \ --enable-libx264 \ --enable-libvpx \ --enable-libxvid \ --enable-libdns-sd \ --enable-nonfree \ --extra-cflags="$CFLAGS" \ --extra-cxxflags="$CXXFLAGS" \ --extra-libs="-ldl" \ --compile-type=release \ --disable-stripping \ --enable-symbol-visibility \ --enable-pic \ --python=python2 %make_jobs OPTFLAGS="%{optflags}" popd mkdir temp temp=`pwd`/temp mkdir -p $temp%{perl_vendorlib} make %{?_smp_mflags} -C %{name} install INSTALL_ROOT=$temp if [ "%{_libdir}" != "%{_prefix}/lib" ]; then mv $temp/usr/lib{,64}/%{soname}zmq.* $temp%{_libdir} || : fi export LD_LIBRARY_PATH=$temp%{_libdir}:$LD_LIBRARY_PATH pushd mythplugins echo "QMAKE_PROJECT_DEPTH = 0" >> settings.pro find . -name \*.pro \ -exec sed -i -e "s,INCLUDEPATH += .\+/include/%{name},INCLUDEPATH += $temp%{_includedir}/%{name}," {} \; \ -exec sed -i -e "s,DEPLIBS = \$\${LIBDIR},DEPLIBS = $temp%{_libdir}," {} \; \ -exec sed -i -e "s,\$\${PREFIX}/include/%{name},$temp%{_includedir}/%{name}," {} \; cat >> settings.pro << EOF INCLUDEPATH -= \$\${PREFIX}/include INCLUDEPATH -= %{_includedir} INCLUDEPATH += $temp%{_includedir} INCLUDEPATH += %{_includedir} LIBS *= -L$temp%{_libdir} QMAKE_LIBDIR += $temp%{_libdir} EOF # check python libraries grep '^\ \+check_py_lib\ \+' configure \ | awk '{print $2}' \ | while read _check_py_lib do python <<EOF from distutils.sysconfig import get_python_lib import sys sys.path.append(get_python_lib(prefix="${temp}%{_prefix}")) print (get_python_lib(prefix="${temp}%{_prefix}")) import ${_check_py_lib} EOF done # FIXME: you should use the %%configure macro ./configure \ --prefix=${temp}%{_prefix} \ --libdir=%{_libdir} \ --libdir-name=%{_lib} \ --enable-exif \ --enable-new-exif \ --enable-dcraw \ --enable-opengl \ --enable-fftw \ --enable-cdio \ --compile-type=release \ --enable-mytharchive \ --enable-mythbrowser \ --enable-mythgallery \ --enable-mythgame \ --enable-mythmusic \ --enable-mythnetvision \ --enable-mythnews \ --enable-mythweather \ --enable-mythzoneminder \ --python=python2 %make_jobs popd %install pushd %{name} %qmake5_install install -d %{buildroot}{%{_sbindir},%{_libdir}/%{name}/plugins,%{_sysconfdir}/%{name}} if [ "%{_libdir}" != "%{_prefix}/lib" ]; then mv %{buildroot}%{_prefix}/lib{,64}/%{soname}zmq.* %{buildroot}%{_libdir} || : fi ln -sf %{name}-setup %{buildroot}%{_bindir}/%{name}setup echo "# to be filled in by %{name}-setup" > %{buildroot}%{_sysconfdir}/%{name}/config.xml install -Dm0644 {./,%{buildroot}%{_datadir}/icons/hicolor/scalable/apps}/mythfrontend.svg install -Dm0644 mythbackend.sysconfig.in %{buildroot}%{_fillupdir}/sysconfig.mythbackend install -Dm0644 mythbackend.service.in %{buildroot}%{_unitdir}/mythbackend.service ln -s %{_sbindir}/service %{buildroot}%{_sbindir}/rcmythbackend install -Dm0644 mythbackend.rules.in %{buildroot}/%{_udevrulesdir}/99-mythbackend.rules install -Dm0644 {./,%{buildroot}%{_datadir}/%{name}/build/}settings.pro install -Dm0644 mythbackend.SuSEfirewall2 %{buildroot}%{_sysconfdir}/sysconfig/SuSEfirewall2.d/services/mythbackend install -Dm0644 mythbackend.logrotate.in %{buildroot}%{_sysconfdir}/logrotate.d/%{name} install -d %{buildroot}$(sed -n 's/\ \+olddir\ \+//p' mythbackend.logrotate.in)$(grep -q 'olddir' mythbackend.logrotate.in) %{suse_update_desktop_file -c \ mythfrontend MythTV "PVR/DVR" mythfrontend mythfrontend Qt AudioVideo Video TV} %{suse_update_desktop_file -c \ %{name}-setup "MythTV Setup" "MythTV - Sets up the database" %{name}-setup mythfrontend Qt Settings Qt Utility Settings} # Fix: Unknown option -w/geometry in suse_update_desktop_file # Use the following lines instead of suse_update_desktop_file.sh for _application in medium-1024x576 small-800x450; do cat > %{buildroot}%{_datadir}/applications/mythfrontend-${_application#*-}.desktop << EOF [Desktop Entry] Encoding=UTF-8 Name=MythTV ${_application#*-} GenericName=PVR/DVR (${_application%-*} window size) Categories=Qt;AudioVideo;Video;TV; Type=Application Exec=mythfrontend -w -geometry ${_application#*-} Icon=mythfrontend EOF done install -Dm0644 %{name}-session.desktop %{buildroot}%{_datadir}/xsessions/%{name}.desktop popd install -d %{buildroot}%{_localstatedir}/{lib/%{name},log/%{name},cache/%{name}} pushd mythplugins %qmake5_install install -d %{buildroot}%{_localstatedir}/{lib/mythmusic,lib/pictures} install -d %{buildroot}%{_datadir}/%{name}/games/nes/{roms,screens} install -d %{buildroot}%{_datadir}/%{name}/games/snes/{roms,screens} install -d %{buildroot}%{_datadir}/{%{name}/games/PC/screens,mame,mame/flyers} install -d %{buildroot}%{_sysconfdir}/mythgame ln -s ../../mame %{buildroot}%{_datadir}/%{name}/games/xmame ln -s snap %{buildroot}%{_datadir}/%{name}/games/xmame/screens cp -a mythgame/gamelist.xml %{buildroot}%{_sysconfdir}/mythgame/ ln -s ../../../../../%{_sysconfdir}/mythgame/ \ %{buildroot}%{_datadir}/%{name}/games/PC/gamelist.xml popd find %{buildroot} -type f -name \*.py | while read py; do byte=$(dirname $py) %py_compile $byte done pushd %{buildroot} find . -path .%{_includedir}/%{name} -prune -o \ -iregex ".*\.\(la\|a\|pc\|hpp\|h\|.*/\..*\)" -print -exec rm {} \; popd %fdupes %{buildroot}%{_docdir} %fdupes %{buildroot}%{_datadir}/%{name} %fdupes %{buildroot}%{_includedir}/%{name} %post -n %{soname}-%{sover} -p /sbin/ldconfig %postun -n %{soname}-%{sover} -p /sbin/ldconfig %pre backend if [ $1 -eq 1 ]; then if ! %{_bindir}/id %{USER} &>/dev/null; then %{_sbindir}/useradd -r -c "MythTV Backend User" -g %{GROUP} -G %{OTHERGROUP} \ -s /sbin/nologin -d %{_localstatedir}/lib/%{name} %{USER} 2> /dev/null || : fi fi %service_add_pre mythbackend.service %post backend %{fillup_and_insserv -i -n mythbackend} %service_add_post mythbackend.service %udev_rules_update %preun backend %service_del_preun mythbackend.service %postun backend %service_del_postun mythbackend.service if [ $1 -eq 0 ]; then userdel %{USER} || logger "User \"%{USER}\" could not be deleted." rm -rf %{_localstatedir}/{lib/%{name},log/%{name},cache/%{name}} %udev_rules_update fi %if 0%{?suse_version} < 1500 %post frontend %icon_theme_cache_post %desktop_database_post %postun frontend %icon_theme_cache_postun %desktop_database_postun %endif %files docs %doc %{name}/README* %doc %{name}/UPGRADING %doc %{name}/AUTHORS %doc %{name}/COPYING %doc %{name}/FAQ %doc %{name}/database %doc %{name}/keys.txt %doc %{name}/docs %doc %{name}/contrib %files common %{_bindir}/mythcommflag %{_bindir}/mythtranscode %{_bindir}/mythffmpeg %{_bindir}/mythreplex %{_bindir}/mythccextractor %{_bindir}/mythmetadatalookup %{_bindir}/mythutil %{_bindir}/mythpreviewgen %{_bindir}/mythffprobe %{_bindir}/mythffserver %{_bindir}/mythhdhomerun_config %{_bindir}/mythscreenwizard %{_bindir}/mythfilerecorder %dir %{_datadir}/%{name} %{_datadir}/%{name}/mythconverg*.pl %dir %{_datadir}/%{name}/locales %{_datadir}/%{name}/locales/* %dir %{_datadir}/%{name}/metadata %{_datadir}/%{name}/metadata/* %dir %{_datadir}/%{name}/hardwareprofile %{_datadir}/%{name}/hardwareprofile/* %{_bindir}/mythwikiscripts %{_datadir}/%{name}/CDS_scpd.xml %{_datadir}/%{name}/CMGR_scpd.xml %{_datadir}/%{name}/MFEXML_scpd.xml %{_datadir}/%{name}/MSRR_scpd.xml %{_datadir}/%{name}/devicemaster.xml %{_datadir}/%{name}/deviceslave.xml %dir %{_sysconfdir}/%{name} %config(noreplace) %{_sysconfdir}/%{name}/config.xml %files backend %{_bindir}/mythbackend %{_bindir}/mythfilldatabase %{_bindir}/mythjobqueue %{_bindir}/mythmediaserver %{_datadir}/%{name}/html/ %{_datadir}/%{name}/backend-config %{_datadir}/%{name}/MXML_scpd.xml %{_fillupdir}/sysconfig.mythbackend %attr(0750,%{USER},%{GROUP}) %dir %{_localstatedir}/lib/mythtv %attr(0750,%{USER},%{GROUP}) %dir %{_localstatedir}/cache/mythtv %attr(0750,%{USER},%{GROUP}) %dir %{_localstatedir}/log/%{name} %attr(0750,%{USER},%{GROUP}) %dir %{_localstatedir}/log/%{name}/old %config %{_sysconfdir}/sysconfig/SuSEfirewall2.d/services/mythbackend %config %{_sysconfdir}/logrotate.d/%{name} %{_sbindir}/rcmythbackend %{_unitdir}/mythbackend.service %{_udevrulesdir}/99-mythbackend.rules %files setup %{_bindir}/%{name}-setup %{_bindir}/%{name}setup %{_datadir}/%{name}/setup.xml %{_datadir}/applications/*%{name}-setup.desktop %files frontend %{_bindir}/mythavtest %{_bindir}/mythfrontend %{_bindir}/mythlcdserver %{_bindir}/mythshutdown %{_bindir}/mythwelcome %{_libdir}/%{name}/filters %dir %{_libdir}/%{name} %dir %{_libdir}/%{name}/plugins %dir %{_datadir}/%{name}/i18n %{_datadir}/%{name}/i18n/mythfrontend_*.qm %{_datadir}/applications/mythfrontend*.desktop %{_datadir}/icons/hicolor/*/apps/mythfrontend.svg %{_datadir}/xsessions/%{name}.desktop %dir %{_datadir}/%{name}/fonts %{_datadir}/%{name}/fonts/*.ttf %{_datadir}/%{name}/fonts/*.otf %{_datadir}/%{name}/fonts/tiresias_gpl3.txt %files base-themes %dir %{_datadir}/%{name}/themes %{_datadir}/%{name}/themes/* %files -n %{soname}-%{sover} %{_libdir}/*.so.* %files devel %{_includedir}/%{name}/ %{_libdir}/*.so %dir %{_datadir}/%{name}/build %{_datadir}/%{name}/build/settings.pro %files -n perl-%{name} %{perl_vendorlib}/MythTV.pm %dir %{perl_vendorlib}/MythTV %{perl_vendorlib}/MythTV/*.pm %dir %{perl_vendorlib}/IO %dir %{perl_vendorlib}/IO/Socket %dir %{perl_vendorlib}/IO/Socket/INET %{perl_vendorlib}/IO/Socket/INET/MythTV.pm %files -n python-%{name} %dir %{python_sitelib}/MythTV/ %{_bindir}/mythpython %{python_sitelib}/MythTV/* %{python_sitelib}/MythTV-*.egg-info %files -n php-%{name} %dir %{_datadir}/%{name}/bindings %{_datadir}/%{name}/bindings/php %files -n mytharchive %{_bindir}/mytharchivehelper %{_libdir}/%{name}/plugins/%{soname}archive.so %{_datadir}/%{name}/archivemenu.xml %{_datadir}/%{name}/archiveutils.xml %{_datadir}/%{name}/mytharchive/ %{_datadir}/%{name}/i18n/mytharchive_*.qm %files -n mythbrowser %{_libdir}/%{name}/plugins/%{soname}browser.so %{_datadir}/%{name}/i18n/mythbrowser_*.qm %files -n mythgallery %{_libdir}/%{name}/plugins/%{soname}gallery.so %{_datadir}/%{name}/i18n/mythgallery_*.qm %{_localstatedir}/lib/pictures %files -n mythgame %dir %{_sysconfdir}/mythgame %config(noreplace) %{_sysconfdir}/mythgame/gamelist.xml %{_libdir}/%{name}/plugins/%{soname}game.so %dir %{_datadir}/%{name}/games %dir %{_datadir}/%{name}/games/PC %{_datadir}/%{name}/games/PC/gamelist.xml %{_datadir}/%{name}/games/xmame %dir %{_datadir}/mame %{_datadir}/mame/screens %dir %{_datadir}/mame/flyers %{_datadir}/%{name}/game_settings.xml %{_datadir}/%{name}/i18n/mythgame_*.qm %files -n mythmusic %{_libdir}/%{name}/plugins/%{soname}music.so %{_localstatedir}/lib/mythmusic %{_datadir}/%{name}/musicmenu.xml %{_datadir}/%{name}/music_settings.xml %{_datadir}/%{name}/i18n/mythmusic_*.qm %files -n mythnetvision %{_bindir}/mythfillnetvision %{_libdir}/%{name}/plugins/%{soname}netvision.so %{_datadir}/%{name}/mythnetvision/ %{_datadir}/%{name}/netvisionmenu.xml %{_datadir}/%{name}/i18n/mythnetvision_*.qm %{_datadir}/%{name}/internetcontent/ %files -n mythnews %{_libdir}/%{name}/plugins/%{soname}news.so %{_datadir}/%{name}/mythnews/ %{_datadir}/%{name}/i18n/mythnews_*.qm %files -n mythweather %{_libdir}/%{name}/plugins/%{soname}weather.so %{_datadir}/%{name}/i18n/mythweather_*.qm %{_datadir}/%{name}/weather_settings.xml %{_datadir}/%{name}/mythweather/ %files -n mythzoneminder %{_bindir}/mythzmserver %{_datadir}/%{name}/zonemindermenu.xml %{_datadir}/%{name}/i18n/mythzoneminder_*.qm %{_libdir}/%{name}/plugins/%{soname}zoneminder.so %exclude %{_datadir}/%{name}/fonts/README-TeX-Gyre-Chorus.txt %exclude %{_datadir}/%{name}/fonts/README-droid.txt %exclude %{_datadir}/%{name}/fonts/README-freefont-20120503.txt %exclude %{_datadir}/%{name}/fonts/README-purisa.txt %changelog
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.