[9073] | 1 | %global glib2_version 2.31.0 |
---|
| 2 | %global libsoup_version 2.37.91 |
---|
| 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.3.1 |
---|
[9309] | 11 | Release: 3%{?_dist_release} |
---|
[9073] | 12 | Summary: HTTP web service mocking library |
---|
[9117] | 13 | Summary(ja): HTTP Web サービス模擬ライブラリ |
---|
[9073] | 14 | License: LGPLv2 |
---|
[9117] | 15 | Group: System Environment/Libraries |
---|
[9073] | 16 | URL: http://gitorious.org/uhttpmock/ |
---|
[9117] | 17 | |
---|
[9073] | 18 | Source0: http://tecnocode.co.uk/downloads/%{name}-%{version}.tar.xz |
---|
| 19 | |
---|
[9117] | 20 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
[9073] | 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 | |
---|
[9117] | 39 | %package devel |
---|
[9073] | 40 | Summary: Development files for %{name} |
---|
[9117] | 41 | Summary(ja): %{name} の開発用ファイル |
---|
[9309] | 42 | Group: Development/Libraries |
---|
[9073] | 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 |
---|
[9309] | 87 | rm -rf $RPM_BUILD_ROOT |
---|
[9073] | 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 | |
---|
[9309] | 96 | %clean |
---|
| 97 | rm -rf $RPM_BUILD_ROOT |
---|
| 98 | |
---|
[9073] | 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 |
---|
[9309] | 122 | * Fri Jan 30 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> - 0.3.1-3 |
---|
| 123 | - added %%clean section |
---|
| 124 | - moved devel subpackage to Development/Libraries Group |
---|
| 125 | |
---|
[9117] | 126 | * Sat Nov 22 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> - 0.3.1-2 |
---|
| 127 | - added Group tag to main and devel packages |
---|
| 128 | |
---|
[9073] | 129 | * Sun Oct 26 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 0.3.1-1 |
---|
| 130 | - initial build for Vine Linux |
---|
| 131 | |
---|
| 132 | * Fri Aug 22 2014 Philip Withnall <philip@tecnocode.co.uk> - 0.3.1-1 |
---|
| 133 | - Update to 0.3.1 |
---|
| 134 | |
---|
| 135 | * Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.0-3 |
---|
| 136 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild |
---|
| 137 | |
---|
| 138 | * Tue Jul 22 2014 Kalev Lember <kalevlember@gmail.com> - 0.3.0-2 |
---|
| 139 | - Rebuilt for gobject-introspection 1.41.4 |
---|
| 140 | |
---|
| 141 | * Sun Jun 22 2014 Philip Withnall <philip@tecnocode.co.uk> - 0.3.0-1 |
---|
| 142 | - Update to 0.3.0 |
---|
| 143 | |
---|
| 144 | * Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.0-2 |
---|
| 145 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild |
---|
| 146 | |
---|
| 147 | * Tue Nov 05 2013 Philip Withnall <philip.withnall@collabora.co.uk> - 0.2.0-1 |
---|
| 148 | - Initial spec file for version 0.2.0. |
---|