1 | %global glib2_version 2.36.0 |
---|
2 | %global libsoup_version 2.37.9 |
---|
3 | |
---|
4 | # Packagers: This is the API version of libuhttpmock, as it allows |
---|
5 | # for parallel installation of different major API versions (e.g. like |
---|
6 | # GTK+ 2 and 3). |
---|
7 | %global uhm_api_version 0.0 |
---|
8 | |
---|
9 | Name: uhttpmock |
---|
10 | Version: 0.5.0 |
---|
11 | Release: 1%{?_dist_release} |
---|
12 | Summary: HTTP web service mocking library |
---|
13 | Summary(ja): HTTP Web サービス模擬ライブラリ |
---|
14 | License: LGPLv2 |
---|
15 | Group: System Environment/Libraries |
---|
16 | URL: http://gitorious.org/uhttpmock/ |
---|
17 | |
---|
18 | Source0: http://tecnocode.co.uk/downloads/%{name}/%{name}-%{version}.tar.xz |
---|
19 | |
---|
20 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
21 | BuildRequires: glib2-devel >= %{glib2_version} |
---|
22 | BuildRequires: libsoup-devel >= %{libsoup_version} |
---|
23 | BuildRequires: intltool |
---|
24 | BuildRequires: gobject-introspection-devel |
---|
25 | BuildRequires: gtk-doc |
---|
26 | BuildRequires: vala-tools |
---|
27 | BuildRequires: vala-devel |
---|
28 | BuildRequires: gsettings-desktop-schemas |
---|
29 | |
---|
30 | Requires: glib2 >= %{glib2_version} |
---|
31 | Requires: libsoup >= %{libsoup_version} |
---|
32 | |
---|
33 | %description |
---|
34 | uhttpmock is a project for mocking web service APIs which use HTTP or HTTPS. |
---|
35 | It provides a library, libuhttpmock, which implements recording and |
---|
36 | playback of HTTP request–response traces. |
---|
37 | |
---|
38 | |
---|
39 | %package devel |
---|
40 | Summary: Development files for %{name} |
---|
41 | Summary(ja): %{name} の開発用ファイル |
---|
42 | Group: Development/Libraries |
---|
43 | Requires: %{name} = %{version}-%{release} |
---|
44 | |
---|
45 | %description devel |
---|
46 | This package contains libraries, header files and documentation for |
---|
47 | developing applications that use %{name}. |
---|
48 | |
---|
49 | |
---|
50 | %package docs |
---|
51 | Summary: Documentation for %{name} |
---|
52 | Summary(ja): %{name} 用のドキュメント |
---|
53 | Group: Documentation |
---|
54 | Requires: %{name} = %{version}-%{release} |
---|
55 | BuildArch: noarch |
---|
56 | |
---|
57 | %description docs |
---|
58 | This package contains documentation for %{name}. |
---|
59 | |
---|
60 | |
---|
61 | %package vala |
---|
62 | Summary: Vala bindings for %{name} |
---|
63 | Summary(ja): %{name} の Vala バインディング |
---|
64 | Group: Development/Libraries |
---|
65 | Requires: %{name} = %{version}-%{release} |
---|
66 | Requires: vala |
---|
67 | |
---|
68 | %description vala |
---|
69 | Vala bindings for %{name}. |
---|
70 | |
---|
71 | |
---|
72 | %prep |
---|
73 | %setup -q |
---|
74 | |
---|
75 | %build |
---|
76 | %configure \ |
---|
77 | --enable-gtk-doc \ |
---|
78 | --enable-introspection \ |
---|
79 | --enable-vala=yes \ |
---|
80 | --disable-static |
---|
81 | make %{?_smp_mflags} |
---|
82 | |
---|
83 | %check |
---|
84 | make check |
---|
85 | |
---|
86 | %install |
---|
87 | rm -rf $RPM_BUILD_ROOT |
---|
88 | make DESTDIR=$RPM_BUILD_ROOT install |
---|
89 | |
---|
90 | rm -f $RPM_BUILD_ROOT%{_libdir}/*.la |
---|
91 | |
---|
92 | %post -p /sbin/ldconfig |
---|
93 | |
---|
94 | %postun -p /sbin/ldconfig |
---|
95 | |
---|
96 | %clean |
---|
97 | rm -rf $RPM_BUILD_ROOT |
---|
98 | |
---|
99 | %files |
---|
100 | %defattr(-,root,root,-) |
---|
101 | %doc README COPYING NEWS AUTHORS |
---|
102 | %{_libdir}/libuhttpmock-%{uhm_api_version}.so.0* |
---|
103 | %{_libdir}/girepository-1.0/Uhm-%{uhm_api_version}.typelib |
---|
104 | |
---|
105 | %files devel |
---|
106 | %defattr(-,root,root,-) |
---|
107 | %{_libdir}/libuhttpmock-%{uhm_api_version}.so |
---|
108 | %{_includedir}/libuhttpmock-%{uhm_api_version}/ |
---|
109 | %{_libdir}/pkgconfig/libuhttpmock-%{uhm_api_version}.pc |
---|
110 | %{_datadir}/gir-1.0/Uhm-%{uhm_api_version}.gir |
---|
111 | |
---|
112 | %files docs |
---|
113 | %defattr(-,root,root,-) |
---|
114 | %{_datadir}/gtk-doc/html/libuhttpmock-%{uhm_api_version}/ |
---|
115 | |
---|
116 | %files vala |
---|
117 | %defattr(-,root,root,-) |
---|
118 | %{_datadir}/vala/vapi/libuhttpmock-%{uhm_api_version}.deps |
---|
119 | %{_datadir}/vala/vapi/libuhttpmock-%{uhm_api_version}.vapi |
---|
120 | |
---|
121 | %changelog |
---|
122 | * Sat Oct 31 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 0.5.0-1 |
---|
123 | - update to 0.5.0 |
---|
124 | |
---|
125 | * Fri Jan 30 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> - 0.3.1-3 |
---|
126 | - added %%clean section |
---|
127 | - moved devel subpackage to Development/Libraries Group |
---|
128 | |
---|
129 | * Sat Nov 22 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> - 0.3.1-2 |
---|
130 | - added Group tag to main and devel packages |
---|
131 | |
---|
132 | * Sun Oct 26 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 0.3.1-1 |
---|
133 | - initial build for Vine Linux |
---|
134 | |
---|
135 | * Fri Aug 22 2014 Philip Withnall <philip@tecnocode.co.uk> - 0.3.1-1 |
---|
136 | - Update to 0.3.1 |
---|
137 | |
---|
138 | * Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.0-3 |
---|
139 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild |
---|
140 | |
---|
141 | * Tue Jul 22 2014 Kalev Lember <kalevlember@gmail.com> - 0.3.0-2 |
---|
142 | - Rebuilt for gobject-introspection 1.41.4 |
---|
143 | |
---|
144 | * Sun Jun 22 2014 Philip Withnall <philip@tecnocode.co.uk> - 0.3.0-1 |
---|
145 | - Update to 0.3.0 |
---|
146 | |
---|
147 | * Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.0-2 |
---|
148 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild |
---|
149 | |
---|
150 | * Tue Nov 05 2013 Philip Withnall <philip.withnall@collabora.co.uk> - 0.2.0-1 |
---|
151 | - Initial spec file for version 0.2.0. |
---|