k3b-vl.spec 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248
  1. Name: k3b
  2. Summary: CD/DVD/Blu-ray burning application for KDE
  3. Summary(ja): KDE 用の CD/DVD/Blu-ray 作成アプリケーション
  4. Version: 2.0.0
  5. Release: 1%{?_dist_release}
  6. Group: Applications/Archiving
  7. License: GPLv2+
  8. URL: http://www.k3b.org/
  9. Source0: http://downloads.sourceforge.net/sourceforge/k3b/k3b-%{version}%{?pre}.tar.bz2
  10. # k3b app icon missing, https://bugzilla.redhat.com/show_bug.cgi?id=611272
  11. Source1: ox32-k3b.png
  12. Source2: k3brc
  13. ExcludeArch: s390 s390x
  14. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  15. BuildRequires: desktop-file-utils
  16. BuildRequires: flac-devel
  17. BuildRequires: gettext
  18. BuildRequires: kdelibs4-devel
  19. BuildRequires: kdemultimedia4-devel
  20. BuildRequires: libdvdread-devel
  21. BuildRequires: libmpcdec-devel
  22. BuildRequires: libmusicbrainz-devel
  23. BuildRequires: libsamplerate-devel
  24. BuildRequires: libsndfile-devel
  25. BuildRequires: libvorbis-devel
  26. BuildRequires: taglib-devel
  27. # needed by k3bsetup
  28. BuildRequires: polkit-qt-devel
  29. Requires: cdrecord mkisofs
  30. Requires: cdrdao
  31. Requires: dvd+rw-tools
  32. Obsoletes: k3b-i18n
  33. Vendor: Project Vine
  34. Distribution: Vine Linux
  35. %description
  36. K3b is a CD and DVD burning application for Linux systems optimized for KDE.
  37. It provides a comfortable user interface to perform most
  38. CD/DVD burning tasks like creating an Audio CD from a set of audio files or copying a CD.
  39. [Notice]
  40. Please install self-build-k3b-extra package if you want to handle MP3 and WMA files.
  41. %description -l ja
  42. K3b は、KDE の為に最適化された Linux システム用の CD/DVD 作成アプリケーションです.
  43. 多様なCD/DVDの作成に快適なユーザーインターフェースを提供します.
  44. また、音楽データや CD の複製等、音楽 CD を簡単に作成できます.
  45. K3b にて MP3/WMA ファイルを扱いたい場合は、self-build-k3b-extra パッケージを
  46. 追加でインストールしてください.
  47. %package libs
  48. Summary: Runtime libraries for %{name}
  49. Group: System Environment/Libraries
  50. Requires: kdelibs4 >= 4.4.0
  51. %description libs
  52. %{summary}.
  53. %package devel
  54. Summary: Files for the development of applications which will use %{name}
  55. Group: Development/Libraries
  56. Requires: %{name}-libs = %{version}-%{release}
  57. Requires: kdelibs4-devel >= 4.4.0
  58. %description devel
  59. %{summary}.
  60. %prep
  61. %setup -q
  62. %build
  63. unset QTDIR || : ; . /etc/profile.d/qt.sh
  64. mkdir -p %{_target_platform}
  65. pushd %{_target_platform}
  66. unset QTDIR || : ; . /etc/profile.d/qt4.sh
  67. %{cmake} \
  68. -DCMAKE_BUILD_TYPE=release \
  69. -DDATA_INSTALL_DIR:PATH=%{_datadir}/kde4/apps \
  70. -DINCLUDE_INSTALL_DIR:PATH=%{_includedir}/kde4 \
  71. -DLIBEXEC_INSTALL_DIR:PATH=%{_libexecdir}/kde4 \
  72. -DK3B_BUILD_FFMPEG_DECODER_PLUGIN:BOOL=OFF \
  73. -DK3B_BUILD_MAD_DECODER_PLUGIN::BOOL=OFF \
  74. -DK3B_BUILD_LAME_ENCODER_PLUGIN:BOOL=OFF \
  75. ..
  76. popd
  77. # -DK3B_BUILD_K3BSETUP:BOOL=OFF \
  78. make %{?_smp_mflags} -C %{_target_platform}
  79. %install
  80. rm -rf $RPM_BUILD_ROOT
  81. make install/fast -C %{_target_platform} DESTDIR=$RPM_BUILD_ROOT
  82. %find_lang k3b --with-kde
  83. %find_lang k3bsetup
  84. %find_lang libk3b
  85. %find_lang libk3bdevice
  86. cat k3bsetup.lang >> k3b.lang
  87. cat libk3bdevice.lang >> libk3b.lang
  88. # k3b app icon missing, https://bugzilla.redhat.com/show_bug.cgi?id=611272
  89. if [ ! -f $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/32x32/apps/k3b.png ]; then
  90. echo "NOTICE: %{_datadir}/icons/hicolor/32x32/apps/k3b.png missing, borrowing oxygen version"
  91. install -pD -m644 %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/32x32/apps/k3b.png
  92. fi
  93. %check
  94. desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/kde4/k3b.desktop
  95. %clean
  96. rm -rf $RPM_BUILD_ROOT
  97. %post
  98. touch --no-create %{_datadir}/icons/hicolor ||:
  99. %postun
  100. if [ $1 -eq 0 ] ; then
  101. gtk-update-icon-cache -q %{_datadir}/icons/hicolor 2> /dev/null ||:
  102. update-desktop-database -q %{_datadir}/applications > /dev/null 2>&1 ||:
  103. update-mime-database %{_datadir}/mime &> /dev/null
  104. fi
  105. %posttrans
  106. gtk-update-icon-cache -q %{_datadir}/icons/hicolor 2> /dev/null ||:
  107. update-desktop-database -q %{_datadir}/applications > /dev/null 2>&1 ||:
  108. update-mime-database %{_datadir}/mime &> /dev/null
  109. %post libs -p /sbin/ldconfig
  110. %postun libs -p /sbin/ldconfig
  111. %files -f k3b.lang
  112. %defattr(-,root,root,755)
  113. %doc README COPYING COPYING.DOC ChangeLog
  114. %{_sysconfdir}/dbus-1/system.d/*.conf
  115. %{_bindir}/k3b
  116. %{_bindir}/k3bsetup
  117. %{_libdir}/kde4/*.so
  118. %{_libexecdir}/kde4/k3bsetuphelper
  119. %{_datadir}/applications/kde4/k3b.desktop
  120. %{_datadir}/dbus-1/system-services/*.service
  121. %{_datadir}/icons/hicolor/*/*/*
  122. %{_datadir}/kde4/apps/k3b/
  123. %{_datadir}/kde4/apps/konqsidebartng/virtual_folders/services/*.desktop
  124. %{_datadir}/kde4/apps/solid/actions/k3b*.desktop
  125. %{_datadir}/kde4/services/*.desktop
  126. %{_datadir}/kde4/services/*.protocol
  127. %{_datadir}/kde4/services/ServiceMenus/k3b*.desktop
  128. %{_datadir}/kde4/servicetypes/k3b*.desktop
  129. %{_datadir}/mime/packages/x-k3b.xml
  130. %{_datadir}/polkit-1/actions/*.policy
  131. %{_datadir}/sounds/k3b_*
  132. %files libs -f libk3b.lang
  133. %defattr(-,root,root,-)
  134. %{_libdir}/libk3bdevice.so.6*
  135. %{_libdir}/libk3blib.so.6*
  136. %files devel
  137. %defattr(-,root,root,-)
  138. %{_includedir}/kde4/k3b*.h
  139. %{_libdir}/libk3bdevice.so
  140. %{_libdir}/libk3blib.so
  141. %changelog
  142. * Thu Jul 22 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.0.0-1
  143. - new upstream release
  144. - updated build dependencies
  145. * Mon Nov 02 2009 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 1.0.5-6
  146. - drop required packages to resolve unmet dependency <BTS:VineLinux:797>
  147. - Requires: libstdc++2_10, libstdc++2_10-compat, dvdrecord, libzvt
  148. - BuildRequires: libzvt-devel
  149. * Mon Feb 09 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.0.5-5
  150. - changed to Requires: self-build-libmad from libmad
  151. - changed to BuildRequires: self-build-libmad from libmad-devel
  152. - added Requires: %{name} = %{version}-%{release} in k3b-i18n subpackage
  153. * Sun Jan 18 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.0.5-4
  154. - removed Release: tag of k3b-i18n subpackage
  155. * Sat Jan 17 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.0.5-3
  156. - rebuild with libdvdread.so.4 for vl4 <BTS:651>
  157. - spec in utf-8
  158. - merged the spec of 1.0.5-1vl4 release:
  159. - added --with-lame --with-libdvdread in %%configure options
  160. - set --vendor="vine" in desktop-file-install
  161. * Mon Jan 12 2009 TOSHI <milk-tea1977@dune.ocn.ne.jp> 1.0.5-1
  162. - new upstream release
  163. - change %{_includedir}/k3b
  164. - drop {_localedir}/* (i18n)
  165. - add devel Package
  166. * Fri Jan 2 2009 TOSHI <milk-tea1977@dune.ocn.ne.jp> 1.0.5-2vl5
  167. - It returned it: %{_libdir}/kde3/*.la
  168. * Wed Dec 31 2008 TOSHI <milk-tea1977@dune.ocn.ne.jp> 1.0.5-1vl5
  169. - new upstream release.
  170. - spec in utf-8, and applied vine versioning policy.
  171. - Remove *.la.
  172. - specfile updates.
  173. *Tue Dec 26 2006 TOSHI <vine-jp@mail.goo.ne.jp> 0.12.17-0vl1
  174. -new upstream release
  175. *Sun Jun 18 2006 TOSHI <toshi-52@sa.il24.net> 0.12.15-0vl3
  176. -with-k3bsetup=no option is deleted.
  177. *Sat Apr 15 2006 TOSHI <toshi-52@sa.il24.net> 0.12.15-0vl1
  178. -new upstream release
  179. -Requires -> sox and libsndfile added
  180. -BuildPreReq -> sox-devel and libsndfile-devel added
  181. -with-k3bsetup=no option added
  182. *Sun Apr 9 2006 TOSHI <toshi-52@sa.il24.net> 0.12.14-0vl1
  183. -new upstream release
  184. *Tue Feb 14 2006 TOSHI <vine-jp@mail.goo.ne.jp> 0.12.10-0vl1
  185. -new upstream release
  186. -Requires -> Libstdc++2_10 and libstdc++2_10-compat added
  187. *Sat Feb 9 2006 TOSHI <vine-jp@mail.goo.ne.jp> 0.12.10-0vl1
  188. -new upstream release
  189. -added i18n to spec
  190. *Thu Aug 16 2005 TOSHI <toshi-52@s5.dion.ne.jp> 0.12.3-0vl1
  191. -new upstream release
  192. * Thu Jul 12 2005 TOSHI <toshi-52@s5.dion.ne.jp> 0.12.2-0vl1
  193. -new upstream release
  194. * Thu May 30 2005 TOSHI <toshi-52@s5.dion.ne.jp> 0.12beta2-0vl1
  195. -1st Release.