obconf-vl.spec 3.6 KB

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