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