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