usb-imagewriter-vl.spec 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. %define build_vine4 0
  2. %if "%{?_dist_release}" == "vl4"
  3. %define build_vine4 1
  4. %endif
  5. Summary: A GUI interface to write image files to USB Keys
  6. Summary(ja): USBメモリにイメージファイルを書き込むためのGUIツール
  7. Name: usb-imagewriter
  8. Version: 0.1.3
  9. Release: 2%{?_dist_release}
  10. License: GPLv2
  11. Group: Applications/System
  12. URL: http://launchpad.net/usb-imagewriter
  13. Source0: usb-imagewriter_0.1.3.orig.tar.gz
  14. Source10: header-vine.png
  15. Source11: usb-imagewriter-0.1.3-ja.po
  16. Patch0: usb-imagewriter-0.1.3-support-removable.patch
  17. Patch1: usb-imagewriter-0.1.3-ja.patch
  18. Patch2: usb-imagewriter-0.1.3-gksu.patch
  19. Patch3: usb-imagewriter-0.1.3-vine4.patch
  20. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  21. BuildArch: noarch
  22. BuildRequires: desktop-file-utils
  23. %description
  24. A GUI tool to write image(.img) files to USB Keys.
  25. %description -l ja
  26. USBメモリにイメージファイル(.img)を書き込むためのGUIツールです。
  27. %prep
  28. %setup -q
  29. %patch0 -p1
  30. %patch1 -p1
  31. %patch2 -p1
  32. %if %{build_vine4}
  33. %patch3 -p1
  34. %endif
  35. cp -f %{SOURCE10} share/usb-imagewriter/header.png
  36. cp -f %{SOURCE11} po/ja.po
  37. %build
  38. pushd po
  39. ./update_translations.sh
  40. popd
  41. %install
  42. rm -rf $RPM_BUILD_ROOT
  43. mkdir -p %{buildroot}%{_bindir}
  44. mkdir -p %{buildroot}%{_prefix}/lib/imagewriter
  45. mkdir -p %{buildroot}%{_datadir}/{applications,imagewriter}
  46. install -m755 imagewriter %{buildroot}%{_bindir}
  47. install -m644 share/applications/* %{buildroot}%{_datadir}/applications
  48. install -m644 share/usb-imagewriter/* %{buildroot}%{_datadir}/imagewriter/
  49. install -m755 lib/* %{buildroot}%{_prefix}/lib/imagewriter/
  50. for l in ja de
  51. do
  52. mkdir -p %{buildroot}%{_datadir}/locale/${l}/LC_MESSAGES/
  53. install -m644 po/${l}/LC_MESSAGES/usb-imagewriter.mo \
  54. %{buildroot}%{_datadir}/locale/${l}/LC_MESSAGES/
  55. done
  56. desktop-file-install \
  57. --vendor="" --delete-original \
  58. --dir=%{buildroot}%{_datadir}/applications \
  59. --remove-category="Utility" \
  60. --add-category="System" \
  61. %{buildroot}%{_datadir}/applications/imagewriter.desktop
  62. %find_lang %{name}
  63. %clean
  64. rm -rf $RPM_BUILD_ROOT
  65. %files -f %{name}.lang
  66. %defattr(-, root, root)
  67. %doc COPYING
  68. %{_bindir}/*
  69. %{_datadir}/imagewriter
  70. %{_datadir}/applications/*.desktop
  71. %{_prefix}/lib/imagewriter
  72. %changelog
  73. * Sun Aug 16 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.1.3-2
  74. - add Patch3 for Vine Linux 4.x
  75. - change BuildArch to noarch
  76. - remove unneeded BR:
  77. * Fri May 08 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.1.3-1
  78. - initial build for Vine Linux