Advertisement
david_david

ogmrip.spec

Jul 13th, 2014
250
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.66 KB | None | 0 0
  1. %define major 1
  2. %define libname %mklibname %{name} %{major}
  3. %define develname %mklibname %{name} -d
  4. %define mplayerver 1.1.1
  5. %define build_tainted 1
  6.  
  7. %if "%{distro_section}" == "tainted"
  8. %global build_tainted 1
  9. %endif
  10.  
  11. Name: ogmrip
  12. Version: 1.0.1
  13. Release: %mkrel 0.3
  14. Summary: DVD ripping and encoding graphical user interface
  15. Group: Video/Utilities
  16. License: GPLv2+
  17. URL: http://ogmrip.sourceforge.net/
  18. Source0: http://sourceforge.net/projects/ogmrip/files/ogmrip/1.0/%{version}/%{name}-%{version}.tar.gz
  19.  
  20. BuildRequires: pkgconfig(gtk+-2.0)
  21. BuildRequires: pkgconfig(libglade-2.0)
  22. BuildRequires: pkgconfig(gconf-2.0)
  23. BuildRequires: pkgconfig(libxml-2.0)
  24. BuildRequires: pkgconfig(dbus-glib-1)
  25. BuildRequires: pkgconfig(enchant)
  26. BuildRequires: pkgconfig(enca)
  27. BuildRequires: pkgconfig(dvdread)
  28. BuildRequires: pkgconfig(theora)
  29. BuildRequires: pkgconfig(vorbis)
  30. BuildRequires: pkgconfig(libtiff-4)
  31. BuildRequires: pkgconfig(tesseract)
  32. BuildRequires: pkgconfig(libnotify)
  33. BuildRequires: gettext-devel
  34. BuildRequires: intltool
  35. BuildRequires: desktop-file-utils
  36.  
  37. # Not technically build required, but configure checks for it...
  38. BuildRequires: mplayer
  39. BuildRequires: mencoder >= %{mplayerver}
  40. BuildRequires: ogmtools
  41. BuildRequires: vorbis-tools
  42. BuildRequires: theora-tools
  43. BuildRequires: mkvtoolnix
  44. %if %{build_tainted}
  45. BuildRequires: lame-devel
  46. BuildRequires: gpac-devel
  47. %endif
  48.  
  49. # Now, all the same as runtime requirements
  50. Requires: mplayer
  51. Requires: mencoder >= %{mplayerver}
  52. Requires: ogmtools
  53. Requires: vorbis-tools
  54. Requires: theora-tools
  55. Requires: mkvtoolnix
  56. Requires: tesseract
  57. %if %{build_tainted}
  58. Requires: lame
  59. Requires: gpac
  60. %endif
  61.  
  62. Requires(post): GConf2
  63. Requires(postun): GConf2
  64.  
  65. %description
  66. OGMRip is an application and a set of libraries for ripping and
  67. encoding DVD into DivX/OGM files.
  68.  
  69. OGMRip:
  70. * outputs ogm, avi or matroska files
  71. * provides a lot of codecs (ogg vorbis, mp3, pcm, ac3, xvid, lavc)
  72. * calculates video bitrate for a given filesize
  73. * calculates cropping parameters and scaling factors
  74. * uses maximum quality codec switches
  75. * supports subtitles extraction
  76. * rips contiguous chapters
  77. * features a HIG-compliant GNOME 2 user interface
  78.  
  79. %if %{build_tainted}
  80. This package is in Tainted repository as it depends on lame and gpac.
  81. %endif
  82.  
  83. %package -n %{libname}
  84. Summary: DVD ripping libraries from %{name}
  85. Group: System/Libraries
  86.  
  87. %description -n %{libname}
  88. OGMRip is an application and a set of libraries for ripping and
  89. encoding DVD into DivX/OGM files.
  90. This contains the set of libraries.
  91.  
  92. %if %{build_tainted}
  93. This package is in Tainted repository as it depends on lame and gpac.
  94. %endif
  95.  
  96. %package -n %{develname}
  97. Summary: Development files for %{name}
  98. Group: Development/C
  99. Requires: %{libname} = %{version}-%{release}
  100. Provides: %{name}-devel = %{version}-%{release}
  101. Provides: %{_lib}name-devel = %{version}-%{release}
  102.  
  103. %description -n %{develname}
  104. OGMRip is an application and a set of libraries for ripping and
  105. encoding DVD into DivX/OGM files.
  106. This contains the development parts of these libraries.
  107.  
  108. %if %{build_tainted}
  109. This package is in Tainted repository as it depends on lame and gpac.
  110. %endif
  111.  
  112. %prep
  113. %setup -q
  114.  
  115. %build
  116. %if %{build_tainted}
  117. %configure2_5x \
  118. --disable-static \
  119. --disable-schemas-install \
  120. --with-ocr=tesseract
  121. %else
  122. %configure2_5x \
  123. --disable-x264-support \
  124. --disable-xvid-support \
  125. --disable-mp3-support \
  126. --disable-mp4-support \
  127. --disable-static \
  128. --disable-schemas-install \
  129. --with-ocr=tesseract
  130. %endif
  131. # Disable RPATH
  132. sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
  133. sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
  134.  
  135. %make
  136.  
  137. %install
  138. %makeinstall_std
  139.  
  140. desktop-file-install \
  141. --delete-original \
  142. --dir=%{buildroot}%{_datadir}/applications \
  143. %{buildroot}%{_datadir}/applications/%{name}.desktop
  144.  
  145. # we don't want these
  146. find %{buildroot} -name "*.la" -delete
  147.  
  148. %find_lang %{name}
  149.  
  150. %post -n %{libname} -p /sbin/ldconfig
  151.  
  152. %postun -n %{libname} -p /sbin/ldconfig
  153.  
  154.  
  155. %files -f %{name}.lang
  156. %doc AUTHORS COPYING ChangeLog README TODO
  157. %doc %{_datadir}/gtk-doc/html/ogm*
  158. %{_sysconfdir}/gconf/schemas/%{name}.schemas
  159. %{_bindir}/%{name}
  160. %{_bindir}/dvdcpy
  161. %{_bindir}/avibox
  162. %{_bindir}/subp2pgm
  163. %{_bindir}/subp2png
  164. %{_bindir}/subp2tiff
  165. %{_bindir}/subptools
  166. %{_bindir}/theoraenc
  167. %{_libdir}/%{name}/
  168. %{_datadir}/%{name}/
  169. %{_datadir}/applications/%{name}.desktop
  170. %{_datadir}/pixmaps/%{name}.png
  171. %{_mandir}/man1/*.1*
  172.  
  173. %files -n %{libname}
  174. %{_libdir}/lib*.so.%{major}
  175. %{_libdir}/lib*.so.%{major}.*
  176.  
  177. %files -n %{develname}
  178. %{_includedir}/*
  179. %{_libdir}/pkgconfig/ogm*.pc
  180. %{_libdir}/lib*.so
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement