gtkpod-vl.spec 4.3 KB

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