1 | %define package_version 0.7.12 |
---|
2 | %define package_release 2%{?_dist_release} |
---|
3 | |
---|
4 | Name: rest |
---|
5 | Version: %{package_version} |
---|
6 | Release: %{package_release} |
---|
7 | Summary: RESTful web api query library |
---|
8 | |
---|
9 | Group: System Environment/Libraries |
---|
10 | License: LGPLv2+ |
---|
11 | URL: http://git.gnome.org/browse/librest |
---|
12 | Source0: http://ftp.gnome.org/pub/GNOME/sources/%{name}/0.7/%{name}-%{version}.tar.xz |
---|
13 | |
---|
14 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
15 | |
---|
16 | BuildRequires: glib2-devel |
---|
17 | BuildRequires: gobject-introspection-devel |
---|
18 | BuildRequires: libsoup-devel |
---|
19 | BuildRequires: openssl-devel |
---|
20 | BuildRequires: gtk-doc |
---|
21 | |
---|
22 | Vendor: Project Vine |
---|
23 | Distribution: Vine Linux |
---|
24 | Packager: Takemikaduchi |
---|
25 | |
---|
26 | %description |
---|
27 | This library has been designed to make it easier to access web services that |
---|
28 | claim to be "RESTful". A reasonable definition of what this means can be found |
---|
29 | on Wikipedia [1]. However a reasonable description is that a RESTful service |
---|
30 | should have urls that represent remote objects which methods can then be |
---|
31 | called on. |
---|
32 | |
---|
33 | |
---|
34 | %package devel |
---|
35 | Summary: Development tools for rest |
---|
36 | Summary(ja): rest の開発環境 |
---|
37 | Group: Development/Libraries |
---|
38 | Requires: %{name} = %{version}-%{release} |
---|
39 | Requires: pkgconfig |
---|
40 | Requires: glib2-devel |
---|
41 | Requires: libsoup-devel |
---|
42 | Requires: libxml2-devel |
---|
43 | |
---|
44 | %description devel |
---|
45 | Header files and libraries for building a extension library for the |
---|
46 | rest. |
---|
47 | |
---|
48 | |
---|
49 | %package doc |
---|
50 | Summary: Documentation for rest |
---|
51 | Summary(ja): rest 用のドキュメント |
---|
52 | Group: Documentation |
---|
53 | Requires: %{name} = %{version}-%{release} |
---|
54 | BuildArch: noarch |
---|
55 | |
---|
56 | |
---|
57 | %description doc |
---|
58 | This package contains documentation for rest. |
---|
59 | |
---|
60 | |
---|
61 | %prep |
---|
62 | %setup -q |
---|
63 | |
---|
64 | %build |
---|
65 | %configure \ |
---|
66 | --enable-gtk-doc \ |
---|
67 | --disable-static \ |
---|
68 | --enable-introspection=yes \ |
---|
69 | --with-ca-certificates=%{_datadir}/ssl/certs |
---|
70 | |
---|
71 | make %{?_smp_mflags} |
---|
72 | |
---|
73 | %install |
---|
74 | rm -rf $RPM_BUILD_ROOT |
---|
75 | |
---|
76 | make DESTDIR=$RPM_BUILD_ROOT install |
---|
77 | |
---|
78 | rm -f $RPM_BUILD_ROOT%{_libdir}/*.la |
---|
79 | |
---|
80 | %clean |
---|
81 | rm -rf $RPM_BUILD_ROOT |
---|
82 | |
---|
83 | %post -p /sbin/ldconfig |
---|
84 | |
---|
85 | %postun -p /sbin/ldconfig |
---|
86 | |
---|
87 | %files |
---|
88 | %defattr(-,root,root,-) |
---|
89 | %doc ChangeLog AUTHORS COPYING NEWS README |
---|
90 | %{_libdir}/*.so.* |
---|
91 | %{_libdir}/girepository-1.0/*.typelib |
---|
92 | |
---|
93 | %files devel |
---|
94 | %defattr(-, root, root) |
---|
95 | %{_includedir}/%{name}-0.7 |
---|
96 | %{_libdir}/*.so |
---|
97 | %{_libdir}/pkgconfig/*.pc |
---|
98 | %{_datadir}/gir-1.0/*.gir |
---|
99 | |
---|
100 | %files doc |
---|
101 | %defattr(-, root, root) |
---|
102 | %{_datadir}/gtk-doc/html/%{name}-0.7 |
---|
103 | |
---|
104 | |
---|
105 | %changelog |
---|
106 | * Sun Apr 08 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.7.12-2 |
---|
107 | - fix URL |
---|
108 | |
---|
109 | * Wed Nov 16 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.7.12-1 |
---|
110 | - new upstream release |
---|
111 | - add BuildRequires: openssl |
---|
112 | |
---|
113 | * Thu Nov 03 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.7.11-1 |
---|
114 | - new upstream release |
---|
115 | |
---|
116 | * Mon Aug 15 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.7.10-1 |
---|
117 | - initial build for Vine Linux |
---|
118 | |
---|