Ticket #7090: rpmpatch.diff
File rpmpatch.diff, 22.6 KB (added by , 15 years ago) |
---|
-
packaging/rpm/mythtv.spec
3 3 # 4 4 # by: Chris Petersen <rpm@forevermore.net> 5 5 # Jarod Wilson <jarod@wilsonet.com> 6 # James Twyford <jtwyford@gmail.com> 6 7 # 7 8 # Modified/Extended from the great (non-svn based) work of: 8 9 # Axel Thimm <Axel.Thimm@ATrpms.net> … … 11 12 # 12 13 # The latest version of this file can be found at: 13 14 # 14 # http:// www.mythtv.org/wiki/index.php/Mythtv-svn-rpmbuild.spec15 # http://svn.mythtv.org/svn/trunk/packaging/rpm/mythtv.spec 15 16 # 16 17 # Note: 17 18 # … … 60 61 %define desktop_vendor xris 61 62 62 63 # SVN Revision number and branch ID 63 %define _svnrev r21 24364 %define _svnrev r21924 64 65 %define branch trunk 65 66 66 67 # 67 68 # Basic descriptive tags for this package: 68 69 # 69 70 Name: mythtv 70 Summary: A digital video recorder (DVR) application .71 Summary: A digital video recorder (DVR) application 71 72 URL: http://www.mythtv.org/ 72 73 Group: Applications/Multimedia 73 74 … … 119 120 120 121 ################################################################################ 121 122 122 Source0: http://www.mythtv.org/mc/mythtv-%{version}.tar.bz2 123 Source1: http://www.mythtv.org/mc/mythplugins-%{version}.tar.bz2 123 Source0: mythtv-%{version}.tar.bz2 124 Source1: mythplugins-%{version}.tar.bz2 125 Source2: themes-%{version}.tar.bz2 124 126 Source10: PACKAGE-LICENSING 125 127 Source101: mythbackend.sysconfig.in 126 128 Source102: mythbackend.init.in … … 163 165 BuildRequires: libXxf86vm-devel 164 166 BuildRequires: mesa-libGLU-devel 165 167 BuildRequires: xorg-x11-proto-devel 166 %ifarch %{ix86} x86_64167 BuildRequires: xorg-x11-drv-i810-devel168 BuildRequires: xorg-x11-drv-openchrome-devel169 %endif170 168 171 169 # OpenGL video output and vsync support 172 170 BuildRequires: libGL-devel, libGLU-devel … … 179 177 BuildRequires: gsm-devel 180 178 BuildRequires: lame-devel 181 179 BuildRequires: libdca-devel 182 # libdvdcss will be dynamically loaded if installed183 #BuildRequires: libdvdcss-devel >= 1.2.7184 180 BuildRequires: libdvdnav-devel 185 181 BuildRequires: libdvdread-devel >= 0.9.4 186 182 BuildRequires: libfame-devel >= 0.9.0 … … 193 189 BuildRequires: transcode >= 0.6.8 194 190 BuildRequires: x264-devel 195 191 BuildRequires: xvidcore-devel >= 0.9.1 196 BuildRequires: pulseaudio-libs-devel197 192 198 193 # Audio framework support 199 194 BuildRequires: alsa-lib-devel 200 BuildRequires: arts-devel201 195 BuildRequires: jack-audio-connection-kit-devel 196 BuildRequires: pulseaudio-libs-devel 202 197 203 198 # Need dvb headers to build in dvb support 204 199 BuildRequires: kernel-headers … … 276 271 277 272 Requires: libmyth = %{version}-%{release} 278 273 Requires: mythtv-backend = %{version}-%{release} 279 Requires: mythtv-base-themes = %{version}-%{release}280 274 Requires: mythtv-common = %{version}-%{release} 281 275 Requires: mythtv-docs = %{version}-%{release} 282 276 Requires: mythtv-frontend = %{version}-%{release} … … 285 279 Requires: python-MythTV = %{version}-%{release} 286 280 287 281 Requires: mythplugins = %{version}-%{release} 288 Requires: mythtv-themes = %{version} 282 Requires: mythtv-themes = %{version}-%{release} 289 283 290 284 Requires: mysql-server >= 5, mysql >= 5 291 285 # XMLTV is not yet packaged for rpmfusion … … 328 322 Summary: MythTV documentation 329 323 Group: Documentation 330 324 325 Requires: mythtv-common = %{version} 326 331 327 %description docs 332 328 The MythTV documentation, contrib files, database initialization file 333 329 and miscellaneous other bits and pieces. … … 335 331 ################################################################################ 336 332 337 333 %package -n libmyth 338 Summary: Library providing mythtv support .334 Summary: Library providing mythtv support 339 335 Group: System Environment/Libraries 340 336 341 337 Requires: freetype >= 2 … … 351 347 ################################################################################ 352 348 353 349 %package -n libmyth-devel 354 Summary: Development files for libmyth .350 Summary: Development files for libmyth 355 351 Group: Development/Libraries 356 352 357 353 Requires: libmyth = %{version}-%{release} … … 369 365 Requires: libXxf86vm-devel 370 366 Requires: mesa-libGLU-devel 371 367 Requires: xorg-x11-proto-devel 372 %ifarch %{ix86} x86_64373 Requires: xorg-x11-drv-i810-devel374 Requires: xorg-x11-drv-openchrome-devel375 %endif376 368 377 369 # OpenGL video output and vsync support 378 370 Requires: libGL-devel, libGLU-devel … … 385 377 Requires: gsm-devel 386 378 Requires: lame-devel 387 379 Requires: libdca-devel 388 #Requires: libdvdcss-devel >= 1.2.7389 380 Requires: libdvdnav-devel 390 381 Requires: libdvdread-devel >= 0.9.4 391 382 Requires: libfame-devel >= 0.9.0 … … 401 392 402 393 # Audio framework support 403 394 Requires: alsa-lib-devel 404 Requires: arts-devel405 395 Requires: jack-audio-connection-kit-devel 396 Requires: pulseaudio-libs-devel 406 397 407 398 # Need dvb headers for dvb support 408 399 Requires: kernel-headers … … 426 417 427 418 ################################################################################ 428 419 429 %package base-themes430 Summary: Core user interface themes for mythtv431 Group: Applications/Multimedia432 433 # Replace an old ATRMS package434 Provides: mythtv-theme-gant435 Obsoletes: mythtv-theme-gant436 437 %description base-themes438 MythTV provides a unified graphical interface for recording and viewing439 television programs. Refer to the mythtv-docs package for more information.440 441 This package contains the base themes for the mythtv user interface.442 443 ################################################################################444 445 420 %package frontend 446 421 Summary: Client component of mythtv (a DVR) 447 422 Group: Applications/Multimedia 448 423 Requires: freetype, lame 424 Requires: mythtv-themes = %{version}-%{release} 449 425 Requires: mythtv-common = %{version}-%{release} 450 Requires: mythtv-base-themes = %{version}451 426 Provides: mythtv-frontend-api = %{mythfeapiver} 452 427 Obsoletes: mythcontrols < %{version}-%{release} 453 428 Provides: mythcontrols = %{version}-%{release} … … 486 461 Group: Applications/Multimedia 487 462 Requires: freetype 488 463 Requires: mythtv-backend = %{version}-%{release} 489 Requires: mythtv-base-themes = %{version}490 464 491 465 %description setup 492 466 MythTV provides a unified graphical interface for recording and viewing … … 517 491 # Wish we could do this: 518 492 #BuildArch: noarch 519 493 494 Requires: mythtv-common = %{version} 520 495 Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) 521 496 Requires: perl(DBD::mysql) 522 # Disabled because there are no RPM packages for these yet, 523 # and RPM doesn't seem to be picking up on CPAN versions 524 #Requires: perl(Net::UPnP) 525 #Requires: perl(Net::UPnP::ControlPoint) 497 Requires: perl(Net::UPnP) 498 Requires: perl(Net::UPnP::ControlPoint) 526 499 527 500 %description -n perl-MythTV 528 501 Provides a perl-based interface to interacting with MythTV. … … 539 512 # Wish we could do this: 540 513 #BuildArch: noarch 541 514 515 Requires: mythtv-common = %{version} 542 516 Requires: MySQL-python 543 517 544 518 %description -n python-MythTV … … 548 522 549 523 ################################################################################ 550 524 525 %package themes 526 Summary: Additional themes for mythtv's frontend 527 Group: Applications/Multimedia 528 Requires: mythtv-common 529 BuildArch: noarch 530 531 %description themes 532 MythTV provides a unified graphical interface for recording and viewing 533 television programs. Refer to the mythtv-docs package for more information. 534 535 This package contains themes for the mythtv user interface. 536 537 ################################################################################ 538 551 539 %if %{with_plugins} 552 540 553 541 # Meta package for all mythtv plugins … … 651 639 %description -n mythgame 652 640 A game frontend (xmame, nes, snes, pc) for MythTV. 653 641 654 ################################################################################655 #package -n mythgame-emulators656 #Summary: Meta-package requiring emulators for game types mythgame knows about657 #Group: Applications/Multimedia658 #Requires: mythgame = %{version}-%{release}659 # Multi Arcade Machine Emulator, Amiga, Atari 2600660 #Requires: sdlmame661 #Requires: e-uae662 #Requires: stella663 # Nintendo, Super Nintendo, Nintendo 64664 #Requires: fceultra665 #Requires: zsnes666 #Requires: mupen64, mupen64-ricevideo667 # Sega Genesis, Sega Master System, Game Gear668 #Requires: gens669 #Requires: dega-sdl670 #Requires: osmose671 # TurboGraphx 16 (and others)672 #Requires: mednafen673 674 #description -n mythgame-emulators675 #Meta-package requiring emulators for game types mythgame knows about.676 677 642 %endif 678 643 ################################################################################ 679 644 %if %{with_mythmovies} … … 759 724 %package -n mythweb 760 725 Summary: The web interface to MythTV 761 726 Group: Applications/Multimedia 727 Requires: mythtv-frontend-api = %{mythfeapiver} 762 728 Requires: httpd >= 1.3.26 763 729 Requires: php >= 5.1 764 730 Requires: php-mysql … … 792 758 793 759 %prep 794 760 %setup -q -c -a 1 795 761 %setup -q -T -D -c -a 2 796 762 # Replace static lib paths with %{_lib} so we build properly on x86_64 797 763 # systems, where the libs are actually in lib64. 798 764 if [ "%{_lib}" != "lib" ]; then 799 grep -rlZ /lib/. | xargs -r0 sed -i -e 's,/lib/,/%{_lib}/,g'800 grep -rlZ /lib$. | xargs -r0 sed -i -e 's,/lib$,/%{_lib},'765 grep -rlZ '/lib/' . | xargs -r0 sed -i -e 's,/lib/,/%{_lib}/,g' 766 grep -rlZ '/lib$' . | xargs -r0 sed -i -e 's,/lib$,/%{_lib},' 801 767 grep -rlZ '/lib ' . | xargs -r0 sed -i -e 's,/lib ,/%{_lib} ,g' 802 768 fi 803 769 … … 891 857 --libdir=%{_libdir} \ 892 858 --libdir-name=%{_lib} \ 893 859 --mandir=%{_mandir} \ 894 --enable-iptv 860 --enable-iptv \ 895 861 --enable-pthreads \ 896 862 --enable-ffmpeg-pthreads \ 897 863 --enable-joystick-menu \ 898 --enable-audio-arts \899 864 --enable-audio-alsa \ 900 865 --enable-audio-oss \ 901 866 --enable-audio-jack \ … … 947 912 --compile-type=release \ 948 913 %endif 949 914 --enable-debug 950 ### --enable-libx264 \951 915 952 916 # Insert rpm version-release for mythbackend --version output 953 917 find . -name version.pro -exec sed -i -e 's,svnversion \$\${SVNTREEDIR},echo "%{version}-%{release}",g' {} \; … … 962 926 make -C mythtv-%{version} install INSTALL_ROOT=$temp 963 927 export LD_LIBRARY_PATH=$temp%{_libdir}:$LD_LIBRARY_PATH 964 928 965 # Next, we build the plugins 929 #next we build myththemes 930 cd themes-%{version} 931 find . -name \*.pro \ 932 -exec sed -i -e "s,INCLUDEPATH += .\+/include/mythtv,INCLUDEPATH += $temp%{_includedir}/mythtv," {} \; \ 933 -exec sed -i -e "s,DEPLIBS = \$\${LIBDIR},DEPLIBS = $temp%{_libdir}," {} \; \ 934 -exec sed -i -e "s,\$\${PREFIX}/include/mythtv,$temp%{_includedir}/mythtv," {} \; 935 sed -i -e "s|\$prefix/include/mythtv|$temp%{_includedir}/mythtv|" configure 936 ./configure \ 937 --prefix=${temp}%{_prefix} \ 938 --libdir=%{_libdir} \ 939 --libdir-name=%{_lib} 940 cd .. 941 942 # Finally, we build the plugins 966 943 %if %{with_plugins} 967 944 cd mythplugins-%{version} 968 945 … … 1111 1088 1112 1089 cd .. 1113 1090 1091 #install themes 1092 cd themes-%{version} 1093 make install INSTALL_ROOT=%{buildroot} 1094 chmod a-x %{buildroot}%{_datadir}/mythtv/themes/default/htmls/*.html 1095 cd .. 1096 1114 1097 # MythPlugins 1115 1098 %if %{with_plugins} 1116 1099 cd mythplugins-%{version} … … 1122 1105 %endif 1123 1106 %if %{with_mythvideo} 1124 1107 mkdir -p %{buildroot}%{_localstatedir}/lib/mythvideo 1108 chmod a+x %{buildroot}%{_datadir}/mythtv/mythvideo/scripts/ttvdb/{tvdb*,cache}.py 1125 1109 %endif 1126 1110 %if %{with_mythgallery} 1127 1111 mkdir -p %{buildroot}%{_localstatedir}/lib/pictures … … 1129 1113 %if %{with_mythgame} 1130 1114 mkdir -p %{buildroot}%{_datadir}/mythtv/games/nes/{roms,screens} 1131 1115 mkdir -p %{buildroot}%{_datadir}/mythtv/games/snes/{roms,screens} 1132 # mkdir -p %{buildroot}%{_datadir}/mythtv/games/mame/{roms,screens,flyers,cabs}1133 1116 mkdir -p %{buildroot}%{_datadir}/mythtv/games/PC/screens 1134 1117 mkdir -p %{buildroot}%{_datadir}/mame 1135 1118 ln -s ../../mame %{buildroot}%{_datadir}/mythtv/games/xmame … … 1146 1129 mkdir -p %{buildroot}%{_datadir}/mythweb 1147 1130 cp -a * %{buildroot}%{_datadir}/mythweb/ 1148 1131 mkdir -p %{buildroot}%{_datadir}/mythweb/{image_cache,php_sessions} 1149 # fix up permissions 1150 chmod -R g-x %{buildroot}%{_datadir}/mythweb 1151 1132 chmod a-x %{buildroot}%{_datadir}/mythweb/classes/*.php 1152 1133 mkdir -p %{buildroot}%{_sysconfdir}/httpd/conf.d 1153 1134 cp %{SOURCE401} %{buildroot}%{_sysconfdir}/httpd/conf.d/ 1154 # drop .htaccess file, settings handled in the above1155 1135 rm -f %{buildroot}%{_datadir}/mythweb/data/.htaccess 1156 1136 cd .. 1157 1137 %endif … … 1160 1140 cd .. 1161 1141 %endif 1162 1142 1143 1163 1144 ################################################################################ 1164 1145 1165 1146 %clean … … 1175 1156 # Add the "mythtv" user 1176 1157 /usr/sbin/useradd -c "mythtvbackend User" \ 1177 1158 -s /sbin/nologin -r -d %{_varlibdir}/mythtv mythtv 2> /dev/null || : 1159 /usr/sbin/usermod -a -G video 1178 1160 1179 1161 %post backend 1180 1162 /sbin/chkconfig --add mythbackend … … 1239 1221 %{_datadir}/mythtv/devicemaster.xml 1240 1222 %{_datadir}/mythtv/deviceslave.xml 1241 1223 %{_datadir}/mythtv/setup.xml 1224 %{_bindir}/mythavtest 1242 1225 %{_bindir}/mythfrontend 1243 %{_bindir}/mythtv1244 1226 %{_bindir}/mythtvosd 1245 1227 %{_bindir}/mythlcdserver 1246 1228 %{_bindir}/mythshutdown … … 1255 1237 %{_datadir}/applications/*mythfrontend.desktop 1256 1238 %{_datadir}/pixmaps/myth*.png 1257 1239 1258 %files base-themes1240 %files themes 1259 1241 %defattr(-,root,root,-) 1260 1242 %dir %{_datadir}/mythtv/themes 1261 1243 %{_datadir}/mythtv/themes/* … … 1320 1302 %doc mythplugins-%{version}/mythbrowser/AUTHORS 1321 1303 %doc mythplugins-%{version}/mythbrowser/COPYING 1322 1304 %doc mythplugins-%{version}/mythbrowser/README 1323 %{_bindir}/mythbrowser 1324 %{_libdir}/mythtv/plugins/libmythbookmarkmanager.so 1305 %{_libdir}/mythtv/plugins/libmythbrowser.so 1325 1306 %{_datadir}/mythtv/i18n/mythbrowser_*.qm 1326 1307 %endif 1327 1308 … … 1361 1342 %dir %{_datadir}/mame/flyers 1362 1343 %{_datadir}/mythtv/game_settings.xml 1363 1344 %{_datadir}/mythtv/i18n/mythgame_*.qm 1364 1365 #files -n mythgame-emulators1366 #defattr(-,root,root,-)1367 #{_datadir}/mythtv/games/xmame1368 #{_datadir}/mame/screens1369 #{_datadir}/mame/flyers1370 1345 %endif 1371 1346 1372 1347 %if %{with_mythmovies} … … 1435 1410 %defattr(-,root,root,-) 1436 1411 %doc mythplugins-%{version}/mythweb/README 1437 1412 %config(noreplace) %{_sysconfdir}/httpd/conf.d/mythweb.conf 1438 %defattr(-,apache,apache, 0775)1413 %defattr(-,apache,apache,-) 1439 1414 %dir %{_datadir}/mythweb 1440 1415 %{_datadir}/mythweb/* 1441 1416 %endif … … 1453 1428 ################################################################################ 1454 1429 1455 1430 %changelog 1431 * Thu Sep 17 2009 James Twyford <jtwyford@gmail.com> 0.22-0.2.svn 1432 - Merger of mythtv-themes into this spec 1433 - Updates to compile with trunk and other cleanups as suggested by rpmlint 1456 1434 1457 * Thu Aug 13 2009 Chris Petersen <rpm@forevermore.net> 0.22-0 1.svn1435 * Thu Aug 13 2009 Chris Petersen <rpm@forevermore.net> 0.22-0.1.svn 1458 1436 - Add XML::Simple requirement for mythvideo (for tmdb.pl) 1459 1437 - Remove now-deprecated call for XvMCNVIDIA_dynamic 1460 1438 1461 * Mon Jul 27 2009 Chris Petersen <rpm@forevermore.net> 0.22-0 1.svn1439 * Mon Jul 27 2009 Chris Petersen <rpm@forevermore.net> 0.22-0.1.svn 1462 1440 - Rename xvmcnvidia stuff to just nvidia, and add vdpau options to it 1463 1441 1464 * Sat Jul 25 2009 Chris Petersen <rpm@forevermore.net> 0.22-0 1.svn1442 * Sat Jul 25 2009 Chris Petersen <rpm@forevermore.net> 0.22-0.1.svn 1465 1443 - Remove all a52 references because ./configure no longer accepts even "disable" 1466 1444 - Remove non-GPL libfaac options (not really used by MythTV anyway) 1467 1445 1468 * Sun Jun 28 2009 Chris Petersen <rpm@forevermore.net> 0.22-0 1.svn1446 * Sun Jun 28 2009 Chris Petersen <rpm@forevermore.net> 0.22-0.1.svn 1469 1447 - Remove xvmc-opengl references that were removed in r20723 1470 1448 - Add requirement for pulseaudio-libs-devel now that some distros are requiring it 1471 1449 -
packaging/rpm/build_myth.sh
102 102 # Update the SVN checkout 103 103 updatesvn mythtv "$1" 104 104 updatesvn mythplugins "$1" 105 updatesvn themes "$1" 105 106 # Remove the existing libmyth-devel so it doesn't confuse qmake 106 107 # (we can't override the order of the include file path) 107 108 PKG=`rpm -q libmyth-devel` 108 109 if [ `expr match "$PKG" 'libmyth.*'` -gt 0 ]; then 109 echo "Removing existing libmyth-devel package to avoid conflicts "110 su do rpm -e libmyth-devel.i386 libmyth-devel.x86_64 2>/dev/null110 echo "Removing existing libmyth-devel package to avoid conflicts. Please enter root password." 111 su -c "rpm -e libmyth-devel" 111 112 fi 112 113 # Update the spec 113 114 updatespec $REL "$ABSPATH/mythtv.spec" 114 115 # Clean up any old tarballs that might exist 115 rm -f "$ABSPATH"/mythtv/ myth*.tar.bz2116 rm -f "$ABSPATH"/mythtv/*.tar.bz2 116 117 # Create the appropriate tarballs 117 118 echo "Creating tarballs from svn checkout at $SVNDIR" 118 119 cd "$SVNDIR" 119 for file in mythtv mythplugins ; do120 for file in mythtv mythplugins themes; do 120 121 if [ -d "$file-$VERSION" ]; then 121 122 rm -rf "$file-$VERSION" 122 123 fi … … 128 129 done 129 130 # Build MythTV 130 131 rpmbuild -bb "$ABSPATH"/mythtv.spec \ 131 --define "_sourcedir $ABSPATH/mythtv" \ 132 --with debug \ 133 --without mytharchive \ 134 --without mythgallery \ 135 --without mythgame \ 136 --without mythbrowser \ 137 --without mythmovies \ 138 --without mythnews \ 139 --without mythzoneminder 132 --define "_sourcedir $ABSPATH/mythtv" 140 133 # Error? 141 134 if [ "$?" -ne 0 ]; then 142 135 echo "MythTV build error." … … 152 145 fi 153 146 } 154 147 155 # Function to build mythtv themes packages156 function buildthemes {157 # Update the SVN checkout -- make sure not to158 svnupdate mythtv-themes "$1"159 # Update the spec160 updatespec $REL "$ABSPATH/mythtv-themes.spec"161 # Clean up any old tarballs that might exist162 rm -f "$ABSPATH"/mythtv-themes/*themes*.tar.bz2163 # Create the appropriate tarballs164 for file in myththemes themes; do165 if [ -d "$file-$VERSION" ]; then166 rm -rf "$file-$VERSION"167 fi168 echo -n " "169 mv "$file" "$file-$VERSION"170 tar jcf "$ABSPATH/mythtv-themes/$file-$VERSION.tar.bz2" --exclude .svn "$file-$VERSION"171 mv "$file-$VERSION" "$file"172 echo "$ABSPATH/mythtv-themes/$file-$VERSION.tar.bz2"173 done174 # Disabled until I can clean this up later -- themes now require libmyth in175 # order to compile.176 #177 ## Build MythTV Themes178 # rpmbuild -bb /usr/src/redhat/SPECS/mythtv-themes.spec179 ## Error?180 # if [ "$?" -ne 0 ]; then181 # echo "MythTV Themes build error."182 # return183 # fi184 }185 186 148 # A function to install mythtv packages 149 # This doesn't work when building as a user... 150 # There must be a way to get the %{_topdir} from the user's rpm macros 187 151 function installmyth { 188 152 REL="$1" 189 sudo rpm -Uvh --force --nodeps \ 190 /usr/src/redhat/RPMS/x86_64/mythtv-docs-$VERSION-0.3.svn.r$REL.*.rpm \ 191 /usr/src/redhat/RPMS/x86_64/libmyth-$VERSION-0.3.svn.r$REL.*.rpm \ 192 /usr/src/redhat/RPMS/x86_64/libmyth-devel-$VERSION-0.3.svn.r$REL.*.rpm \ 193 /usr/src/redhat/RPMS/x86_64/mythtv-base-themes-$VERSION-0.3.svn.r$REL.*.rpm \ 194 /usr/src/redhat/RPMS/x86_64/mythtv-frontend-$VERSION-0.3.svn.r$REL.*.rpm \ 195 /usr/src/redhat/RPMS/x86_64/mythtv-backend-$VERSION-0.3.svn.r$REL.*.rpm \ 196 /usr/src/redhat/RPMS/x86_64/mythtv-setup-$VERSION-0.3.svn.r$REL.*.rpm \ 197 /usr/src/redhat/RPMS/x86_64/mythtv-common-$VERSION-0.3.svn.r$REL.*.rpm \ 198 /usr/src/redhat/RPMS/x86_64/perl-MythTV-$VERSION-0.3.svn.r$REL.*.rpm \ 199 /usr/src/redhat/RPMS/x86_64/python-MythTV-$VERSION-0.3.svn.r$REL.*.rpm \ 200 /usr/src/redhat/RPMS/x86_64/mythmusic-$VERSION-0.3.svn.r$REL.*.rpm \ 201 /usr/src/redhat/RPMS/x86_64/mythvideo-$VERSION-0.3.svn.r$REL.*.rpm \ 202 /usr/src/redhat/RPMS/x86_64/mythweather-$VERSION-0.3.svn.r$REL.*.rpm \ 203 /usr/src/redhat/RPMS/x86_64/mythtv-debuginfo-$VERSION-0.3.svn.r$REL.*.rpm 204 #/usr/src/redhat/RPMS/x86_64/mythtv-themes-$VERSION-0.3.svn.r$REL.*.rpm \ 153 echo "Installing MythTV-$VERSION.r$REL. Please enter root password." 154 su -c "rpm -Uvh /usr/src/redhat/RPMS/x86_64/{libmyth,libmyth-devel,mytharchive,mythbrowser,mythflix,mythgallery,mythgame,mythmovies,mythmusic,mythnews,mythplugins,mythtv-backend,mythtv-common,mythtv-docs,mythtv-frontend,mythtv-setup,mythvideo,mythweather,mythweb,mythzoneminder,perl-MythTV,python-MythTV,mythtv}-$VERSION-0.3.svn.r$REL.*.rpm /usr/src/redhat/RPMS/noarch/mythtv-themes-$VERSION-0.3.svn.r$REL.*.rpm" 205 155 } 206 156 207 # And a function to install mythtv theme packages, since they need libmyth208 # to be already installed in order to build them209 function installthemes {210 REL="$1"211 }212 213 214 157 ############################################################################### 215 158 # Actually execute the program here 216 159 ############################################################################### … … 222 165 PROG=`basename $0` 223 166 224 167 # Check a few things for sanity 225 for PKG in 'mythtv' 'mythtv-themes'; do 226 # Make sure the spec exists 227 if [ ! -f "$ABSPATH/$PKG.spec" ]; then 228 echo "$ABSPATH/$PKG.spec does not exist" 229 exit 230 fi 231 # Make sure we have a sources directory 232 if [ ! -d "$ABSPATH/$PKG/" ]; then 233 echo "$ABSPATH/$PKG does not exist" 234 exit 235 fi 236 done 168 # Make sure the spec exists 169 if [ ! -f "$ABSPATH/mythtv.spec" ]; then 170 echo "$ABSPATH/mythtv.spec does not exist" 171 exit 172 fi 173 # Make sure we have a sources directory 174 if [ ! -d "$ABSPATH/mythtv/" ]; then 175 echo "$ABSPATH/mythtv/ does not exist" 176 exit 177 fi 237 178 238 179 # Auto-detect the source directory? 239 180 if [ -z "$SVNDIR" ]; then -
packaging/rpm/mythtv/mythbackend.init.in
28 28 touch @rundir@/mythbackend.pid; chown mythtv:mythtv @rundir@/mythbackend.pid 29 29 export MYTHCONFDIR="$MYTHTV_HOME" 30 30 export HOME="$MYTHTV_HOME" 31 daemon $binary $OPTIONS31 daemon --user mythtv $binary $OPTIONS 32 32 RETVAL=$? 33 33 echo 34 34 [ $RETVAL = 0 ] && touch @subsysdir@/$prog