| 1 | Name: libkgapi |
|---|
| 2 | Summary: Google APIs for KDE |
|---|
| 3 | Summary(ja): KDE 向け Google API 集 |
|---|
| 4 | Version: 2.2.0 |
|---|
| 5 | Release: 2%{?_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: kdelibs >= 4.7.0 |
|---|
| 22 | |
|---|
| 23 | Vendor: Project Vine |
|---|
| 24 | Distribution: Vine Linux |
|---|
| 25 | |
|---|
| 26 | %description |
|---|
| 27 | LibKGAPI (previously called LibKGoogle) is a C++ library that implements APIs for |
|---|
| 28 | various Google services. |
|---|
| 29 | |
|---|
| 30 | Currently supported APIs: |
|---|
| 31 | - Calendar API v3 (https://developers.google.com/google-apps/calendar) |
|---|
| 32 | - Contacts API v3 (https://developers.google.com/google-apps/contacts/v3/) |
|---|
| 33 | - Tasks API v1 (https://developers.google.com/google-apps/tasks) |
|---|
| 34 | |
|---|
| 35 | |
|---|
| 36 | %package devel |
|---|
| 37 | Summary: Development files for %{name} |
|---|
| 38 | Summary(ja): %{name} の開発用ファイル |
|---|
| 39 | Group: Development/Libraries |
|---|
| 40 | Requires: %{name} = %{version}-%{release} |
|---|
| 41 | Requires: kdelibs-devel |
|---|
| 42 | |
|---|
| 43 | %description devel |
|---|
| 44 | %{summary}. |
|---|
| 45 | |
|---|
| 46 | |
|---|
| 47 | %prep |
|---|
| 48 | %setup -q |
|---|
| 49 | |
|---|
| 50 | %build |
|---|
| 51 | mkdir -p %{_target_platform} |
|---|
| 52 | pushd %{_target_platform} |
|---|
| 53 | %cmake \ |
|---|
| 54 | -DCMAKE_BUILD_TYPE=release \ |
|---|
| 55 | -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \ |
|---|
| 56 | -DDATA_INSTALL_DIR:PATH=%{_datadir}/kde4/apps \ |
|---|
| 57 | -DINCLUDE_INSTALL_DIR:PATH=%{_includedir}/kde4 \ |
|---|
| 58 | -DLIB_INSTALL_DIR:PATH=%{_libdir} \ |
|---|
| 59 | -DLIBEXEC_INSTALL_DIR:PATH=%{_libexecdir}/kde4 \ |
|---|
| 60 | -DSYSCONF_INSTALL_DIR:PATH=%{_sysconfdir} \ |
|---|
| 61 | .. |
|---|
| 62 | popd |
|---|
| 63 | |
|---|
| 64 | make %{?_smp_mflags} -C %{_target_platform} |
|---|
| 65 | |
|---|
| 66 | |
|---|
| 67 | %install |
|---|
| 68 | rm -rf $RPM_BUILD_ROOT |
|---|
| 69 | |
|---|
| 70 | make install/fast DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform} |
|---|
| 71 | |
|---|
| 72 | |
|---|
| 73 | %post |
|---|
| 74 | /sbin/ldconfig |
|---|
| 75 | touch --no-create %{_datadir}/icons/hicolor &> /dev/null || : |
|---|
| 76 | |
|---|
| 77 | %posttrans |
|---|
| 78 | gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || : |
|---|
| 79 | |
|---|
| 80 | %postun |
|---|
| 81 | /sbin/ldconfig |
|---|
| 82 | if [ $1 -eq 0 ] ; then |
|---|
| 83 | touch --no-create %{_datadir}/icons/hicolor &> /dev/null || : |
|---|
| 84 | gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || : |
|---|
| 85 | fi |
|---|
| 86 | |
|---|
| 87 | |
|---|
| 88 | %files |
|---|
| 89 | %defattr(-,root,root,-) |
|---|
| 90 | %doc LICENSE README |
|---|
| 91 | %{_libdir}/libkgapi2.so.* |
|---|
| 92 | |
|---|
| 93 | %files devel |
|---|
| 94 | %defattr(-,root,root,-) |
|---|
| 95 | %{_includedir}/kde4/%{name}2 |
|---|
| 96 | %{_includedir}/kde4/LibKGAPI2 |
|---|
| 97 | %{_libdir}/libkgapi2.so |
|---|
| 98 | %{_libdir}/cmake/LibKGAPI2 |
|---|
| 99 | |
|---|
| 100 | |
|---|
| 101 | %changelog |
|---|
| 102 | * Mon Jul 04 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.2.0-2 |
|---|
| 103 | - rebuild with gcc-5.4.0 |
|---|
| 104 | |
|---|
| 105 | * Wed Dec 31 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.2.0-1 |
|---|
| 106 | - new upstream release |
|---|
| 107 | |
|---|
| 108 | * Mon May 05 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.1.1-1 |
|---|
| 109 | - new upstream release |
|---|
| 110 | |
|---|
| 111 | * Sun Feb 09 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.0.2-1 |
|---|
| 112 | - new upstream release |
|---|
| 113 | |
|---|
| 114 | * Sat Jul 06 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.0.1-1 |
|---|
| 115 | - new upstream release |
|---|
| 116 | |
|---|
| 117 | * Fri Jan 04 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.4.4-1 |
|---|
| 118 | - new upstream release |
|---|
| 119 | |
|---|
| 120 | * Sun Nov 04 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.4.3-1 |
|---|
| 121 | - new upstream release |
|---|
| 122 | |
|---|
| 123 | * Mon Sep 03 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.4.2-1 |
|---|
| 124 | - new upstream release |
|---|
| 125 | |
|---|
| 126 | * Sun Aug 12 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.4.1-1 |
|---|
| 127 | - initial build |
|---|