kfloppy-vl.spec 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. Name: kfloppy
  2. Summary: Floppy formatter 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. # when split occurred
  14. Conflicts: kdeutils < 4.8.0
  15. Vendor: Project Vine
  16. Distribution: Vine Linux
  17. %description
  18. %prep
  19. %setup -q
  20. %build
  21. mkdir -p %{_target_platform}
  22. pushd %{_target_platform}
  23. %cmake \
  24. -DCMAKE_BUILD_TYPE=release \
  25. -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \
  26. -DDATA_INSTALL_DIR:PATH=%{_datadir}/kde4/apps \
  27. -DINCLUDE_INSTALL_DIR:PATH=%{_includedir}/kde4 \
  28. -DLIB_INSTALL_DIR:PATH=%{_libdir} \
  29. -DLIBEXEC_INSTALL_DIR:PATH=%{_libexecdir}/kde4 \
  30. -DSYSCONF_INSTALL_DIR:PATH=%{_sysconfdir} \
  31. ..
  32. popd
  33. make %{?_smp_mflags} -C %{_target_platform}
  34. %install
  35. rm -rf %{buildroot}
  36. make install/fast DESTDIR=%{buildroot} -C %{_target_platform}
  37. %post
  38. touch --no-create %{_datadir}/icons/hicolor &> /dev/null ||:
  39. %posttrans
  40. update-desktop-database -q &> /dev/null ||:
  41. gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null ||:
  42. %postun
  43. if [ $1 -eq 0 ] ; then
  44. touch --no-create %{_datadir}/icons/hicolor &> /dev/null ||:
  45. gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null ||:
  46. update-desktop-database -q &> /dev/null ||:
  47. fi
  48. %files
  49. %doc COPYING README
  50. %{_bindir}/%{name}
  51. %{_datadir}/applications/kde4/KFloppy.desktop
  52. %{_datadir}/icons/hicolor/*/*/*
  53. %{_docdir}/HTML/en/%{name}
  54. %changelog
  55. * Fri Jan 02 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.14.3-1
  56. - initila build