]>
Commit | Line | Data |
---|---|---|
4629c2dc JB |
1 | # |
2 | # Conditional build: | |
6fbe624e | 3 | %bcond_without apidocs # API documentation |
4629c2dc | 4 | %bcond_without static_libs # static library |
7985ccca | 5 | %bcond_without oauth1 # OAuth 1.0 support (deprecated) |
4629c2dc | 6 | |
0b1b03da | 7 | Summary: GData access library |
0d038768 | 8 | Summary(pl.UTF-8): Biblioteka dostępu poprzez protokół GData |
0b1b03da | 9 | Name: libgdata |
6fbe624e | 10 | Version: 0.17.13 |
622eae29 | 11 | Release: 1 |
0d038768 | 12 | License: LGPL v2.1+ |
0b1b03da | 13 | Group: Libraries |
8c0eaea0 | 14 | Source0: http://ftp.gnome.org/pub/GNOME/sources/libgdata/0.17/%{name}-%{version}.tar.xz |
6fbe624e | 15 | # Source0-md5: b1bebb5951f8ef9782cb64c2f2a3b8ad |
0ff974ea | 16 | URL: https://wiki.gnome.org/Projects/libgdata |
0d038768 | 17 | BuildRequires: gcr-devel >= 3 |
622eae29 | 18 | # for tests only |
56a93ab8 | 19 | BuildRequires: gdk-pixbuf2-devel >= 2.14 |
3e60e1fa | 20 | BuildRequires: gettext-tools >= 0.17 |
e71d70e0 | 21 | BuildRequires: glib2-devel >= 1:2.44.0 |
117d3cba | 22 | BuildRequires: gnome-online-accounts-devel >= 3.8 |
5db7e936 | 23 | BuildRequires: gobject-introspection-devel >= 0.9.7 |
0d038768 | 24 | BuildRequires: gtk+3-devel >= 3.0 |
6fbe624e | 25 | %{?with_apidocs:BuildRequires: gtk-doc >= 1.25} |
117d3cba | 26 | BuildRequires: json-glib-devel >= 0.15 |
7985ccca | 27 | %{?with_oauth1:BuildRequires: liboauth-devel >= 0.9.4} |
841294e3 | 28 | BuildRequires: libsoup-devel >= 2.56.0 |
0b1b03da | 29 | BuildRequires: libxml2-devel >= 1:2.6.26 |
0ff974ea JB |
30 | BuildRequires: meson >= 0.50.0 |
31 | BuildRequires: ninja >= 1.5 | |
0b1b03da | 32 | BuildRequires: pkgconfig |
0ff974ea | 33 | BuildRequires: rpmbuild(macros) >= 1.736 |
4629c2dc | 34 | BuildRequires: sed >= 4.0 |
8e6be9ea | 35 | BuildRequires: tar >= 1:1.22 |
8c0eaea0 | 36 | BuildRequires: uhttpmock-devel >= 0.5.0 |
e71d70e0 | 37 | BuildRequires: vala |
f195f3d5 | 38 | BuildRequires: vala-gnome-online-accounts |
8e6be9ea | 39 | BuildRequires: xz |
e71d70e0 | 40 | Requires: glib2 >= 1:2.44.0 |
117d3cba JB |
41 | Requires: gnome-online-accounts-libs >= 3.8 |
42 | Requires: json-glib >= 0.15 | |
7985ccca | 43 | %{?with_oauth1:Requires: liboauth >= 0.9.4} |
841294e3 | 44 | Requires: libsoup >= 2.56.0 |
0b1b03da PZ |
45 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
46 | ||
47 | %description | |
81470efb MB |
48 | libgdata is a GLib-based library for accessing online service APIs |
49 | using the GData protocol - most notably, Google's services. It | |
50 | provides APIs to access the common Google services, and has full | |
51 | asynchronous support. | |
0b1b03da | 52 | |
0d038768 JB |
53 | %description -l pl.UTF-8 |
54 | libgdata to oparta na GLibie biblioteka służąca do dostępu do API | |
55 | serwisów sieciowych przy użyciu protokołu GData - głównie serwisów | |
56 | firmy Google. Biblioteka udostępnia API do popularnych serwisów Google | |
57 | i ma pełną obsługę komunikacji asynchronicznej. | |
58 | ||
0b1b03da | 59 | %package devel |
0d038768 JB |
60 | Summary: Header files for libgdata library |
61 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libgdata | |
0b1b03da PZ |
62 | Group: Development/Libraries |
63 | Requires: %{name} = %{version}-%{release} | |
0d038768 | 64 | Requires: gcr-devel >= 3 |
e71d70e0 | 65 | Requires: glib2-devel >= 1:2.44.0 |
117d3cba JB |
66 | Requires: gnome-online-accounts-devel >= 3.8 |
67 | Requires: json-glib-devel >= 0.15 | |
7985ccca | 68 | %{?with_oauth1:Requires: liboauth-devel >= 0.9.4} |
841294e3 | 69 | Requires: libsoup-devel >= 2.56.0 |
0b1b03da PZ |
70 | Requires: libxml2-devel >= 1:2.6.26 |
71 | ||
72 | %description devel | |
0d038768 | 73 | Header files and support files necessary to compile applications using |
0b1b03da PZ |
74 | libgdata. |
75 | ||
0d038768 JB |
76 | %description devel -l pl.UTF-8 |
77 | Pliki nagłówkowe oraz pomocnicze potrzebne do kompilowania aplikacji | |
78 | wykorzystujących bibliotekę libgdata. | |
79 | ||
0b1b03da | 80 | %package static |
0d038768 JB |
81 | Summary: libgdata static library |
82 | Summary(pl.UTF-8): Statyczna biblioteka libgdata | |
0b1b03da PZ |
83 | Group: Development/Libraries |
84 | Requires: %{name}-devel = %{version}-%{release} | |
85 | ||
86 | %description static | |
0d038768 JB |
87 | This package contains static libgdata library. |
88 | ||
89 | %description static -l pl.UTF-8 | |
90 | Ten pakiet zawiera statyczną bibliotekę libgdata. | |
0b1b03da PZ |
91 | |
92 | %package apidocs | |
93 | Summary: libgdata API documentation | |
0d038768 | 94 | Summary(pl.UTF-8): Dokumentacja API biblioteki libgdata |
0b1b03da PZ |
95 | Group: Documentation |
96 | Requires: gtk-doc-common | |
6fbe624e | 97 | %if "%{_rpmversion}" >= "4.6" |
f9cfe021 ER |
98 | BuildArch: noarch |
99 | %endif | |
0b1b03da PZ |
100 | |
101 | %description apidocs | |
102 | libgdata API documentation. | |
103 | ||
0d038768 JB |
104 | %description apidocs -l pl.UTF-8 |
105 | Dokumentacja API biblioteki libgdata. | |
106 | ||
e82d74a8 MB |
107 | %package -n vala-libgdata |
108 | Summary: libgdata API for Vala language | |
109 | Summary(pl.UTF-8): API libgdata dla języka Vala | |
110 | Group: Development/Libraries | |
111 | Requires: %{name}-devel = %{version}-%{release} | |
112 | Requires: vala >= 2:0.16 | |
6fbe624e | 113 | %if "%{_rpmversion}" >= "4.6" |
66f4b62c ER |
114 | BuildArch: noarch |
115 | %endif | |
e82d74a8 MB |
116 | |
117 | %description -n vala-libgdata | |
118 | libgdata API for Vala language. | |
119 | ||
120 | %description -n vala-libgdata -l pl.UTF-8 | |
121 | API libgdata dla języka Vala. | |
122 | ||
0b1b03da PZ |
123 | %prep |
124 | %setup -q | |
4629c2dc JB |
125 | |
126 | %if %{with static_libs} | |
127 | %{__sed} -i -e '/^libgdata_lib =/ s/shared_library/library/' gdata/meson.build | |
128 | %endif | |
0b1b03da PZ |
129 | |
130 | %build | |
0ff974ea | 131 | %meson build \ |
6fbe624e | 132 | %{?with_apidocs:-Dgtk_doc=true} \ |
0ff974ea | 133 | -Dinstalled_tests=false \ |
7985ccca JB |
134 | -Dman=true \ |
135 | %{?with_oauth1:-Doauth1=enabled} | |
0ff974ea JB |
136 | |
137 | %ninja_build -C build | |
0b1b03da PZ |
138 | |
139 | %install | |
140 | rm -rf $RPM_BUILD_ROOT | |
141 | ||
0ff974ea | 142 | %ninja_install -C build |
56a93ab8 | 143 | |
4629c2dc | 144 | %find_lang gdata |
0b1b03da PZ |
145 | |
146 | %clean | |
147 | rm -rf $RPM_BUILD_ROOT | |
148 | ||
4629c2dc JB |
149 | %post -p /sbin/ldconfig |
150 | %postun -p /sbin/ldconfig | |
0b1b03da | 151 | |
4629c2dc | 152 | %files -f gdata.lang |
0b1b03da | 153 | %defattr(644,root,root,755) |
0ff974ea | 154 | %doc AUTHORS NEWS README |
0b1b03da | 155 | %attr(755,root,root) %{_libdir}/libgdata.so.*.*.* |
8c0eaea0 | 156 | %attr(755,root,root) %ghost %{_libdir}/libgdata.so.22 |
81470efb | 157 | %{_libdir}/girepository-1.0/GData-0.0.typelib |
0b1b03da PZ |
158 | |
159 | %files devel | |
160 | %defattr(644,root,root,755) | |
161 | %attr(755,root,root) %{_libdir}/libgdata.so | |
81470efb | 162 | %{_datadir}/gir-1.0/GData-0.0.gir |
0b1b03da PZ |
163 | %{_includedir}/libgdata |
164 | %{_pkgconfigdir}/libgdata.pc | |
165 | ||
fd8d4394 | 166 | %if %{with static_libs} |
0b1b03da PZ |
167 | %files static |
168 | %defattr(644,root,root,755) | |
169 | %{_libdir}/libgdata.a | |
fd8d4394 | 170 | %endif |
0b1b03da | 171 | |
6fbe624e | 172 | %if %{with apidocs} |
0b1b03da PZ |
173 | %files apidocs |
174 | %defattr(644,root,root,755) | |
175 | %{_gtkdocdir}/gdata | |
6fbe624e | 176 | %endif |
e82d74a8 MB |
177 | |
178 | %files -n vala-libgdata | |
179 | %defattr(644,root,root,755) | |
180 | %{_datadir}/vala/vapi/libgdata.deps | |
181 | %{_datadir}/vala/vapi/libgdata.vapi |