uhttpmock-vl.spec 4.0 KB

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