k3b-vl.spec 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285
  1. %define i18n_version 1.0.5
  2. Name: k3b
  3. Version: 1.0.5
  4. Release: 5%{?_dist_release}
  5. Summary: CD/DVD burning application for KDE
  6. Summary(ja): KDE 用の CD/DVD 作成アプリケーション
  7. Source0: http://downloads.sf.net/k3b/%{name}-%{version}.tar.bz2
  8. Source1: http://downloads.sf.net/k3b/%{name}-i18n-%{i18n_version}.tar.bz2
  9. Source2: k3brc
  10. License: GPLv2
  11. Group: Applications/Archiving
  12. URL: http://www.k3b.org/
  13. Requires: qt, libvorbis, libogg, self-build-lame
  14. Requires: libzvt, libpng, libjpeg, libdvdread
  15. Requires: libidn, id3lib, kdelibs, cdrtools-cdrecord
  16. Requires: cdrtools-mkisofs, dvd+rw-tools, audiofile, arts
  17. Requires: gamin, cdrdao, cdparanoia, dbus-qt3
  18. Requires: flac, dvdrecord, libstdc++2_10
  19. Requires: libstdc++2_10-compat, sox, libsndfile
  20. Requires: alsa-lib, libsamplerate, libmusicbrainz-devel
  21. BuildPreReq: qt-devel, libvorbis-devel, self-build-lame
  22. BuildPreReq: libogg-devel, libzvt-devel
  23. BuildPreReq: libpng-devel, libjpeg-devel, libdvdread-devel, libidn-devel
  24. BuildPreReq: id3lib-devel, kdelibs-devel, audiofile-devel
  25. BuildPreReq: arts-devel, gamin-devel, zlib-devel
  26. BuildPreReq: flac-devel, taglib-devel, libmng-devel, dbus-qt3-devel
  27. BuildPreReq: libmusicbrainz-devel, sox-devel, libsndfile-devel
  28. BuildRequires: desktop-file-utils, libsamplerate-devel, alsa-lib-devel
  29. BuildRequires: libmusicbrainz-devel, hal-devel
  30. # X libs
  31. %if %{?_dist_release} == "vl5"
  32. Requires: xorg-x11-libs
  33. BuildPreReq: xorg-x11-devel
  34. %endif
  35. %if %{?_dist_release} == "vl4"
  36. Requires: XOrg
  37. BuildPreReq: XOrg-devel
  38. %endif
  39. # self-build
  40. Requires: self-build-libmad
  41. BuildRequires: self-build-libmad
  42. ##Requires: libmad
  43. ##BuildRequires: libmad-devel
  44. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  45. ExcludeArch: s390 s390x
  46. Patch2: k3b-1.0.3-umount.patch
  47. # manual bufsize (upstream?)
  48. Patch4: k3b-1.0.4-manualbufsize.patch
  49. # upstream patches
  50. # http://bugs.kde.org/151816 , k3b can't reload media for verification
  51. Patch100: k3b-1.0.4-kde#151816.patch
  52. # http://bugs.kde.org/156684 , alternative to patch100
  53. Patch101: k3b-1.0.5-kde#156684.patch
  54. # put k3b-(iso,cue).desktop to xdg_apps_DATA , see http://bugzilla.redhat.com/419681
  55. # upstreamed 2008-08-27
  56. Patch105: k3b-1.0.5-hidden.patch
  57. Vendor: Project Vine
  58. Distribution: Vine Linux
  59. %description
  60. K3b is a CD and DVD burning application for Linux systems optimized for KDE.
  61. It provides a comfortable user interface to perform most
  62. CD/DVD burning tasks like creating an Audio CD from a set of audio files or copying a CD.
  63. %description -l ja
  64. k3b は、KDE の為に最適化された Linux システム用の CD/DVD 作成アプリケーションです。
  65. 多様なCD/DVDの作成に快適なユーザーインターフェースを提供します。
  66. また、音楽データや CD の複製等、音楽 CD を簡単に作成できます。
  67. %package i18n
  68. Summary: K3b internationalization RPM
  69. Summary(ja): k3b 国際化 RPM
  70. Group: Applications/Archiving
  71. Requires: %{name} = %{version}-%{release}
  72. %description i18n
  73. K3b can be internationalized.
  74. %description -l ja i18n
  75. k3b を国際化します。
  76. BuildRequires: kdelibs-devel >= 3.1
  77. %prep
  78. %setup -q -a 1
  79. ##ALL Fedora patch
  80. %patch2 -p1 -b .umount
  81. # set in k3brc too
  82. %patch4 -p1 -b .manualbufsize
  83. %patch100 -p1 -b .kde#151816
  84. %patch101 -p1 -b .kde#156684
  85. %patch105 -p1 -b .hidden
  86. %package devel
  87. Summary: Files for the development of applications which will use %{name}
  88. Group: Development/Libraries
  89. %description devel
  90. %{summary}.
  91. %build
  92. unset QTDIR || : ; . /etc/profile.d/qt.sh
  93. %configure \
  94. --with-k3bsetup=yes \
  95. --includedir=%{_includedir}/k3b \
  96. --with-cdrecord-suid-root \
  97. --disable-rpath \
  98. --disable-debug \
  99. --disable-warnings \
  100. --without-ffmpeg \
  101. --with-lame \
  102. --with-libmad \
  103. --with-alsa \
  104. --with-oggvorbis \
  105. --with-flac \
  106. --with-external-libsamplerate \
  107. --with-sndfile \
  108. --with-musicbrainz \
  109. --with-libdvdread \
  110. --enable-new-ldflags
  111. # --without-musepack
  112. # --disable-dependency-tracking --enable-final \
  113. %{__make} %{?_smp_mflags}
  114. # Build for i18n
  115. pushd %{name}-i18n-%{i18n_version}
  116. %configure
  117. %{__make} %{?_smp_mflags}
  118. popd
  119. %install
  120. rm -rf $RPM_BUILD_ROOT
  121. %{__make} install DESTDIR=$RPM_BUILD_ROOT
  122. # install for i18n
  123. pushd %{name}-i18n-%{i18n_version}
  124. %{__make} install DESTDIR=$RPM_BUILD_ROOT
  125. popd
  126. # *.h new dir
  127. %{__mkdir} -p $RPM_BUILD_ROOT%{_includedir}/k3b
  128. # install for k3brc
  129. %{__install} -D -m 644 -p %{SOURCE2} $RPM_BUILD_ROOT%{_datadir}/config/k3brc
  130. desktop-file-install --vendor="vine" \
  131. --dir $RPM_BUILD_ROOT%{_datadir}/applications/kde \
  132. $RPM_BUILD_ROOT%{_datadir}/applications/kde/*.desktop
  133. # remove the .la files
  134. %{__rm} -rf $RPM_BUILD_ROOT%{_libdir}/libk3b*.la
  135. #%{__rm} -rf $RPM_BUILD_ROOT%{_libdir}/kde3/*.la
  136. # remove i18n for Plattdeutsch (Low Saxon)
  137. %{__rm} -rf $RPM_BUILD_ROOT%{_datadir}/locale/nds
  138. %find_lang k3b
  139. %find_lang k3bsetup
  140. %find_lang libk3b
  141. %find_lang libk3bdevice
  142. cat k3b.lang k3bsetup.lang libk3b.lang libk3bdevice.lang >> all.lang
  143. %post
  144. touch --no-create %{_datadir}/icons/hicolor ||:
  145. gtk-update-icon-cache -q %{_datadir}/icons/hicolor 2> /dev/null ||:
  146. update-desktop-database %{_datadir}/applications > /dev/null 2>&1 ||:
  147. %postun
  148. touch --no-create %{_datadir}/icons/hicolor ||:
  149. gtk-update-icon-cache -q %{_datadir}/icons/hicolor 2> /dev/null ||:
  150. update-desktop-database %{_datadir}/applications > /dev/null 2>&1 ||:
  151. %clean
  152. %{__rm} -rf $RPM_BUILD_ROOT
  153. %files -f all.lang
  154. %defattr(-,root,root,755)
  155. %doc AUTHORS README COPYING TODO ChangeLog
  156. %doc %{_docdir}/HTML/*/*
  157. %{_bindir}/k3b
  158. %{_bindir}/k3bsetup
  159. %{_datadir}/applications/kde/*.desktop
  160. %{_datadir}/mimelnk/application/*.desktop
  161. %{_libdir}/kde3/*.la
  162. %{_libdir}/libk3b*.so.*
  163. %{_libdir}/kde3/*.so
  164. %{_datadir}/apps/konqsidebartng/virtual_folders/services/*.desktop
  165. %{_datadir}/services/*.desktop
  166. %{_datadir}/services/videodvd.protocol
  167. %{_datadir}/apps/k3b/*
  168. %{_datadir}/apps/konqueror/servicemenus/*
  169. %{_datadir}/config/k3brc
  170. %{_datadir}/sounds/*
  171. %{_datadir}/icons/hicolor/*/*/*
  172. %{_datadir}/applnk/Settings/System/k3bsetup2.desktop
  173. # k3b-i18n Files
  174. %files i18n
  175. %lang(da) %doc %{_docdir}/HTML/da/*
  176. %lang(de) %doc %{_docdir}/HTML/de/*
  177. %lang(es) %doc %{_docdir}/HTML/es/*
  178. %lang(et) %doc %{_docdir}/HTML/et/*
  179. %lang(fr) %doc %{_docdir}/HTML/fr/*
  180. %lang(pt) %doc %{_docdir}/HTML/pt/*
  181. %lang(ru) %doc %{_docdir}/HTML/ru/*
  182. %lang(sv) %doc %{_docdir}/HTML/sv/*
  183. #%{_localedir}/*
  184. %files devel
  185. %defattr(-,root,root,-)
  186. %{_includedir}/k3b/*.h
  187. %{_libdir}/libk3b*.so
  188. %changelog
  189. * Mon Feb 09 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.0.5-5
  190. - changed to Requires: self-build-libmad from libmad
  191. - changed to BuildRequires: self-build-libmad from libmad-devel
  192. - added Requires: %{name} = %{version}-%{release} in k3b-i18n subpackage
  193. * Sun Jan 18 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.0.5-4
  194. - removed Release: tag of k3b-i18n subpackage
  195. * Sat Jan 17 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.0.5-3
  196. - rebuild with libdvdread.so.4 for vl4 <BTS:651>
  197. - spec in utf-8
  198. - merged the spec of 1.0.5-1vl4 release:
  199. - added --with-lame --with-libdvdread in %%configure options
  200. - set --vendor="vine" in desktop-file-install
  201. * Mon Jan 12 2009 TOSHI <milk-tea1977@dune.ocn.ne.jp> 1.0.5-1
  202. - new upstream release
  203. - change %{_includedir}/k3b
  204. - drop {_localedir}/* (i18n)
  205. - add devel Package
  206. * Fri Jan 2 2009 TOSHI <milk-tea1977@dune.ocn.ne.jp> 1.0.5-2vl5
  207. - It returned it: %{_libdir}/kde3/*.la
  208. * Wed Dec 31 2008 TOSHI <milk-tea1977@dune.ocn.ne.jp> 1.0.5-1vl5
  209. - new upstream release.
  210. - spec in utf-8, and applied vine versioning policy.
  211. - Remove *.la.
  212. - specfile updates.
  213. *Tue Dec 26 2006 TOSHI <vine-jp@mail.goo.ne.jp> 0.12.17-0vl1
  214. -new upstream release
  215. *Sun Jun 18 2006 TOSHI <toshi-52@sa.il24.net> 0.12.15-0vl3
  216. -with-k3bsetup=no option is deleted.
  217. *Sat Apr 15 2006 TOSHI <toshi-52@sa.il24.net> 0.12.15-0vl1
  218. -new upstream release
  219. -Requires -> sox and libsndfile added
  220. -BuildPreReq -> sox-devel and libsndfile-devel added
  221. -with-k3bsetup=no option added
  222. *Sun Apr 9 2006 TOSHI <toshi-52@sa.il24.net> 0.12.14-0vl1
  223. -new upstream release
  224. *Tue Feb 14 2006 TOSHI <vine-jp@mail.goo.ne.jp> 0.12.10-0vl1
  225. -new upstream release
  226. -Requires -> Libstdc++2_10 and libstdc++2_10-compat added
  227. *Sat Feb 9 2006 TOSHI <vine-jp@mail.goo.ne.jp> 0.12.10-0vl1
  228. -new upstream release
  229. -added i18n to spec
  230. *Thu Aug 16 2005 TOSHI <toshi-52@s5.dion.ne.jp> 0.12.3-0vl1
  231. -new upstream release
  232. * Thu Jul 12 2005 TOSHI <toshi-52@s5.dion.ne.jp> 0.12.2-0vl1
  233. -new upstream release
  234. * Thu May 30 2005 TOSHI <toshi-52@s5.dion.ne.jp> 0.12beta2-0vl1
  235. -1st Release.