Summary:	A library for accessing online service APIs using the GData protocol
Summary(ja):	GData プロトコルを使用しているオンラインサービス API にアクセスするためのライブラリ
Name:		libgdata
Version:	0.17.12
Release:	1%{?_dist_release}
License:	LGPLv2+
Vendor:		Project Vine
Distribution:	Vine Linux

URL:		https://wiki.gnome.org/Projects/libgdata
%global		shortver %(echo %{version} | sed -e 's/\.[0-9]*$//')
Source0:	https://download.gnome.org/sources/%{name}/%{shortver}/%{name}-%{version}.tar.xz

BuildRequires:	meson
BuildRequires:	glib2-devel >= 2.26.0
BuildRequires:	gdk-pixbuf2-devel
BuildRequires:	libsoup-devel >= 2.32.0
BuildRequires:	libxml2-devel
BuildRequires:	gobject-introspection-devel
BuildRequires:	json-glib-devel
BuildRequires:	gcr-devel
BuildRequires:	gnome-online-accounts-devel
BuildRequires:	uhttpmock-devel
BuildRequires:	vala-tools
BuildRequires:	gnome-common

BuildRoot: %{_tmppath}/%{name}-%{version}-root

%description
libgdata is a GLib-based library for accessing online service APIs using the
GData protocol - most notably, Google's services. It provides APIs to access
the common Google services, and has full asynchronous support. 


%package	devel
Summary:	Development files for libgdata
Group:		Development/Libraries
Requires:	%{name} = %{version}-%{release}
Requires:	libsoup-devel >= 2.26.1
Requires:	libxml2-devel

%description	devel
Development files for libdata.


%prep
%setup -q


%build
%meson \
	-Dinstalled_tests=false \
	-Dgtk_doc=false
%meson_build


%install
%{__rm} -rf ${RPM_BUILD_ROOT}
%meson_install

%find_lang gdata


%clean
%{__rm} -rf ${RPM_BUILD_ROOT}


##%check
# Only the general test can be run without network access
##cd gdata/tests
##./general

%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig


%files -f gdata.lang
%defattr(-,root,root)
%license COPYING
%doc ChangeLog NEWS README
%{_libdir}/libgdata.so.*
%{_libdir}/girepository-1.0/GData-0.0.typelib

%files devel
%defattr(-,root,root,-)
%{_includedir}/libgdata
%{_libdir}/libgdata.so
%{_libdir}/pkgconfig/libgdata.pc
%{_datadir}/gir-1.0/GData-0.0.gir
%dir %{_datadir}/vala
%dir %{_datadir}/vala/vapi
%{_datadir}/vala/vapi/*


%changelog
* Mon Aug 03 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.17.12-1
- new upstream release.

* Sat Dec 29 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.17.9-1
- new upstream release.

* Wed Nov 19 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.16.1-1
- new upstream release

* Sun Oct 26 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.16.0-1
- new upstream release
- add BuildRequires: json-glib-devel, uhttpmock-devel

* Sat Jun 07 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.14.3-1
- new upstream release

* Tue Dec 24 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.14.1-1
- new upstream release

* Sat Aug 31 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.14.0-1
- new upstream release

* Sat Apr 20 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.13.3-1
- new upstream release

* Mon Oct 01 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.13.2-1
- new upstream release
- remove BuildRequires: libgnome-keyring-devel
- add BuildRequires: gcr-devel, gnome-online-accounts-devel

* Sun Apr 08 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.12.0-1
- new upstream release
- add BuildRequires: libgnome-keyring-devel

* Sun Sep 18 2011 Yasumichi Akahoshi <yasumichi@vinelinux.org> 0.10.1-1
- new upstream release

* Mon Aug 15 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.1-1
- new upstream release
- add BuildRequires: liboauth-devel, gdk-pixbuf2-devel

* Sat Dec 18 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.6.6-1
- new upstream release

* Sun Oct 03 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.6.5-1
- new upstream release
- remove BuildRequires: gir-repository-devel
- drop %check

* Sat Sep 25 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.6.4-3
- rebuild with rpm-4.8.1 for pkg-config file

* Sat Sep 04 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.6.4-2
- fixed Group typo

* Sun May 09 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.6.4-1
- initial build for Vine Linux