okteta-vl.spec 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  1. Name: okteta
  2. Summary: Binary editor for KDE
  3. Summary(ja): KDE 用バイナリエディタ
  4. Version: 4.14.3
  5. Release: 2%{?_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}/appdata/okteta.appdata.xml
  78. %{_datadir}/applications/kde4/%{name}.desktop
  79. %{_datadir}/config/okteta-structures.knsrc
  80. %{_datadir}/config.kcfg/structviewpreferences.kcfg
  81. %{_datadir}/icons/hicolor/*/*/*
  82. %{_datadir}/kde4/apps/okteta/
  83. %{_datadir}/kde4/apps/oktetapart/
  84. %{_datadir}/kde4/services/kbytearrayedit.desktop
  85. %{_datadir}/kde4/services/oktetapart.desktop
  86. %{_datadir}/mime/packages/okteta.xml
  87. %{_docdir}/HTML/en/%{name}
  88. %files libs
  89. %defattr(-,root,root,-)
  90. %{_libdir}/libkasten2controllers.so.*
  91. %{_libdir}/libkasten2core.so.*
  92. %{_libdir}/libkasten2gui.so.*
  93. %{_libdir}/libkasten2okteta1controllers.so.*
  94. %{_libdir}/libkasten2okteta1core.so.*
  95. %{_libdir}/libkasten2okteta1gui.so.*
  96. %{_libdir}/libokteta1core.so.*
  97. %{_libdir}/libokteta1gui.so.*
  98. %files devel
  99. %defattr(-,root,root,-)
  100. %{_includedir}/kde4/KDE/Kasten2
  101. %{_includedir}/kde4/KDE/Okteta1
  102. %{_includedir}/kde4/kasten2/
  103. %{_includedir}/kde4/okteta1/
  104. %{_libdir}/libkasten2controllers.so
  105. %{_libdir}/libkasten2core.so
  106. %{_libdir}/libkasten2gui.so
  107. %{_libdir}/libkasten2okteta1controllers.so
  108. %{_libdir}/libkasten2okteta1core.so
  109. %{_libdir}/libkasten2okteta1gui.so
  110. %{_libdir}/libokteta1core.so
  111. %{_libdir}/libokteta1gui.so
  112. %changelog
  113. * Fri Jul 08 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.14.3-2
  114. - rebuild with gcc-5.4.0
  115. * Thu Jan 01 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.14.3-1
  116. - new upstream release
  117. * Wed May 07 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.12.5-1
  118. - new upstream release
  119. * Sun Feb 09 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.12.2-1
  120. - new upstream release
  121. * Wed Dec 18 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.11.4-1
  122. - new upstream release
  123. * Sun Sep 15 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.11.1-1
  124. - initial build