moserial-vl.spec 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. %define pkg_version 3.0.2
  2. %define pkg_release 1%{?_dist_release}
  3. Summary: Gtk-based serial terminal
  4. Summary(ja): GTKベースのシリアルターミナル
  5. Name: moserial
  6. Version: %{pkg_version}
  7. Release: %{pkg_release}
  8. Source0: http://ftp.gnome.org/pub/gnome/sources/moserial/3.0/%{name}-%{version}.tar.xz
  9. Patch0: moserial-3.0.2-stropts.patch
  10. License: GPLv3+
  11. Group: Applications/Communications
  12. URL: http://live.gnome.org/moserial
  13. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  14. Requires: hicolor-icon-theme
  15. BuildRequires: gtk3-devel
  16. BuildRequires: GConf2-devel
  17. BuildRequires: vala-devel
  18. BuildRequires: gnome-doc-utils >= 0.3.2
  19. BuildRequires: docbook-utils
  20. BuildRequires: desktop-file-utils
  21. Vendor: Project Vine
  22. Distribution: Vine Linux
  23. Packager: Takemikaduchi
  24. %description
  25. moserial is a clean, friendly gtk-based serial terminal for the gnome desktop. It is written in Vala for extra goodness.
  26. %prep
  27. %setup -q
  28. %patch0 -p1 -b .stropts
  29. %build
  30. %configure --disable-static
  31. %{__make} %{?_smp_mflags}
  32. %install
  33. %{__rm} -rf ${RPM_BUILD_ROOT}
  34. %{__make} install DESTDIR=${RPM_BUILD_ROOT}
  35. desktop-file-install --delete-original \
  36. --dir %{buildroot}%{_datadir}/applications \
  37. %{buildroot}%{_datadir}/applications/%{name}.desktop
  38. %find_lang %{name}
  39. %clean
  40. %{__rm} -rf ${RPM_BUILD_ROOT}
  41. %post
  42. touch --no-create %{_datadir}/icons/hicolor
  43. if [ -x %{_bindir}/gtk-update-icon-cache ]; then
  44. %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
  45. fi
  46. %postun
  47. touch --no-create %{_datadir}/icons/hicolor
  48. if [ -x %{_bindir}/gtk-update-icon-cache ]; then
  49. %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
  50. fi
  51. %files -f %{name}.lang
  52. %defattr(-,root,root)
  53. %doc COPYING ChangeLog NEWS README
  54. %{_bindir}/moserial
  55. %{_datadir}/applications/moserial.desktop
  56. %{_datadir}/icons/hicolor/*/*/*
  57. %{_datadir}/gnome/help/moserial
  58. %{_datadir}/moserial/glade/moserial.ui
  59. %{_datadir}/omf/moserial/*
  60. %{_mandir}/man1/moserial.1.gz
  61. %changelog
  62. * Fri Oct 07 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.0.2-1
  63. - new upstream release
  64. - change BuildRequires: gtk3-devel instead of gtk2-devel
  65. - add Patch0 (moserial-3.0.2-stropts.patch)
  66. * Fri Feb 18 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.32.0-1
  67. - new upstream release
  68. * Sun Apr 25 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.30.0-1
  69. - initial build for Vine Linux