[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 |
---|
| 11 | Release: 1%{?_dist_release} |
---|
| 12 | Summary: HTTP web service mocking library |
---|
| 13 | License: LGPLv2 |
---|
| 14 | URL: http://gitorious.org/uhttpmock/ |
---|
| 15 | Source0: http://tecnocode.co.uk/downloads/%{name}-%{version}.tar.xz |
---|
| 16 | |
---|
| 17 | BuildRequires: glib2-devel >= %{glib2_version} |
---|
| 18 | BuildRequires: libsoup-devel >= %{libsoup_version} |
---|
| 19 | BuildRequires: intltool |
---|
| 20 | BuildRequires: gobject-introspection-devel |
---|
| 21 | BuildRequires: gtk-doc |
---|
| 22 | BuildRequires: vala-tools |
---|
| 23 | BuildRequires: vala-devel |
---|
| 24 | BuildRequires: gsettings-desktop-schemas |
---|
| 25 | |
---|
| 26 | Requires: glib2 >= %{glib2_version} |
---|
| 27 | Requires: libsoup >= %{libsoup_version} |
---|
| 28 | |
---|
| 29 | %description |
---|
| 30 | uhttpmock is a project for mocking web service APIs which use HTTP or HTTPS. |
---|
| 31 | It provides a library, libuhttpmock, which implements recording and |
---|
| 32 | playback of HTTP request–response traces. |
---|
| 33 | |
---|
| 34 | |
---|
| 35 | %package devel |
---|
| 36 | Summary: Development files for %{name} |
---|
| 37 | Requires: %{name} = %{version}-%{release} |
---|
| 38 | |
---|
| 39 | %description devel |
---|
| 40 | This package contains libraries, header files and documentation for |
---|
| 41 | developing applications that use %{name}. |
---|
| 42 | |
---|
| 43 | |
---|
| 44 | %package docs |
---|
| 45 | Summary: Documentation for %{name} |
---|
| 46 | Summary(ja): %{name} 用のドキュメント |
---|
| 47 | Group: Documentation |
---|
| 48 | Requires: %{name} = %{version}-%{release} |
---|
| 49 | BuildArch: noarch |
---|
| 50 | |
---|
| 51 | %description docs |
---|
| 52 | This package contains documentation for %{name}. |
---|
| 53 | |
---|
| 54 | |
---|
| 55 | %package vala |
---|
| 56 | Summary: Vala bindings for %{name} |
---|
| 57 | Summary(ja): %{name} の Vala バインディング |
---|
| 58 | Group: Development/Libraries |
---|
| 59 | Requires: %{name} = %{version}-%{release} |
---|
| 60 | Requires: vala |
---|
| 61 | |
---|
| 62 | %description vala |
---|
| 63 | Vala bindings for %{name}. |
---|
| 64 | |
---|
| 65 | |
---|
| 66 | %prep |
---|
| 67 | %setup -q |
---|
| 68 | |
---|
| 69 | %build |
---|
| 70 | %configure \ |
---|
| 71 | --enable-gtk-doc \ |
---|
| 72 | --enable-introspection \ |
---|
| 73 | --enable-vala=yes \ |
---|
| 74 | --disable-static |
---|
| 75 | make %{?_smp_mflags} |
---|
| 76 | |
---|
| 77 | %check |
---|
| 78 | make check |
---|
| 79 | |
---|
| 80 | %install |
---|
| 81 | make DESTDIR=$RPM_BUILD_ROOT install |
---|
| 82 | |
---|
| 83 | rm -f $RPM_BUILD_ROOT%{_libdir}/*.la |
---|
| 84 | |
---|
| 85 | %post -p /sbin/ldconfig |
---|
| 86 | |
---|
| 87 | %postun -p /sbin/ldconfig |
---|
| 88 | |
---|
| 89 | %files |
---|
| 90 | %defattr(-,root,root,-) |
---|
| 91 | %doc README COPYING NEWS AUTHORS |
---|
| 92 | %{_libdir}/libuhttpmock-%{uhm_api_version}.so.0* |
---|
| 93 | %{_libdir}/girepository-1.0/Uhm-%{uhm_api_version}.typelib |
---|
| 94 | |
---|
| 95 | %files devel |
---|
| 96 | %defattr(-,root,root,-) |
---|
| 97 | %{_libdir}/libuhttpmock-%{uhm_api_version}.so |
---|
| 98 | %{_includedir}/libuhttpmock-%{uhm_api_version}/ |
---|
| 99 | %{_libdir}/pkgconfig/libuhttpmock-%{uhm_api_version}.pc |
---|
| 100 | %{_datadir}/gir-1.0/Uhm-%{uhm_api_version}.gir |
---|
| 101 | |
---|
| 102 | %files docs |
---|
| 103 | %defattr(-,root,root,-) |
---|
| 104 | %{_datadir}/gtk-doc/html/libuhttpmock-%{uhm_api_version}/ |
---|
| 105 | |
---|
| 106 | %files vala |
---|
| 107 | %defattr(-,root,root,-) |
---|
| 108 | %{_datadir}/vala/vapi/libuhttpmock-%{uhm_api_version}.deps |
---|
| 109 | %{_datadir}/vala/vapi/libuhttpmock-%{uhm_api_version}.vapi |
---|
| 110 | |
---|
| 111 | %changelog |
---|
| 112 | * Sun Oct 26 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 0.3.1-1 |
---|
| 113 | - initial build for Vine Linux |
---|
| 114 | |
---|
| 115 | |
---|
| 116 | * Fri Aug 22 2014 Philip Withnall <philip@tecnocode.co.uk> - 0.3.1-1 |
---|
| 117 | - Update to 0.3.1 |
---|
| 118 | |
---|
| 119 | * Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.0-3 |
---|
| 120 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild |
---|
| 121 | |
---|
| 122 | * Tue Jul 22 2014 Kalev Lember <kalevlember@gmail.com> - 0.3.0-2 |
---|
| 123 | - Rebuilt for gobject-introspection 1.41.4 |
---|
| 124 | |
---|
| 125 | * Sun Jun 22 2014 Philip Withnall <philip@tecnocode.co.uk> - 0.3.0-1 |
---|
| 126 | - Update to 0.3.0 |
---|
| 127 | |
---|
| 128 | * Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.0-2 |
---|
| 129 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild |
---|
| 130 | |
---|
| 131 | * Tue Nov 05 2013 Philip Withnall <philip.withnall@collabora.co.uk> - 0.2.0-1 |
---|
| 132 | - Initial spec file for version 0.2.0. |
---|