Ticket #7090: rpmpatch.4.diff
| File rpmpatch.4.diff, 19.5 KB (added by , 16 years ago) |
|---|
-
packaging/rpm/mythtv.spec
11 11 # 12 12 # The latest version of this file can be found at: 13 13 # 14 # http:// www.mythtv.org/wiki/index.php/Mythtv-svn-rpmbuild.spec14 # http://svn.mythtv.org/svn/trunk/packaging/rpm/mythtv.spec 15 15 # 16 16 # Note: 17 17 # … … 60 60 %define desktop_vendor xris 61 61 62 62 # SVN Revision number and branch ID 63 %define _svnrev r21 24363 %define _svnrev r21927 64 64 %define branch trunk 65 65 66 66 # 67 67 # Basic descriptive tags for this package: 68 68 # 69 69 Name: mythtv 70 Summary: A digital video recorder (DVR) application .70 Summary: A digital video recorder (DVR) application 71 71 URL: http://www.mythtv.org/ 72 72 Group: Applications/Multimedia 73 73 … … 119 119 120 120 ################################################################################ 121 121 122 Source0: http://www.mythtv.org/mc/mythtv-%{version}.tar.bz2123 Source1: http://www.mythtv.org/mc/mythplugins-%{version}.tar.bz2122 Source0: mythtv-%{version}.tar.bz2 123 Source1: mythplugins-%{version}.tar.bz2 124 124 Source10: PACKAGE-LICENSING 125 125 Source101: mythbackend.sysconfig.in 126 126 Source102: mythbackend.init.in … … 163 163 BuildRequires: libXxf86vm-devel 164 164 BuildRequires: mesa-libGLU-devel 165 165 BuildRequires: xorg-x11-proto-devel 166 %ifarch %{ix86} x86_64167 BuildRequires: xorg-x11-drv-i810-devel168 BuildRequires: xorg-x11-drv-openchrome-devel169 %endif170 166 171 167 # OpenGL video output and vsync support 172 168 BuildRequires: libGL-devel, libGLU-devel … … 179 175 BuildRequires: gsm-devel 180 176 BuildRequires: lame-devel 181 177 BuildRequires: libdca-devel 182 # libdvdcss will be dynamically loaded if installed183 #BuildRequires: libdvdcss-devel >= 1.2.7184 178 BuildRequires: libdvdnav-devel 185 179 BuildRequires: libdvdread-devel >= 0.9.4 186 180 BuildRequires: libfame-devel >= 0.9.0 … … 193 187 BuildRequires: transcode >= 0.6.8 194 188 BuildRequires: x264-devel 195 189 BuildRequires: xvidcore-devel >= 0.9.1 196 BuildRequires: pulseaudio-libs-devel197 190 198 191 # Audio framework support 199 192 BuildRequires: alsa-lib-devel 200 BuildRequires: arts-devel201 193 BuildRequires: jack-audio-connection-kit-devel 194 BuildRequires: pulseaudio-libs-devel 202 195 203 196 # Need dvb headers to build in dvb support 204 197 BuildRequires: kernel-headers … … 328 321 Summary: MythTV documentation 329 322 Group: Documentation 330 323 324 Requires: mythtv-common = %{version} 325 331 326 %description docs 332 327 The MythTV documentation, contrib files, database initialization file 333 328 and miscellaneous other bits and pieces. … … 335 330 ################################################################################ 336 331 337 332 %package -n libmyth 338 Summary: Library providing mythtv support .333 Summary: Library providing mythtv support 339 334 Group: System Environment/Libraries 340 335 341 336 Requires: freetype >= 2 … … 351 346 ################################################################################ 352 347 353 348 %package -n libmyth-devel 354 Summary: Development files for libmyth .349 Summary: Development files for libmyth 355 350 Group: Development/Libraries 356 351 357 352 Requires: libmyth = %{version}-%{release} … … 369 364 Requires: libXxf86vm-devel 370 365 Requires: mesa-libGLU-devel 371 366 Requires: xorg-x11-proto-devel 372 %ifarch %{ix86} x86_64373 Requires: xorg-x11-drv-i810-devel374 Requires: xorg-x11-drv-openchrome-devel375 %endif376 367 377 368 # OpenGL video output and vsync support 378 369 Requires: libGL-devel, libGLU-devel … … 385 376 Requires: gsm-devel 386 377 Requires: lame-devel 387 378 Requires: libdca-devel 388 #Requires: libdvdcss-devel >= 1.2.7389 379 Requires: libdvdnav-devel 390 380 Requires: libdvdread-devel >= 0.9.4 391 381 Requires: libfame-devel >= 0.9.0 … … 401 391 402 392 # Audio framework support 403 393 Requires: alsa-lib-devel 404 Requires: arts-devel405 394 Requires: jack-audio-connection-kit-devel 395 Requires: pulseaudio-libs-devel 406 396 407 397 # Need dvb headers for dvb support 408 398 Requires: kernel-headers … … 517 507 # Wish we could do this: 518 508 #BuildArch: noarch 519 509 510 Requires: mythtv-common = %{version} 520 511 Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) 521 512 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) 513 Requires: perl(Net::UPnP) 514 Requires: perl(Net::UPnP::ControlPoint) 526 515 527 516 %description -n perl-MythTV 528 517 Provides a perl-based interface to interacting with MythTV. … … 539 528 # Wish we could do this: 540 529 #BuildArch: noarch 541 530 531 Requires: mythtv-common = %{version} 542 532 Requires: MySQL-python 543 533 544 534 %description -n python-MythTV … … 651 641 %description -n mythgame 652 642 A game frontend (xmame, nes, snes, pc) for MythTV. 653 643 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 644 %endif 678 645 ################################################################################ 679 646 %if %{with_mythmovies} … … 759 726 %package -n mythweb 760 727 Summary: The web interface to MythTV 761 728 Group: Applications/Multimedia 729 Requires: mythtv-frontend-api = %{mythfeapiver} 762 730 Requires: httpd >= 1.3.26 763 731 Requires: php >= 5.1 764 732 Requires: php-mysql … … 796 764 # Replace static lib paths with %{_lib} so we build properly on x86_64 797 765 # systems, where the libs are actually in lib64. 798 766 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},'767 grep -rlZ '/lib/' . | xargs -r0 sed -i -e 's,/lib/,/%{_lib}/,g' 768 grep -rlZ '/lib$' . | xargs -r0 sed -i -e 's,/lib$,/%{_lib},' 801 769 grep -rlZ '/lib ' . | xargs -r0 sed -i -e 's,/lib ,/%{_lib} ,g' 802 770 fi 803 771 … … 891 859 --libdir=%{_libdir} \ 892 860 --libdir-name=%{_lib} \ 893 861 --mandir=%{_mandir} \ 894 --enable-iptv \862 --enable-iptv \ 895 863 --enable-pthreads \ 896 864 --enable-ffmpeg-pthreads \ 897 865 --enable-joystick-menu \ 898 --enable-audio-arts \899 866 --enable-audio-alsa \ 900 867 --enable-audio-oss \ 901 868 --enable-audio-jack \ … … 947 914 --compile-type=release \ 948 915 %endif 949 916 --enable-debug 950 ### --enable-libx264 \951 917 952 918 # Insert rpm version-release for mythbackend --version output 953 919 find . -name version.pro -exec sed -i -e 's,svnversion \$\${SVNTREEDIR},echo "%{version}-%{release}",g' {} \; … … 1108 1074 1109 1075 mkdir -p %{buildroot}%{_datadir}/mythtv/build/ 1110 1076 install -p -m 644 settings.pro %{buildroot}%{_datadir}/mythtv/build/ 1111 1077 # fix the base themes 1078 chmod a-x %{buildroot}%{_datadir}/mythtv/themes/default/htmls/*.html 1112 1079 cd .. 1113 1080 1114 1081 # MythPlugins … … 1122 1089 %endif 1123 1090 %if %{with_mythvideo} 1124 1091 mkdir -p %{buildroot}%{_localstatedir}/lib/mythvideo 1092 chmod a+x %{buildroot}%{_datadir}/mythtv/mythvideo/scripts/ttvdb/{tvdb*,cache}.py 1125 1093 %endif 1126 1094 %if %{with_mythgallery} 1127 1095 mkdir -p %{buildroot}%{_localstatedir}/lib/pictures … … 1129 1097 %if %{with_mythgame} 1130 1098 mkdir -p %{buildroot}%{_datadir}/mythtv/games/nes/{roms,screens} 1131 1099 mkdir -p %{buildroot}%{_datadir}/mythtv/games/snes/{roms,screens} 1132 # mkdir -p %{buildroot}%{_datadir}/mythtv/games/mame/{roms,screens,flyers,cabs}1133 1100 mkdir -p %{buildroot}%{_datadir}/mythtv/games/PC/screens 1134 1101 mkdir -p %{buildroot}%{_datadir}/mame 1135 1102 ln -s ../../mame %{buildroot}%{_datadir}/mythtv/games/xmame … … 1147 1114 cp -a * %{buildroot}%{_datadir}/mythweb/ 1148 1115 mkdir -p %{buildroot}%{_datadir}/mythweb/{image_cache,php_sessions} 1149 1116 # fix up permissions 1150 chmod -R g-x %{buildroot}%{_datadir}/mythweb1117 chmod a-x %{buildroot}%{_datadir}/mythweb/classes/*.php 1151 1118 1152 1119 mkdir -p %{buildroot}%{_sysconfdir}/httpd/conf.d 1153 1120 cp %{SOURCE401} %{buildroot}%{_sysconfdir}/httpd/conf.d/ … … 1160 1127 cd .. 1161 1128 %endif 1162 1129 1130 1163 1131 ################################################################################ 1164 1132 1165 1133 %clean … … 1175 1143 # Add the "mythtv" user 1176 1144 /usr/sbin/useradd -c "mythtvbackend User" \ 1177 1145 -s /sbin/nologin -r -d %{_varlibdir}/mythtv mythtv 2> /dev/null || : 1146 /usr/sbin/usermod -a -G video mythtv 1178 1147 1179 1148 %post backend 1180 1149 /sbin/chkconfig --add mythbackend … … 1239 1208 %{_datadir}/mythtv/devicemaster.xml 1240 1209 %{_datadir}/mythtv/deviceslave.xml 1241 1210 %{_datadir}/mythtv/setup.xml 1211 %{_bindir}/mythavtest 1242 1212 %{_bindir}/mythfrontend 1243 %{_bindir}/mythtv1244 1213 %{_bindir}/mythtvosd 1245 1214 %{_bindir}/mythlcdserver 1246 1215 %{_bindir}/mythshutdown … … 1320 1289 %doc mythplugins-%{version}/mythbrowser/AUTHORS 1321 1290 %doc mythplugins-%{version}/mythbrowser/COPYING 1322 1291 %doc mythplugins-%{version}/mythbrowser/README 1323 %{_bindir}/mythbrowser 1324 %{_libdir}/mythtv/plugins/libmythbookmarkmanager.so 1292 %{_libdir}/mythtv/plugins/libmythbrowser.so 1325 1293 %{_datadir}/mythtv/i18n/mythbrowser_*.qm 1326 1294 %endif 1327 1295 … … 1361 1329 %dir %{_datadir}/mame/flyers 1362 1330 %{_datadir}/mythtv/game_settings.xml 1363 1331 %{_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 1332 %endif 1371 1333 1372 1334 %if %{with_mythmovies} … … 1435 1397 %defattr(-,root,root,-) 1436 1398 %doc mythplugins-%{version}/mythweb/README 1437 1399 %config(noreplace) %{_sysconfdir}/httpd/conf.d/mythweb.conf 1438 %defattr(-,apache,apache, 0775)1400 %defattr(-,apache,apache,-) 1439 1401 %dir %{_datadir}/mythweb 1440 1402 %{_datadir}/mythweb/* 1441 1403 %endif … … 1453 1415 ################################################################################ 1454 1416 1455 1417 %changelog 1418 * Thu Sep 17 2009 James Twyford <jtwyford@gmail.com> 0.22-0.2.svn 1419 - Updates to compile with trunk and other cleanups as suggested by rpmlint 1456 1420 1457 * Thu Aug 13 2009 Chris Petersen <rpm@forevermore.net> 0.22-0 1.svn1421 * Thu Aug 13 2009 Chris Petersen <rpm@forevermore.net> 0.22-0.1.svn 1458 1422 - Add XML::Simple requirement for mythvideo (for tmdb.pl) 1459 1423 - Remove now-deprecated call for XvMCNVIDIA_dynamic 1460 1424 1461 * Mon Jul 27 2009 Chris Petersen <rpm@forevermore.net> 0.22-0 1.svn1425 * Mon Jul 27 2009 Chris Petersen <rpm@forevermore.net> 0.22-0.1.svn 1462 1426 - Rename xvmcnvidia stuff to just nvidia, and add vdpau options to it 1463 1427 1464 * Sat Jul 25 2009 Chris Petersen <rpm@forevermore.net> 0.22-0 1.svn1428 * Sat Jul 25 2009 Chris Petersen <rpm@forevermore.net> 0.22-0.1.svn 1465 1429 - Remove all a52 references because ./configure no longer accepts even "disable" 1466 1430 - Remove non-GPL libfaac options (not really used by MythTV anyway) 1467 1431 1468 * Sun Jun 28 2009 Chris Petersen <rpm@forevermore.net> 0.22-0 1.svn1432 * Sun Jun 28 2009 Chris Petersen <rpm@forevermore.net> 0.22-0.1.svn 1469 1433 - Remove xvmc-opengl references that were removed in r20723 1470 1434 - Add requirement for pulseaudio-libs-devel now that some distros are requiring it 1471 1435 -
packaging/rpm/mythtv-themes.spec
17 17 %define desktop_vendor xris 18 18 19 19 # SVN Revision number and branch ID 20 %define _svnrev r 1970820 %define _svnrev r21927 21 21 %define branch trunk 22 22 23 23 # … … 41 41 42 42 # Tarballs created from svn "themes" and "myththemes" directories 43 43 # Hopefully these will merge before 0.22 is released. 44 Source0: http://www.mythtv.org/mc/myththemes-%{version}.tar.bz245 Source1: themes-%{version}.tar.bz244 Source0: themes-%{version}.tar.bz2 45 Source1: oldthemes-%{version}.tar.bz2 46 46 47 47 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) 48 48 … … 78 78 ################################################################################ 79 79 80 80 %build 81 cd myththemes-%{version}81 cd themes-%{version} 82 82 %configure 83 83 cd .. 84 84 85 cd themes-%{version}85 cd oldthemes-%{version} 86 86 %configure 87 87 cd .. 88 88 … … 91 91 %install 92 92 rm -rf %{buildroot} 93 93 94 cd myththemes-%{version}94 cd themes-%{version} 95 95 make install INSTALL_ROOT=%{buildroot} 96 96 cd .. 97 97 98 cd themes-%{version}98 cd oldthemes-%{version} 99 99 make install INSTALL_ROOT=%{buildroot} 100 100 cd .. 101 101 -
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" 106 updatesvn oldthemes "$1" 105 107 # Remove the existing libmyth-devel so it doesn't confuse qmake 106 108 # (we can't override the order of the include file path) 107 109 PKG=`rpm -q libmyth-devel` 108 110 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/null111 echo "Removing existing libmyth-devel package to avoid conflicts. Please enter root password." 112 su -c "rpm -e libmyth-devel" 111 113 fi 112 114 # Update the spec 113 115 updatespec $REL "$ABSPATH/mythtv.spec" 116 updatespec $REL "$ABSPATH/mythtv-themes.spec" 114 117 # Clean up any old tarballs that might exist 115 rm -f "$ABSPATH"/mythtv/myth*.tar.bz2 118 rm -f "$ABSPATH"/mythtv/myth*.tar.bz2 \ 119 "$ABSPATH"/mythtv-themes/*hemes*.tar.bz2 116 120 # Create the appropriate tarballs 117 121 echo "Creating tarballs from svn checkout at $SVNDIR" 118 122 cd "$SVNDIR" … … 126 130 mv "$file-$VERSION" "$file" 127 131 echo "$ABSPATH/mythtv/$file-$VERSION.tar.bz2" 128 132 done 133 for file in themes oldthemes; do 134 if [ -d "$file-$VERSION" ]; then 135 rm -rf "$file-$VERSION" 136 fi 137 echo -n " " 138 mv "$file" "$file-$VERSION" 139 tar jcf "$ABSPATH/mythtv-themes/$file-$VERSION.tar.bz2" --exclude .svn "$file-$VERSION" 140 mv "$file-$VERSION" "$file" 141 echo "$ABSPATH/mythtv-themes/$file-$VERSION.tar.bz2" 142 done 143 129 144 # Build MythTV 130 145 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 146 --define "_sourcedir $ABSPATH/mythtv" 147 # Blah 148 # rpmbuild -bb "$ABSPATH"/mythtv-themes.spec \ 149 # --define "_sourcedir $ABSPATH/mythtv-themes" 150 140 151 # Error? 141 152 if [ "$?" -ne 0 ]; then 142 153 echo "MythTV build error." … … 152 163 fi 153 164 } 154 165 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 166 # A function to install mythtv packages 167 # This doesn't work when building as a user... 168 # There must be a way to get the %{_topdir} from the user's rpm macros 187 169 function installmyth { 188 170 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 \ 171 echo "Installing MythTV-$VERSION.r$REL. Please enter root password." 172 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" 205 173 } 206 174 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 175 ############################################################################### 215 176 # Actually execute the program here 216 177 ############################################################################### -
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
