gtkpod-vl.spec 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  1. %bcond_with mp4v2
  2. Summary: GUI tool for Apple's iPod
  3. Summary(ja): アップルのiPod用GUIツール
  4. Name: gtkpod
  5. Version: 0.99.16
  6. Release: 1%{?_dist_release}
  7. Source0: %{name}-%{version}.tar.gz
  8. Source1: %{name}-0.99.8-ja.po
  9. License: GPL
  10. Group: Applications/Multimedia
  11. URL: http://gtkpod.sourceforge.net/
  12. Requires: desktop-file-utils
  13. BuildRequires: gtk2-devel, libid3tag-devel, libgpod-devel, curl-devel
  14. BuildRequires: gettext-devel, flex
  15. BuildRequires: libglade2-devel
  16. %if %{with mp4v2}
  17. BuildRequires: self-build-libmp4v2}
  18. %endif
  19. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  20. Vendor: Project Vine
  21. Distribution: Vine Linux
  22. %description
  23. gtkpod is a platform independent GUI tool for Apple's iPod using GTK2.
  24. It supports the first to fourth Generation as well as the iPod mini,
  25. iPod Photo, iPod shuffle and iPod Video.
  26. %description -l ja
  27. gtkpodは、GTK2を利用したプラットフォームに依存しないアップルの iPod 用
  28. GUIツールです。初代 iPod 〜第四世代の iPod、及び iPod(mini、Photo、
  29. shuffle、Video)に対応しています。
  30. %prep
  31. %setup -q
  32. cp -p %{SOURCE1} po/ja.po
  33. %build
  34. %configure \
  35. %{?!with_mp4v2: --without-mp4v2}
  36. make
  37. %install
  38. rm -rf $RPM_BUILD_ROOT
  39. %makeinstall
  40. mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications
  41. cat > $RPM_BUILD_ROOT%{_datadir}/applications/gtkpod.desktop << EOF
  42. [Desktop Entry]
  43. Name=gtkpod
  44. Comment=GUI tool for Apple's iPod
  45. Comment[ja]=アップルのiPod用GUIツール
  46. Icon=gtkpod
  47. Exec=gtkpod
  48. Type=Application
  49. Categories=Application;GTK;AudioVideo;
  50. Terminal=0
  51. EOF
  52. #mkdir -p $RPM_BUILD_ROOT%{_datadir}/pixmaps
  53. #pushd $RPM_BUILD_ROOT%{_datadir}/pixmaps
  54. #ln -s ../gtkpod/pixmaps/gtkpod-icon-32.png .
  55. #popd
  56. # remove unused file
  57. rm -f $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/icon-theme.cache
  58. %post
  59. update-desktop-database -q ||:
  60. touch --no-create %{_datadir}/icons/hicolor
  61. if [ -x /usr/bin/gtk-update-icon-cache ]; then
  62. gtk-update-icon-cache -q %{_datadir}/icons/hicolor ||:
  63. fi
  64. %postun
  65. update-desktop-database -q ||:
  66. touch --no-create %{_datadir}/icons/hicolor
  67. if [ -x /usr/bin/gtk-update-icon-cache ]; then
  68. gtk-update-icon-cache -q %{_datadir}/icons/hicolor ||:
  69. fi
  70. %clean
  71. rm -rf $RPM_BUILD_ROOT
  72. %files
  73. %defattr(-,root,root)
  74. %doc AUTHORS TODOandBUGS.txt COPYING ChangeLog INSTALL NEWS README
  75. %{_bindir}/gtkpod
  76. %{_datadir}/gtkpod
  77. %{_localedir}/*/*/gtkpod.mo
  78. #{_sysconfdir}/X11/applnk/Multimedia/gtkpod.desktop
  79. #{_datadir}/pixmaps/*
  80. %{_datadir}/applications/*
  81. %{_datadir}/icons/hicolor/*
  82. %changelog
  83. * Sat Aug 14 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.99.16-1
  84. - new upstream release
  85. - add BuildRequires: libglade2-devel
  86. - add Requires: desktop-file-utils
  87. * Sat Jul 11 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.99.14-2
  88. - build without libmp4v2 by default
  89. - add %%post/%%postun script to update desktop db and icon cache
  90. * Wed Jun 10 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.99.14-1
  91. - new upstream release
  92. - spec in utf-8
  93. * Thu Apr 10 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.99.12-1vl5
  94. - applied new versioning policy
  95. - fixed Icon path of gtkpod.desktop
  96. * Sun Jan 06 2008 Shu KONNO <owa@bg.wakwak.com> 0.99.12-0vl1
  97. - new upstream release
  98. - dropt gtkpod-0.99.8_libgpod-0.4.2.diff
  99. - added icons in %%files section
  100. - rebuilt with libgpod-0.6.0
  101. * Tue May 29 2007 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 0.99.8-0vl3
  102. - for VineSeedPlus
  103. - rebuilt with new toolchain and libgpod-0.4.2
  104. - add Patch0 (derived from FC)
  105. * Sun Jan 7 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.99.8-0vl1
  106. - new upstream release
  107. - added SOURCE1
  108. - rebuilt with libgpod-devel 0.4.0
  109. - moved gtkpod.desktop to %{_datadir}/applications <BTS:454>
  110. * Sun Jan 8 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.99.2-0vl2
  111. - rebuilt for VineSeed Plus
  112. * Sun Jan 8 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.99.2-0vl1
  113. - new upstream release
  114. * Fri Dec 23 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.99.0-0vl3
  115. - rebuilt for VineSeed Plus
  116. * Fri Dec 23 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.99.0-0vl2
  117. - rebuilt for VinePlus/3.0
  118. - added BuildRequires: curl-devel, flex
  119. * Wed Dec 14 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.99.0-0vl1
  120. - new upstream release.
  121. - add BuildRequires: libgpod-devel
  122. * Tue Aug 16 2005 TOSHI <toshi-52@s5.dion.ne.jp> 0.94.0-0vl1
  123. -new upstream release.
  124. * Mon Jun 16 2005 TOSHI <toshi-52@s5.dion.ne.jp> 0.8.22-0vl3
  125. -A revision %description -l ja
  126. -A revision %files
  127. -add %doc
  128. * Thu Jun 2 2005 TOSHI <toshi-52@s5.dion.ne.jp> 0.8.22-0vl2
  129. -add macro
  130. -add BuildRequires
  131. * Tue May 17 2005 TOSHI <toshi-52@s5.dion.ne.jp> 0.8.22-0vl1
  132. First release.
  133. - initial build for Vine Linux
  134. # end of file