obconf-vl.spec 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. Name: obconf
  2. Version: 2.0.3
  3. Release: 4%{?_dist_release}
  4. Summary: A graphical configuration editor for the Openbox window manager
  5. Summary(ja): Openbox ウインドウマネージャのためのグラフィカルな設定エディタ
  6. Group: User Interface/X
  7. License: GPLv2+
  8. URL: http://icculus.org/openbox/index.php/ObConf:About
  9. Source0: http://icculus.org/openbox/obconf/%{name}-%{version}.tar.gz
  10. Source1: obconf-2.0.3-ja.po
  11. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  12. Requires: openbox >= 3.4
  13. BuildRequires: openbox-devel >= 3.4
  14. BuildRequires: libglade2-devel
  15. BuildRequires: startup-notification-devel
  16. BuildRequires: pkgconfig
  17. BuildRequires: desktop-file-utils
  18. BuildRequires: libSM-devel
  19. %description
  20. ObConf is a graphical configuration editor for the Openbox window manager.
  21. %description -l ja
  22. ObConf は Openbox ウインドウマネージャのためのグラフィカルな設定エディタです。
  23. %prep
  24. %setup -q
  25. ## for ja.po
  26. %{__cp} -f %{SOURCE1} po/ja.po
  27. pushd po
  28. %{__mv} LINGUAS LINGUAS.orig
  29. grep -v '^ja' LINGUAS.orig > LINGUAS
  30. echo 'ja' >> LINGUAS
  31. msgfmt -o ja.gmo ja.po
  32. popd
  33. %build
  34. %configure
  35. make %{?_smp_mflags}
  36. %install
  37. rm -rf %{buildroot}
  38. make install DESTDIR=%{buildroot}
  39. %find_lang %{name}
  40. desktop-file-install --vendor vine \
  41. --dir %{buildroot}%{_datadir}/applications \
  42. --add-category X-System \
  43. --delete-original \
  44. %{buildroot}%{_datadir}/applications/%{name}.desktop
  45. %clean
  46. rm -rf %{buildroot}
  47. %post
  48. update-mime-database %{_datadir}/mime &> /dev/null
  49. update-desktop-database %{_datadir}/applications &> /dev/null
  50. :
  51. %postun
  52. update-mime-database %{_datadir}/mime &> /dev/null
  53. update-desktop-database %{_datadir}/applications &> /dev/null
  54. :
  55. %files -f %{name}.lang
  56. %defattr(-,root,root,-)
  57. %doc AUTHORS COPYING README
  58. %{_bindir}/%{name}
  59. %{_datadir}/%{name}/
  60. %{_datadir}/applications/vine-%{name}.desktop
  61. %{_datadir}/mime/packages/%{name}.xml
  62. %{_datadir}/mimelnk/
  63. %{_datadir}/pixmaps/%{name}.png
  64. %changelog
  65. * Fri Jul 08 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 2.0.3-4
  66. - rebuilt with current environment
  67. * Wed Mar 25 2009 IWAI, Masaharu <iwai@alib.jp> - 2.0.3-3
  68. - add ja.po (SOURCE1)
  69. - update %%prep section for ja.po
  70. * Fri Mar 13 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 2.0.3-2vl5
  71. - fixed some little problem
  72. * Fri Mar 6 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 2.0.3-1vl5
  73. - initial build for VineSeed
  74. - fixed Requires: openbox >= 3.4
  75. * Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.3-3
  76. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  77. * Thu Apr 17 2008 Miroslav Lichvar <mlichvar@redhat.com> - 2.0.3-2
  78. - Rebuild for new openbox
  79. * Sun Feb 03 2008 Miroslav Lichvar <mlichvar@redhat.com> - 2.0.3-1
  80. - Update to 2.0.3
  81. * Wed Aug 22 2007 Miroslav Lichvar <mlichvar@redhat.com> - 2.0.2-2
  82. - Update license tag
  83. * Mon Jul 23 2007 Miroslav Lichvar <mlichvar@redhat.com> - 2.0.2-1
  84. - Update to 2.0.2
  85. * Thu Jun 14 2007 Miroslav Lichvar <mlichvar@redhat.com> - 2.0.1-1
  86. - Update to 2.0.1
  87. * Sun Aug 27 2006 Peter Gordon <peter@thecodergeek.com> - 1.6-3
  88. - Mass FC6 rebuild
  89. * Thu Jul 13 2006 Peter Gordon <peter@thecodergeek.com> - 1.6-2
  90. - Add BR: libSM-devel to fix build issue.
  91. * Fri Jun 09 2006 Peter Gordon <peter@thecodergeek.com> - 1.6-1
  92. - Initial packaging.