kompare-vl.spec 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. Name: kompare
  2. Summary: File comparison tool 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: soprano-devel
  14. Requires(posttrans,postun): desktop-file-utils
  15. Vendor: Project Vine
  16. Distribution: Vine Linux
  17. Packager: Takemikaduchi
  18. %description
  19. Kompare is a program to view the differences between files.
  20. %package devel
  21. Summary: Development files for %{name}
  22. Group: Development/Libraries
  23. Requires: %{name} = %{version}-%{release}
  24. Requires: kdelibs-devel
  25. %description devel
  26. Development files for %{name}.
  27. %prep
  28. %setup -q
  29. %build
  30. mkdir -p %{_target_platform}
  31. pushd %{_target_platform}
  32. %cmake \
  33. -DCMAKE_BUILD_TYPE=release \
  34. -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \
  35. -DDATA_INSTALL_DIR:PATH=%{_datadir}/kde4/apps \
  36. -DINCLUDE_INSTALL_DIR:PATH=%{_includedir}/kde4 \
  37. -DLIB_INSTALL_DIR:PATH=%{_libdir} \
  38. -DLIBEXEC_INSTALL_DIR:PATH=%{_libexecdir}/kde4 \
  39. -DSYSCONF_INSTALL_DIR:PATH=%{_sysconfdir} \
  40. ..
  41. popd
  42. make %{?_smp_mflags} -C %{_target_platform}
  43. %install
  44. rm -rf $RPM_BUILD_ROOT
  45. make install/fast DESTDIR=%{buildroot} -C %{_target_platform}
  46. %clean
  47. rm -rf $RPM_BUILD_ROOT
  48. %post
  49. touch --no-create %{_datadir}/icons/hicolor &> /dev/null ||:
  50. %posttrans
  51. gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null ||:
  52. update-desktop-database -q &> /dev/null ||:
  53. %postun
  54. if [ $1 -eq 0 ] ; then
  55. touch --no-create %{_datadir}/icons/hicolor &> /dev/null ||:
  56. gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null ||:
  57. update-desktop-database -q &> /dev/null ||:
  58. fi
  59. %files
  60. %defattr(-,root,root,-)
  61. %doc COPYING COPYING.DOC COPYING.LIB ChangeLog README
  62. %{_bindir}/%{name}
  63. %{_libdir}/libkomparedialogpages.so.*
  64. %{_libdir}/libkomparediff2.so.*
  65. %{_libdir}/libkompareinterface.so.*
  66. %{_libdir}/kde4/komparenavtreepart.so
  67. %{_libdir}/kde4/komparepart.so
  68. %{_datadir}/applications/kde4/%{name}.desktop
  69. %{_datadir}/icons/hicolor/*/*/*
  70. %{_datadir}/kde4/apps/%{name}
  71. %{_datadir}/kde4/services/komparenavtreepart.desktop
  72. %{_datadir}/kde4/services/komparepart.desktop
  73. %{_datadir}/kde4/servicetypes/komparenavigationpart.desktop
  74. %{_datadir}/kde4/servicetypes/kompareviewpart.desktop
  75. %{_docdir}/HTML/en/%{name}
  76. %files devel
  77. %defattr(-,root,root,-)
  78. %{_includedir}/kde4/%{name}
  79. %{_libdir}/libkomparedialogpages.so
  80. %{_libdir}/libkomparediff2.so
  81. %{_libdir}/libkompareinterface.so
  82. %changelog
  83. * Sun Sep 15 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.11.1-1
  84. - initial build