]>
Commit | Line | Data |
---|---|---|
a0729406 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 | |
5 | # | |
6 | %define apiver 0.7 | |
7 | # | |
8 | Summary: A library for access to RESTful web services | |
e4f3e6ef | 9 | Summary(pl.UTF-8): Biblioteka dostępu do REST-owych serwisów WWW |
a0729406 | 10 | Name: rest |
5d1b0a81 | 11 | Version: 0.7.91 |
a0729406 MB |
12 | Release: 1 |
13 | License: LGPL v2 | |
14 | Group: Libraries | |
5ea56938 | 15 | Source0: http://ftp.gnome.org/pub/GNOME/sources/rest/0.7/%{name}-%{version}.tar.xz |
5d1b0a81 | 16 | # Source0-md5: abd6211788b9b8dac432a26767099a27 |
a0729406 MB |
17 | URL: http://www.gnome.org/ |
18 | BuildRequires: autoconf >= 2.63 | |
19 | BuildRequires: automake >= 1:1.11 | |
023ec758 | 20 | BuildRequires: glib2-devel >= 1:2.24 |
a0729406 MB |
21 | BuildRequires: gobject-introspection-devel >= 0.6.7 |
22 | BuildRequires: gtk-doc >= 1.13 | |
23 | BuildRequires: libsoup-gnome-devel >= 2.26.0 | |
24 | BuildRequires: libtool >= 2:2.2.6 | |
023ec758 | 25 | BuildRequires: libxml2-devel >= 2 |
a0729406 | 26 | BuildRequires: pkgconfig |
5ea56938 MB |
27 | BuildRequires: tar >= 1:1.22 |
28 | BuildRequires: xz | |
023ec758 | 29 | Requires: glib2 >= 1:2.24 |
6558a390 JB |
30 | Requires: libsoup-gnome >= 2.26.0 |
31 | Suggests: ca-certificates | |
a0729406 MB |
32 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
33 | ||
34 | %description | |
e4f3e6ef JB |
35 | This library was designed to make it easier to access web services |
36 | that claim to be "RESTful". A RESTful service should have URLs that | |
37 | represent remote objects, which methods can then be called on. The | |
38 | majority of services don't actually adhere to this strict definition. | |
39 | Instead, their RESTful end point usually has an API that is just | |
40 | simpler to use compared to other types of APIs they may support | |
41 | (XML-RPC, for instance). It is this kind of API that this library is | |
42 | attempting to support. | |
43 | ||
44 | %description -l pl.UTF-8 | |
45 | Ta biblioteka została zaprojektowana, aby ułatwić dostęp do serwisów | |
46 | WWW, które uznają się za "REST-owe". Serwis REST-owy powinien mieć | |
47 | URL-e reprezentujące zdalne obiekty, na których można wywoływać | |
48 | metody. Większość serwisów nie jest w pełni zgodna z tą definicją, ale | |
49 | ich REST-owy interfejs zwykle ma API prostsze od innych (np. XML-RPC). | |
50 | Ten rodzaj API próbuje obsłużyć ta biblioteka. | |
a0729406 MB |
51 | |
52 | %package devel | |
53 | Summary: Header files for rest library | |
54 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki rest | |
55 | Group: Development/Libraries | |
56 | Requires: %{name} = %{version}-%{release} | |
023ec758 | 57 | Requires: glib2-devel >= 1:2.24 |
a0729406 | 58 | Requires: libsoup-devel >= 2.26.0 |
023ec758 | 59 | Requires: libxml2-devel >= 2 |
a0729406 MB |
60 | |
61 | %description devel | |
62 | Header files for rest library. | |
63 | ||
64 | %description devel -l pl.UTF-8 | |
65 | Pliki nagłówkowe biblioteki rest. | |
66 | ||
67 | %package static | |
68 | Summary: Static rest library | |
69 | Summary(pl.UTF-8): Statyczna biblioteka rest | |
70 | Group: Development/Libraries | |
71 | Requires: %{name}-devel = %{version}-%{release} | |
72 | ||
73 | %description static | |
74 | Static rest library. | |
75 | ||
76 | %description static -l pl.UTF-8 | |
77 | Statyczna biblioteka rest. | |
78 | ||
79 | %package apidocs | |
80 | Summary: rest API documentation | |
81 | Summary(pl.UTF-8): Dokumentacja API biblioteki rest | |
82 | Group: Documentation | |
83 | ||
84 | %description apidocs | |
85 | API documentation for rest library. | |
86 | ||
87 | %description apidocs -l pl.UTF-8 | |
88 | Dokumentacja API biblioteki rest. | |
89 | ||
90 | %prep | |
91 | %setup -q | |
92 | ||
93 | %build | |
94 | %{__libtoolize} | |
95 | %{__aclocal} | |
96 | %{__autoconf} | |
97 | %{__autoheader} | |
98 | %{__automake} | |
99 | %configure \ | |
100 | --disable-silent-rules \ | |
101 | %{__enable_disable apidocs gtk-doc} \ | |
102 | %{__enable_disable static_libs static} \ | |
c15f5f10 ŁK |
103 | --with-html-dir=%{_gtkdocdir} \ |
104 | --with-ca-certificates=/etc/certs/ca-certificates.crt | |
a0729406 MB |
105 | %{__make} |
106 | ||
107 | %install | |
108 | rm -rf $RPM_BUILD_ROOT | |
109 | ||
110 | %{__make} install \ | |
111 | DESTDIR=$RPM_BUILD_ROOT | |
112 | ||
113 | %{!?with_apidocs:%{__rm} -r $RPM_BUILD_ROOT%{_gtkdocdir}} | |
114 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la | |
115 | ||
116 | %clean | |
117 | rm -rf $RPM_BUILD_ROOT | |
118 | ||
119 | %post -p /sbin/ldconfig | |
120 | %postun -p /sbin/ldconfig | |
121 | ||
122 | %files | |
123 | %defattr(644,root,root,755) | |
023ec758 | 124 | %doc AUTHORS README |
a0729406 MB |
125 | %attr(755,root,root) %{_libdir}/librest-%{apiver}.so.*.*.* |
126 | %attr(755,root,root) %ghost %{_libdir}/librest-%{apiver}.so.0 | |
127 | %attr(755,root,root) %{_libdir}/librest-extras-%{apiver}.so.*.*.* | |
128 | %attr(755,root,root) %ghost %{_libdir}/librest-extras-%{apiver}.so.0 | |
129 | %{_libdir}/girepository-1.0/Rest-0.7.typelib | |
130 | %{_libdir}/girepository-1.0/RestExtras-0.7.typelib | |
131 | ||
132 | %files devel | |
133 | %defattr(644,root,root,755) | |
134 | %attr(755,root,root) %{_libdir}/librest-%{apiver}.so | |
135 | %attr(755,root,root) %{_libdir}/librest-extras-%{apiver}.so | |
136 | %{_datadir}/gir-1.0/Rest-%{apiver}.gir | |
137 | %{_datadir}/gir-1.0/RestExtras-%{apiver}.gir | |
138 | %{_includedir}/rest-%{apiver} | |
139 | %{_pkgconfigdir}/rest-%{apiver}.pc | |
140 | %{_pkgconfigdir}/rest-extras-%{apiver}.pc | |
141 | ||
142 | %if %{with static_libs} | |
143 | %files static | |
144 | %defattr(644,root,root,755) | |
145 | %{_libdir}/librest-%{apiver}.a | |
146 | %{_libdir}/librest-extras-%{apiver}.a | |
147 | %endif | |
148 | ||
149 | %if %{with apidocs} | |
150 | %files apidocs | |
151 | %defattr(644,root,root,755) | |
152 | %{_gtkdocdir}/rest-%{apiver} | |
153 | %endif |