gtkpod-vl.spec 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215
  1. %bcond_with mp4v2
  2. Name: gtkpod
  3. Version: 2.1.4
  4. Release: 1%{?_dist_release}
  5. Summary: Graphical song management program for Apple's iPod
  6. Summary(ja): Apple の iPod 用のグラフィカルな楽曲管理ツール
  7. #'
  8. Group: Applications/Multimedia
  9. # The help documentation is under GFDL, the rest of the code is GPLv2+
  10. License: GPLv2+ and GFDL
  11. URL: http://www.gtkpod.org/
  12. Source0: %{name}-%{version}.tar.gz
  13. Source1: %{name}-2.1.4-ja.po
  14. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  15. BuildRequires: anjuta-devel
  16. BuildRequires: brasero-devel
  17. BuildRequires: clutter-gtk-devel
  18. BuildRequires: curl-devel
  19. BuildRequires: desktop-file-utils
  20. BuildRequires: flac-devel >= 1.2.1
  21. BuildRequires: flex
  22. BuildRequires: gettext
  23. BuildRequires: gstreamer-devel
  24. BuildRequires: gstreamer-plugins-base-devel >= 0.10.25
  25. BuildRequires: gtk3-devel
  26. BuildRequires: intltool
  27. BuildRequires: libgpod-devel
  28. BuildRequires: libid3tag-devel
  29. BuildRequires: libmusicbrainz3-devel
  30. BuildRequires: libvorbis-devel >= 1.3.1
  31. BuildRequires: perl(XML::Parser)
  32. BuildRequires: pkgconfig
  33. BuildRequires: WebKit3-gtk-devel
  34. %if %{with mp4v2}
  35. BuildRequires: self-build-libmp4v2
  36. %endif
  37. # some of the scripts in %%{_datadir}/%%{name}/scripts use which
  38. Requires: which
  39. Requires: hicolor-icon-theme
  40. Vendor: Project Vine
  41. Distribution: Vine Linux
  42. %description
  43. gtkpod is a platform independent Graphical User Interface for Apple's
  44. iPod using GTK3. It supports all current iPod models, including
  45. the Mini, Photo, Shuffle, Nano, Video, Classic, Touch, and iPhone.
  46. %description -l ja
  47. gtkpodは、GTK3を利用したプラットフォームに依存しない Apple の iPod 用 GUI
  48. ツールです。 Mini, Photo, Shuffle, Nano, Video, Classic, Touch を含む
  49. iPod 及び iPhone に対応しています。
  50. #'
  51. %package devel
  52. Summary: Development files for the gtkpod
  53. Summary(ja): gtkpod の開発用ファイル
  54. Group: Development/Libraries
  55. Requires: %{name} = %{version}-%{release}
  56. %description devel
  57. The gtkpod-devel package contains libraries and header files for
  58. developing extensions for gtkpod.
  59. %prep
  60. %setup -q
  61. cp -p %{SOURCE1} po/ja.po
  62. %build
  63. %configure \
  64. --disable-static \
  65. %{?!with_mp4v2: --without-mp4}
  66. make %{?_smp_mflags}
  67. %install
  68. rm -rf $RPM_BUILD_ROOT
  69. make install DESTDIR=$RPM_BUILD_ROOT
  70. desktop-file-install \
  71. --delete-original \
  72. --dir %{buildroot}%{_datadir}/applications \
  73. --add-category="Audio" \
  74. --add-category="Video" \
  75. %{buildroot}%{_datadir}/applications/%{name}.desktop
  76. %find_lang %{name}
  77. # delete libtool files
  78. find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} \;
  79. %clean
  80. rm -rf $RPM_BUILD_ROOT
  81. %post
  82. /sbin/ldconfig
  83. touch --no-create %{_datadir}/icons/hicolor
  84. %postun
  85. /sbin/ldconfig
  86. if [ $1 -eq 0 ] ; then
  87. /usr/bin/glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
  88. fi
  89. if [ $1 -eq 0 ] ; then
  90. /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null
  91. /usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
  92. fi
  93. %posttrans
  94. /usr/bin/glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
  95. /usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
  96. %files -f %{name}.lang
  97. %defattr(-,root,root)
  98. %doc AUTHORS ChangeLog* COPYING README TODO TROUBLESHOOTING
  99. %{_bindir}/gtkpod
  100. %{_libdir}/lib*.so.*
  101. %dir %{_libdir}/gtkpod
  102. %{_libdir}/gtkpod/*.plugin
  103. %{_libdir}/gtkpod/*.so
  104. %{_datadir}/gtkpod
  105. %{_datadir}/applications/*
  106. %{_datadir}/glib-2.0/schemas/*.gschema.xml
  107. %{_datadir}/icons/hicolor/*
  108. %{_mandir}/man1/%{name}*
  109. %files devel
  110. %defattr(-,root,root)
  111. %{_includedir}/gtkpod
  112. %{_libdir}/lib*.so
  113. %{_libdir}/pkgconfig/*.pc
  114. %changelog
  115. * Wed Feb 4 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 2.1.4-1
  116. - updated to 2.1.4
  117. - updated SOURCE1
  118. - added devel subpackage
  119. * Fri Feb 03 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.99.16-2
  120. - rebuild with Vine6 environment
  121. * Sat Aug 14 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.99.16-1
  122. - new upstream release
  123. - add BuildRequires: libglade2-devel
  124. - add Requires: desktop-file-utils
  125. * Sat Jul 11 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.99.14-2
  126. - build without libmp4v2 by default
  127. - add %%post/%%postun script to update desktop db and icon cache
  128. * Wed Jun 10 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.99.14-1
  129. - new upstream release
  130. - spec in utf-8
  131. * Thu Apr 10 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.99.12-1vl5
  132. - applied new versioning policy
  133. - fixed Icon path of gtkpod.desktop
  134. * Sun Jan 06 2008 Shu KONNO <owa@bg.wakwak.com> 0.99.12-0vl1
  135. - new upstream release
  136. - dropt gtkpod-0.99.8_libgpod-0.4.2.diff
  137. - added icons in %%files section
  138. - rebuilt with libgpod-0.6.0
  139. * Tue May 29 2007 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 0.99.8-0vl3
  140. - for VineSeedPlus
  141. - rebuilt with new toolchain and libgpod-0.4.2
  142. - add Patch0 (derived from FC)
  143. * Sun Jan 7 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.99.8-0vl1
  144. - new upstream release
  145. - added SOURCE1
  146. - rebuilt with libgpod-devel 0.4.0
  147. - moved gtkpod.desktop to %{_datadir}/applications <BTS:454>
  148. * Sun Jan 8 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.99.2-0vl2
  149. - rebuilt for VineSeed Plus
  150. * Sun Jan 8 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.99.2-0vl1
  151. - new upstream release
  152. * Fri Dec 23 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.99.0-0vl3
  153. - rebuilt for VineSeed Plus
  154. * Fri Dec 23 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.99.0-0vl2
  155. - rebuilt for VinePlus/3.0
  156. - added BuildRequires: curl-devel, flex
  157. * Wed Dec 14 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.99.0-0vl1
  158. - new upstream release.
  159. - add BuildRequires: libgpod-devel
  160. * Tue Aug 16 2005 TOSHI <toshi-52@s5.dion.ne.jp> 0.94.0-0vl1
  161. -new upstream release.
  162. * Mon Jun 16 2005 TOSHI <toshi-52@s5.dion.ne.jp> 0.8.22-0vl3
  163. -A revision %description -l ja
  164. -A revision %files
  165. -add %doc
  166. * Thu Jun 2 2005 TOSHI <toshi-52@s5.dion.ne.jp> 0.8.22-0vl2
  167. -add macro
  168. -add BuildRequires
  169. * Tue May 17 2005 TOSHI <toshi-52@s5.dion.ne.jp> 0.8.22-0vl1
  170. First release.
  171. - initial build for Vine Linux
  172. # end of file