okteta-vl.spec 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. Name: okteta
  2. Summary: Binary editor for KDE
  3. Summary(ja): KDE 用バイナリエディタ
  4. Version: 4.11.1
  5. Release: 1%{?_dist_release}
  6. License: GPLv2
  7. Group: Applications/Development
  8. URL: http://www.kde.org/
  9. Source: ftp://ftp.kde.org/pub/kde/stable/%{version}/src/%{name}-%{version}.tar.xz
  10. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  11. BuildRequires: desktop-file-utils
  12. BuildRequires: kdelibs-devel >= %{version}
  13. BuildRequires: qca2-devel
  14. BuildRequires: soprano-devel
  15. Requires(posttrans,postun): desktop-file-utils, shared-mime-info
  16. Requires: %{name}-libs = %{version}-%{release}
  17. Vendor: Project Vine
  18. Distribution: Vine Linux
  19. Packager: Takemikaduchi
  20. %description
  21. Okteta is a simple editor for the raw data of files.
  22. This type of program is also called hex editor or binary editor.
  23. %package libs
  24. Summary: Runtime libraries for %{name}
  25. Group: System Environment/Libraries
  26. %description libs
  27. %{summary}.
  28. %package devel
  29. Summary: Development files for %{name}
  30. Group: Development/Libraries
  31. Requires: %{name}-libs = %{version}-%{release}
  32. Requires: kdelibs-devel
  33. %description devel
  34. Development files for %{name}.
  35. %prep
  36. %setup -q
  37. %build
  38. mkdir -p %{_target_platform}
  39. pushd %{_target_platform}
  40. %cmake \
  41. -DCMAKE_BUILD_TYPE=release \
  42. -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \
  43. -DDATA_INSTALL_DIR:PATH=%{_datadir}/kde4/apps \
  44. -DINCLUDE_INSTALL_DIR:PATH=%{_includedir}/kde4 \
  45. -DLIB_INSTALL_DIR:PATH=%{_libdir} \
  46. -DLIBEXEC_INSTALL_DIR:PATH=%{_libexecdir}/kde4 \
  47. -DSYSCONF_INSTALL_DIR:PATH=%{_sysconfdir} \
  48. ..
  49. popd
  50. make %{?_smp_mflags} -C %{_target_platform}
  51. %install
  52. rm -rf $RPM_BUILD_ROOT
  53. make install/fast DESTDIR=%{buildroot} -C %{_target_platform}
  54. %clean
  55. rm -rf $RPM_BUILD_ROOT
  56. %post
  57. touch --no-create %{_datadir}/icons/hicolor &> /dev/null ||:
  58. %posttrans
  59. gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null ||:
  60. update-desktop-database -q &> /dev/null ||:
  61. update-mime-database %{_datadir}/mime &> /dev/null || :
  62. %postun
  63. if [ $1 -eq 0 ] ; then
  64. touch --no-create %{_datadir}/icons/hicolor &> /dev/null ||:
  65. gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null ||:
  66. update-desktop-database -q &> /dev/null ||:
  67. update-mime-database %{_datadir}/mime &> /dev/null || :
  68. fi
  69. %files
  70. %defattr(-,root,root,-)
  71. %doc COPYING COPYING.DOC COPYING.LIB ChangeLog README
  72. %{_bindir}/%{name}
  73. %{_bindir}/struct2osd.sh
  74. %{_libdir}/kde4/libkbytearrayedit.so
  75. %{_libdir}/kde4/oktetapart.so
  76. %{_libdir}/kde4/plugins/designer/oktetadesignerplugin.so
  77. %{_datadir}/applications/kde4/%{name}.desktop
  78. %{_datadir}/config/okteta-structures.knsrc
  79. %{_datadir}/config.kcfg/structviewpreferences.kcfg
  80. %{_datadir}/icons/hicolor/*/*/*
  81. %{_datadir}/kde4/apps/okteta/
  82. %{_datadir}/kde4/apps/oktetapart/
  83. %{_datadir}/kde4/services/kbytearrayedit.desktop
  84. %{_datadir}/kde4/services/oktetapart.desktop
  85. %{_datadir}/mime/packages/okteta.xml
  86. %{_docdir}/HTML/en/%{name}
  87. %files libs
  88. %defattr(-,root,root,-)
  89. %{_libdir}/libkasten2controllers.so.*
  90. %{_libdir}/libkasten2core.so.*
  91. %{_libdir}/libkasten2gui.so.*
  92. %{_libdir}/libkasten2okteta1controllers.so.*
  93. %{_libdir}/libkasten2okteta1core.so.*
  94. %{_libdir}/libkasten2okteta1gui.so.*
  95. %{_libdir}/libokteta1core.so.*
  96. %{_libdir}/libokteta1gui.so.*
  97. %files devel
  98. %defattr(-,root,root,-)
  99. %{_includedir}/kde4/KDE/Kasten2
  100. %{_includedir}/kde4/KDE/Okteta1
  101. %{_includedir}/kde4/kasten2/
  102. %{_includedir}/kde4/okteta1/
  103. %{_libdir}/libkasten2controllers.so
  104. %{_libdir}/libkasten2core.so
  105. %{_libdir}/libkasten2gui.so
  106. %{_libdir}/libkasten2okteta1controllers.so
  107. %{_libdir}/libkasten2okteta1core.so
  108. %{_libdir}/libkasten2okteta1gui.so
  109. %{_libdir}/libokteta1core.so
  110. %{_libdir}/libokteta1gui.so
  111. %changelog
  112. * Sun Sep 15 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.11.1-1
  113. - initial build