kcalc-vl.spec 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. Name: kcalc
  2. Summary: A calculator for KDE
  3. Summary(ja): KDE用電卓
  4. Version: 4.14.3
  5. Release: 1%{?_dist_release}
  6. License: GPLv2
  7. Group: Applications/Accessories
  8. URL: https://www.kde.org/
  9. Source0: ftp://ftp.kde.org/pub/kde/stable/%{version}/src/%{name}-%{version}.tar.xz
  10. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  11. BuildRequires: kdelibs-devel >= %{version}
  12. BuildRequires: soprano-devel
  13. BuildRequires: gmp-devel
  14. # when split occurred
  15. Conflicts: kdeutils < 4.8.0
  16. Vendor: Project Vine
  17. Distribution: Vine Linux
  18. %description
  19. Kcalc is a calculator for &kde;. In the simple mode it can be used
  20. for basic arithmetic operations, but provides advanced modes for
  21. scientific, statistical and numeral system calculations.
  22. %prep
  23. %setup -q
  24. %build
  25. mkdir -p %{_target_platform}
  26. pushd %{_target_platform}
  27. %cmake \
  28. -DCMAKE_BUILD_TYPE=release \
  29. -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \
  30. -DDATA_INSTALL_DIR:PATH=%{_datadir}/kde4/apps \
  31. -DINCLUDE_INSTALL_DIR:PATH=%{_includedir}/kde4 \
  32. -DLIB_INSTALL_DIR:PATH=%{_libdir} \
  33. -DLIBEXEC_INSTALL_DIR:PATH=%{_libexecdir}/kde4 \
  34. -DSYSCONF_INSTALL_DIR:PATH=%{_sysconfdir} \
  35. ..
  36. popd
  37. make %{?_smp_mflags} -C %{_target_platform}
  38. %install
  39. rm -rf %{buildroot}
  40. make install/fast DESTDIR=%{buildroot} -C %{_target_platform}
  41. %posttrans
  42. update-desktop-database -q &> /dev/null ||:
  43. %postun
  44. if [ $1 -eq 0 ] ; then
  45. update-desktop-database -q &> /dev/null ||:
  46. fi
  47. %files
  48. %doc COPYING COPYING.LIB ChangeLog README
  49. %{_bindir}/%{name}
  50. %{_libdir}/libkdeinit4_kcalc.so
  51. %{_datadir}/applications/kde4/%{name}.desktop
  52. %{_datadir}/config.kcfg/%{name}.kcfg
  53. %{_datadir}/kde4/apps/%{name}
  54. %{_datadir}/kde4/apps/kconf_update/kcalcrc.upd
  55. %{_docdir}/HTML/en/%{name}
  56. %changelog
  57. * Fri Jan 02 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.14.3-1
  58. - initila build