uhttpmock-vl.spec 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  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: 3%{?_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: Development/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. rm -rf $RPM_BUILD_ROOT
  68. make DESTDIR=$RPM_BUILD_ROOT install
  69. rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
  70. %post -p /sbin/ldconfig
  71. %postun -p /sbin/ldconfig
  72. %clean
  73. rm -rf $RPM_BUILD_ROOT
  74. %files
  75. %defattr(-,root,root,-)
  76. %doc README COPYING NEWS AUTHORS
  77. %{_libdir}/libuhttpmock-%{uhm_api_version}.so.0*
  78. %{_libdir}/girepository-1.0/Uhm-%{uhm_api_version}.typelib
  79. %files devel
  80. %defattr(-,root,root,-)
  81. %{_libdir}/libuhttpmock-%{uhm_api_version}.so
  82. %{_includedir}/libuhttpmock-%{uhm_api_version}/
  83. %{_libdir}/pkgconfig/libuhttpmock-%{uhm_api_version}.pc
  84. %{_datadir}/gir-1.0/Uhm-%{uhm_api_version}.gir
  85. %files docs
  86. %defattr(-,root,root,-)
  87. %{_datadir}/gtk-doc/html/libuhttpmock-%{uhm_api_version}/
  88. %files vala
  89. %defattr(-,root,root,-)
  90. %{_datadir}/vala/vapi/libuhttpmock-%{uhm_api_version}.deps
  91. %{_datadir}/vala/vapi/libuhttpmock-%{uhm_api_version}.vapi
  92. %changelog
  93. * Fri Jan 30 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> - 0.3.1-3
  94. - added %%clean section
  95. - moved devel subpackage to Development/Libraries Group
  96. * Sat Nov 22 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> - 0.3.1-2
  97. - added Group tag to main and devel packages
  98. * Sun Oct 26 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 0.3.1-1
  99. - initial build for Vine Linux
  100. * Fri Aug 22 2014 Philip Withnall <philip@tecnocode.co.uk> - 0.3.1-1
  101. - Update to 0.3.1
  102. * Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.0-3
  103. - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
  104. * Tue Jul 22 2014 Kalev Lember <kalevlember@gmail.com> - 0.3.0-2
  105. - Rebuilt for gobject-introspection 1.41.4
  106. * Sun Jun 22 2014 Philip Withnall <philip@tecnocode.co.uk> - 0.3.0-1
  107. - Update to 0.3.0
  108. * Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.0-2
  109. - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
  110. * Tue Nov 05 2013 Philip Withnall <philip.withnall@collabora.co.uk> - 0.2.0-1
  111. - Initial spec file for version 0.2.0.