moserial-vl.spec 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. %define pkg_version 3.0.7
  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. * Thu Jun 21 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.0.7-1
  63. - new upstream release
  64. * Wed Feb 15 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.0.5-1
  65. - new upstream release
  66. * Fri Oct 07 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.0.2-1
  67. - new upstream release
  68. - change BuildRequires: gtk3-devel instead of gtk2-devel
  69. - add Patch0 (moserial-3.0.2-stropts.patch)
  70. * Fri Feb 18 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.32.0-1
  71. - new upstream release
  72. * Sun Apr 25 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.30.0-1
  73. - initial build for Vine Linux