]>
Commit | Line | Data |
---|---|---|
aca6e70a MB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without apidocs # do not build and package API docs | |
4 | %bcond_without static_libs # don't build static libraries | |
f9356d5a | 5 | |
aca6e70a | 6 | Summary: GLib/GObject wrapper for the SkyDrive and Hotmail REST APIs |
c0cd5fb5 | 7 | Summary(pl.UTF-8): Obudowanie GLib/GObject dla API REST-owych SkyDrive'a i Hotmaila |
aca6e70a | 8 | Name: libzapojit |
3dfe606e | 9 | Version: 0.0.3 |
9b5bed57 | 10 | Release: 5 |
c0cd5fb5 | 11 | License: LGPL v2.1+ |
aca6e70a MB |
12 | Group: Libraries |
13 | Source0: http://ftp.gnome.org/pub/GNOME/sources/libzapojit/0.0/%{name}-%{version}.tar.xz | |
3dfe606e | 14 | # Source0-md5: 9de0d94e2c6a86852133a6f2f0b5fee1 |
9b5bed57 | 15 | URL: https://wiki.gnome.org/Projects/Zapojit |
aca6e70a MB |
16 | BuildRequires: autoconf >= 2.63 |
17 | BuildRequires: automake | |
b62e2482 | 18 | BuildRequires: gettext-tools |
aca6e70a MB |
19 | BuildRequires: glib2-devel >= 1:2.28.0 |
20 | BuildRequires: gnome-common >= 3.6.0 | |
21 | BuildRequires: gnome-online-accounts-devel | |
22 | BuildRequires: gobject-introspection-devel >= 1.30.0 | |
23 | BuildRequires: gtk-doc >= 1.11 | |
24 | BuildRequires: intltool >= 0.40.0 | |
25 | BuildRequires: json-glib-devel | |
26 | BuildRequires: libsoup-devel >= 2.38.0 | |
c0cd5fb5 | 27 | BuildRequires: libtool >= 2:2 |
aca6e70a | 28 | BuildRequires: pkgconfig |
c0cd5fb5 | 29 | BuildRequires: rest-devel >= 0.7 |
aca6e70a MB |
30 | BuildRequires: tar >= 1:1.22 |
31 | BuildRequires: xz | |
c0cd5fb5 JB |
32 | Requires: glib2 >= 1:2.28.0 |
33 | Requires: libsoup >= 2.38.0 | |
34 | Requires: rest >= 0.7 | |
aca6e70a MB |
35 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
36 | ||
37 | %description | |
38 | libzapojit is a GLib/GObject wrapper for the SkyDrive and Hotmail REST | |
39 | APIs. It supports SkyDrive file and folder objects, and the following | |
40 | SkyDrive operations: | |
41 | - Deleting a file, folder or photo. | |
42 | - Listing the contents of a folder. | |
43 | - Reading the properties of a file, folder or photo. | |
44 | - Uploading files and photos. | |
45 | ||
c0cd5fb5 JB |
46 | %description -l pl.UTF-8 |
47 | libzapojit to obudowanie GLib/GObject dla API REST-owych SkyDrive'a i | |
48 | Hotmaila. Obsługuje obiekty plików i folderów SkyDrive'a oraz | |
49 | następujące operacje SkyDrive: | |
50 | - usuwanie pliku, folderu lub zdjęcia, | |
51 | - listowanie zawartości folderu, | |
52 | - odczyt właściwości pliku, folderu lub zdjecia, | |
53 | - przesyłanie plików i zdjęć. | |
54 | ||
aca6e70a MB |
55 | %package devel |
56 | Summary: Header files for libzapojit library | |
57 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libzapojit | |
58 | Group: Development/Libraries | |
59 | Requires: %{name} = %{version}-%{release} | |
60 | Requires: glib2-devel >= 1:2.28.0 | |
61 | Requires: gnome-online-accounts-devel | |
62 | Requires: json-glib-devel | |
63 | Requires: libsoup-devel >= 2.38.0 | |
c0cd5fb5 | 64 | Requires: rest-devel >= 0.7 |
aca6e70a MB |
65 | |
66 | %description devel | |
67 | Header files for libzapojit library. | |
68 | ||
69 | %description devel -l pl.UTF-8 | |
70 | Pliki nagłówkowe biblioteki libzapojit. | |
71 | ||
72 | %package static | |
73 | Summary: Static libzapojit library | |
74 | Summary(pl.UTF-8): Statyczna biblioteka libzapojit | |
75 | Group: Development/Libraries | |
76 | Requires: %{name}-devel = %{version}-%{release} | |
77 | ||
78 | %description static | |
79 | Static libzapojit library. | |
80 | ||
81 | %description static -l pl.UTF-8 | |
82 | Statyczna biblioteka libzapojit. | |
83 | ||
84 | %package apidocs | |
85 | Summary: libzapojit API documentation | |
86 | Summary(pl.UTF-8): Dokumentacja API biblioteki libzapojit | |
87 | Group: Documentation | |
88 | Requires: gtk-doc-common | |
f9356d5a | 89 | BuildArch: noarch |
aca6e70a MB |
90 | |
91 | %description apidocs | |
92 | API documentation for libzapojit library. | |
93 | ||
94 | %description apidocs -l pl.UTF-8 | |
95 | Dokumentacja API biblioteki libzapojit. | |
96 | ||
97 | %prep | |
98 | %setup -q | |
99 | ||
100 | %build | |
101 | %{__libtoolize} | |
102 | %{__aclocal} -I m4 | |
103 | %{__autoconf} | |
104 | %{__autoheader} | |
105 | %{__automake} | |
106 | %configure \ | |
107 | --disable-silent-rules \ | |
108 | %{__enable_disable apidocs gtk-doc} \ | |
109 | %{__enable_disable static_libs static} \ | |
110 | --with-html-dir=%{_gtkdocdir} | |
111 | %{__make} | |
112 | ||
113 | %install | |
114 | rm -rf $RPM_BUILD_ROOT | |
115 | ||
116 | %{__make} install \ | |
117 | DESTDIR=$RPM_BUILD_ROOT | |
118 | ||
9b5bed57 JB |
119 | # obsoleted by pkg-config |
120 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libzapojit-*.la | |
121 | # packaged as %doc | |
aca6e70a MB |
122 | %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name} |
123 | ||
124 | %clean | |
125 | rm -rf $RPM_BUILD_ROOT | |
126 | ||
127 | %post -p /sbin/ldconfig | |
128 | %postun -p /sbin/ldconfig | |
129 | ||
130 | %files | |
131 | %defattr(644,root,root,755) | |
132 | %doc AUTHORS ChangeLog NEWS README | |
133 | %attr(755,root,root) %{_libdir}/libzapojit-0.0.so.*.*.* | |
134 | %attr(755,root,root) %ghost %{_libdir}/libzapojit-0.0.so.0 | |
135 | %{_libdir}/girepository-1.0/Zpj-0.0.typelib | |
136 | ||
137 | %files devel | |
138 | %defattr(644,root,root,755) | |
139 | %attr(755,root,root) %{_libdir}/libzapojit-0.0.so | |
aca6e70a MB |
140 | %{_includedir}/libzapojit-0.0 |
141 | %{_pkgconfigdir}/zapojit-0.0.pc | |
142 | %{_datadir}/gir-1.0/Zpj-0.0.gir | |
143 | ||
144 | %if %{with static_libs} | |
145 | %files static | |
146 | %defattr(644,root,root,755) | |
147 | %{_libdir}/libzapojit-0.0.a | |
148 | %endif | |
149 | ||
150 | %if %{with apidocs} | |
151 | %files apidocs | |
152 | %defattr(644,root,root,755) | |
153 | %{_gtkdocdir}/libzapojit-0.0 | |
154 | %endif |