libkgapi-vl.spec 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. Name: libkgapi
  2. Summary: Google APIs for KDE
  3. Summary(ja): KDE 向け Google API 集
  4. Version: 2.0.1
  5. Release: 1%{?_dist_release}
  6. License: GPLv2+
  7. Group: System Environment/Libraries
  8. URL: https://projects.kde.org/projects/extragear/libs/libkgapi
  9. Source0: ftp://ftp.kde.org/pub/kde/stable/%{name}/%{version}/src/%{name}-%{version}.tar.bz2
  10. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  11. BuildRequires: kdelibs-devel >= 4.7.0
  12. BuildRequires: kdepimlibs-devel >= 4.6
  13. BuildRequires: libkipi-devel
  14. BuildRequires: qjson-devel
  15. BuildRequires: soprano-devel
  16. BuildRequires: libboost-devel
  17. Requires: kdelibs4 >= 4.7.0
  18. %description
  19. LibKGAPI (previously called LibKGoogle) is a C++ library that implements APIs for
  20. various Google services.
  21. Currently supported APIs:
  22. - Calendar API v3 (https://developers.google.com/google-apps/calendar)
  23. - Contacts API v3 (https://developers.google.com/google-apps/contacts/v3/)
  24. - Tasks API v1 (https://developers.google.com/google-apps/tasks)
  25. %package devel
  26. Summary: Development files for %{name}
  27. Summary(ja): %{name} の開発用ファイル
  28. Group: Development/Libraries
  29. Requires: %{name} = %{version}-%{release}
  30. Requires: kdelibs4-devel
  31. %description devel
  32. %{summary}.
  33. %prep
  34. %setup -q
  35. %build
  36. mkdir -p %{_target_platform}
  37. pushd %{_target_platform}
  38. %cmake \
  39. -DCMAKE_BUILD_TYPE=release \
  40. -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \
  41. -DDATA_INSTALL_DIR:PATH=%{_datadir}/kde4/apps \
  42. -DINCLUDE_INSTALL_DIR:PATH=%{_includedir}/kde4 \
  43. -DLIB_INSTALL_DIR:PATH=%{_libdir} \
  44. -DLIBEXEC_INSTALL_DIR:PATH=%{_libexecdir}/kde4 \
  45. -DSYSCONF_INSTALL_DIR:PATH=%{_sysconfdir} \
  46. ..
  47. popd
  48. make %{?_smp_mflags} -C %{_target_platform}
  49. %install
  50. rm -rf $RPM_BUILD_ROOT
  51. make install/fast DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform}
  52. %check
  53. export PKG_CONFIG_PATH=$RPM_BUILD_ROOT%{_datadir}/pkgconfig:$RPM_BUILD_ROOT%{_libdir}/pkgconfig
  54. pkg-config --modversion libkipi
  55. %post
  56. /sbin/ldconfig
  57. touch --no-create %{_datadir}/icons/hicolor &> /dev/null || :
  58. %posttrans
  59. gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || :
  60. %postun
  61. /sbin/ldconfig
  62. if [ $1 -eq 0 ] ; then
  63. touch --no-create %{_datadir}/icons/hicolor &> /dev/null || :
  64. gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || :
  65. fi
  66. %files
  67. %defattr(-,root,root,-)
  68. %doc LICENSE README
  69. %{_libdir}/libkgapi.so.*
  70. %{_libdir}/libkgapi2.so.*
  71. %files devel
  72. %defattr(-,root,root,-)
  73. %{_includedir}/kde4/%{name}
  74. %{_includedir}/kde4/%{name}2
  75. %{_includedir}/kde4/LibKGAPI2
  76. %{_libdir}/libkgapi.so
  77. %{_libdir}/libkgapi2.so
  78. %{_libdir}/cmake/LibKGAPI
  79. %{_libdir}/cmake/LibKGAPI2
  80. %{_libdir}/pkgconfig/%{name}.pc
  81. %{_libdir}/pkgconfig/%{name}2.pc
  82. %changelog
  83. * Sat Jul 06 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.0.1-1
  84. - new upstream release
  85. * Fri Jan 04 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.4.4-1
  86. - new upstream release
  87. * Sun Nov 04 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.4.3-1
  88. - new upstream release
  89. * Mon Sep 03 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.4.2-1
  90. - new upstream release
  91. * Sun Aug 12 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.4.1-1
  92. - initial build