Ticket #7090: rpmpatch.5.diff
| File rpmpatch.5.diff, 18.1 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 r21928 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 … … 179 179 BuildRequires: gsm-devel 180 180 BuildRequires: lame-devel 181 181 BuildRequires: libdca-devel 182 # libdvdcss will be dynamically loaded if installed183 #BuildRequires: libdvdcss-devel >= 1.2.7184 182 BuildRequires: libdvdnav-devel 185 183 BuildRequires: libdvdread-devel >= 0.9.4 186 184 BuildRequires: libfame-devel >= 0.9.0 … … 193 191 BuildRequires: transcode >= 0.6.8 194 192 BuildRequires: x264-devel 195 193 BuildRequires: xvidcore-devel >= 0.9.1 196 BuildRequires: pulseaudio-libs-devel197 194 198 195 # Audio framework support 199 196 BuildRequires: alsa-lib-devel 200 197 BuildRequires: arts-devel 201 198 BuildRequires: jack-audio-connection-kit-devel 199 BuildRequires: pulseaudio-libs-devel 202 200 203 201 # Need dvb headers to build in dvb support 204 202 BuildRequires: kernel-headers … … 328 326 Summary: MythTV documentation 329 327 Group: Documentation 330 328 329 Requires: mythtv-common = %{version} 330 331 331 %description docs 332 332 The MythTV documentation, contrib files, database initialization file 333 333 and miscellaneous other bits and pieces. … … 335 335 ################################################################################ 336 336 337 337 %package -n libmyth 338 Summary: Library providing mythtv support .338 Summary: Library providing mythtv support 339 339 Group: System Environment/Libraries 340 340 341 341 Requires: freetype >= 2 … … 351 351 ################################################################################ 352 352 353 353 %package -n libmyth-devel 354 Summary: Development files for libmyth .354 Summary: Development files for libmyth 355 355 Group: Development/Libraries 356 356 357 357 Requires: libmyth = %{version}-%{release} … … 385 385 Requires: gsm-devel 386 386 Requires: lame-devel 387 387 Requires: libdca-devel 388 #Requires: libdvdcss-devel >= 1.2.7389 388 Requires: libdvdnav-devel 390 389 Requires: libdvdread-devel >= 0.9.4 391 390 Requires: libfame-devel >= 0.9.0 … … 403 402 Requires: alsa-lib-devel 404 403 Requires: arts-devel 405 404 Requires: jack-audio-connection-kit-devel 405 Requires: pulseaudio-libs-devel 406 406 407 407 # Need dvb headers for dvb support 408 408 Requires: kernel-headers … … 517 517 # Wish we could do this: 518 518 #BuildArch: noarch 519 519 520 Requires: mythtv-common = %{version} 520 521 Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) 521 522 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) 523 Requires: perl(Net::UPnP) 524 Requires: perl(Net::UPnP::ControlPoint) 526 525 527 526 %description -n perl-MythTV 528 527 Provides a perl-based interface to interacting with MythTV. … … 539 538 # Wish we could do this: 540 539 #BuildArch: noarch 541 540 541 Requires: mythtv-common = %{version} 542 542 Requires: MySQL-python 543 543 544 544 %description -n python-MythTV … … 651 651 %description -n mythgame 652 652 A game frontend (xmame, nes, snes, pc) for MythTV. 653 653 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 654 %endif 678 655 ################################################################################ 679 656 %if %{with_mythmovies} … … 796 773 # Replace static lib paths with %{_lib} so we build properly on x86_64 797 774 # systems, where the libs are actually in lib64. 798 775 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},'776 grep -rlZ '/lib/' . | xargs -r0 sed -i -e 's,/lib/,/%{_lib}/,g' 777 grep -rlZ '/lib$' . | xargs -r0 sed -i -e 's,/lib$,/%{_lib},' 801 778 grep -rlZ '/lib ' . | xargs -r0 sed -i -e 's,/lib ,/%{_lib} ,g' 802 779 fi 803 780 … … 891 868 --libdir=%{_libdir} \ 892 869 --libdir-name=%{_lib} \ 893 870 --mandir=%{_mandir} \ 894 --enable-iptv \871 --enable-iptv \ 895 872 --enable-pthreads \ 896 873 --enable-ffmpeg-pthreads \ 897 874 --enable-joystick-menu \ 898 --enable-audio-arts \899 875 --enable-audio-alsa \ 900 876 --enable-audio-oss \ 901 877 --enable-audio-jack \ … … 947 923 --compile-type=release \ 948 924 %endif 949 925 --enable-debug 950 ### --enable-libx264 \951 926 952 927 # Insert rpm version-release for mythbackend --version output 953 928 find . -name version.pro -exec sed -i -e 's,svnversion \$\${SVNTREEDIR},echo "%{version}-%{release}",g' {} \; … … 1108 1083 1109 1084 mkdir -p %{buildroot}%{_datadir}/mythtv/build/ 1110 1085 install -p -m 644 settings.pro %{buildroot}%{_datadir}/mythtv/build/ 1111 1086 # fix the base themes 1087 chmod a-x %{buildroot}%{_datadir}/mythtv/themes/default/htmls/*.html 1112 1088 cd .. 1113 1089 1114 1090 # MythPlugins … … 1122 1098 %endif 1123 1099 %if %{with_mythvideo} 1124 1100 mkdir -p %{buildroot}%{_localstatedir}/lib/mythvideo 1101 chmod a+x %{buildroot}%{_datadir}/mythtv/mythvideo/scripts/ttvdb/{tvdb*,cache}.py 1125 1102 %endif 1126 1103 %if %{with_mythgallery} 1127 1104 mkdir -p %{buildroot}%{_localstatedir}/lib/pictures … … 1129 1106 %if %{with_mythgame} 1130 1107 mkdir -p %{buildroot}%{_datadir}/mythtv/games/nes/{roms,screens} 1131 1108 mkdir -p %{buildroot}%{_datadir}/mythtv/games/snes/{roms,screens} 1132 # mkdir -p %{buildroot}%{_datadir}/mythtv/games/mame/{roms,screens,flyers,cabs}1133 1109 mkdir -p %{buildroot}%{_datadir}/mythtv/games/PC/screens 1134 1110 mkdir -p %{buildroot}%{_datadir}/mame 1135 1111 ln -s ../../mame %{buildroot}%{_datadir}/mythtv/games/xmame … … 1147 1123 cp -a * %{buildroot}%{_datadir}/mythweb/ 1148 1124 mkdir -p %{buildroot}%{_datadir}/mythweb/{image_cache,php_sessions} 1149 1125 # fix up permissions 1150 chmod -R g-x %{buildroot}%{_datadir}/mythweb1126 chmod a-x %{buildroot}%{_datadir}/mythweb/classes/*.php 1151 1127 1152 1128 mkdir -p %{buildroot}%{_sysconfdir}/httpd/conf.d 1153 1129 cp %{SOURCE401} %{buildroot}%{_sysconfdir}/httpd/conf.d/ … … 1160 1136 cd .. 1161 1137 %endif 1162 1138 1139 1163 1140 ################################################################################ 1164 1141 1165 1142 %clean … … 1175 1152 # Add the "mythtv" user 1176 1153 /usr/sbin/useradd -c "mythtvbackend User" \ 1177 1154 -s /sbin/nologin -r -d %{_varlibdir}/mythtv mythtv 2> /dev/null || : 1155 /usr/sbin/usermod -a -G video mythtv 1178 1156 1179 1157 %post backend 1180 1158 /sbin/chkconfig --add mythbackend … … 1239 1217 %{_datadir}/mythtv/devicemaster.xml 1240 1218 %{_datadir}/mythtv/deviceslave.xml 1241 1219 %{_datadir}/mythtv/setup.xml 1220 %{_bindir}/mythavtest 1242 1221 %{_bindir}/mythfrontend 1243 %{_bindir}/mythtv1244 1222 %{_bindir}/mythtvosd 1245 1223 %{_bindir}/mythlcdserver 1246 1224 %{_bindir}/mythshutdown … … 1320 1298 %doc mythplugins-%{version}/mythbrowser/AUTHORS 1321 1299 %doc mythplugins-%{version}/mythbrowser/COPYING 1322 1300 %doc mythplugins-%{version}/mythbrowser/README 1323 %{_bindir}/mythbrowser 1324 %{_libdir}/mythtv/plugins/libmythbookmarkmanager.so 1301 %{_libdir}/mythtv/plugins/libmythbrowser.so 1325 1302 %{_datadir}/mythtv/i18n/mythbrowser_*.qm 1326 1303 %endif 1327 1304 … … 1361 1338 %dir %{_datadir}/mame/flyers 1362 1339 %{_datadir}/mythtv/game_settings.xml 1363 1340 %{_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 1341 %endif 1371 1342 1372 1343 %if %{with_mythmovies} … … 1435 1406 %defattr(-,root,root,-) 1436 1407 %doc mythplugins-%{version}/mythweb/README 1437 1408 %config(noreplace) %{_sysconfdir}/httpd/conf.d/mythweb.conf 1438 %defattr(-,apache,apache, 0775)1409 %defattr(-,apache,apache,-) 1439 1410 %dir %{_datadir}/mythweb 1440 1411 %{_datadir}/mythweb/* 1441 1412 %endif … … 1453 1424 ################################################################################ 1454 1425 1455 1426 %changelog 1427 * Thu Sep 17 2009 James Twyford <jtwyford@gmail.com> 0.22-0.2.svn 1428 - Updates to compile with trunk and other cleanups as suggested by rpmlint 1456 1429 1457 * Thu Aug 13 2009 Chris Petersen <rpm@forevermore.net> 0.22-0 1.svn1430 * Thu Aug 13 2009 Chris Petersen <rpm@forevermore.net> 0.22-0.1.svn 1458 1431 - Add XML::Simple requirement for mythvideo (for tmdb.pl) 1459 1432 - Remove now-deprecated call for XvMCNVIDIA_dynamic 1460 1433 1461 * Mon Jul 27 2009 Chris Petersen <rpm@forevermore.net> 0.22-0 1.svn1434 * Mon Jul 27 2009 Chris Petersen <rpm@forevermore.net> 0.22-0.1.svn 1462 1435 - Rename xvmcnvidia stuff to just nvidia, and add vdpau options to it 1463 1436 1464 * Sat Jul 25 2009 Chris Petersen <rpm@forevermore.net> 0.22-0 1.svn1437 * Sat Jul 25 2009 Chris Petersen <rpm@forevermore.net> 0.22-0.1.svn 1465 1438 - Remove all a52 references because ./configure no longer accepts even "disable" 1466 1439 - Remove non-GPL libfaac options (not really used by MythTV anyway) 1467 1440 1468 * Sun Jun 28 2009 Chris Petersen <rpm@forevermore.net> 0.22-0 1.svn1441 * Sun Jun 28 2009 Chris Petersen <rpm@forevermore.net> 0.22-0.1.svn 1469 1442 - Remove xvmc-opengl references that were removed in r20723 1470 1443 - Add requirement for pulseaudio-libs-devel now that some distros are requiring it 1471 1444 -
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 r21928 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 ###############################################################################
