satyr.spec.in 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. %{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
  2. # rhel6's python-sphinx cannot build manual pages
  3. %if 0%{?rhel} && 0%{?rhel} <= 6
  4. %define enable_python_manpage 0
  5. %else
  6. %define enable_python_manpage 1
  7. %endif
  8. Name: satyr
  9. Version: @PACKAGE_VERSION@
  10. Release: 1%{?dist}
  11. Summary: Tools to create anonymous, machine-friendly problem reports
  12. Group: System Environment/Libraries
  13. License: GPLv2+
  14. URL: https://github.com/abrt/satyr
  15. Source0: https://fedorahosted.org/released/abrt/satyr-%{version}.tar.xz
  16. BuildRequires: python2-devel
  17. BuildRequires: elfutils-devel, elfutils-libelf-devel, binutils-devel
  18. BuildRequires: rpm-devel
  19. %if %{?enable_python_manpage}
  20. BuildRequires: python-sphinx
  21. %endif
  22. %description
  23. Satyr is a library that can be used to create and process microreports.
  24. Microreports consist of structured data suitable to be analyzed in a fully
  25. automated manner, though they do not necessarily contain sufficient information
  26. to fix the underlying problem. The reports are designed not to contain any
  27. potentially sensitive data to eliminate the need for review before submission.
  28. Included is a tool that can create microreports and perform some basic
  29. operations on them.
  30. %package devel
  31. Summary: Development libraries for %{name}
  32. Group: Development/Libraries
  33. Requires: %{name}%{?_isa} = %{version}-%{release}
  34. %description devel
  35. Development libraries and headers for %{name}.
  36. %package python
  37. Summary: Python bindings for %{name}
  38. Group: Development/Libraries
  39. Requires: %{name}%{?_isa} = %{version}-%{release}
  40. %description python
  41. Python bindings for %{name}.
  42. %prep
  43. %setup -q
  44. %build
  45. %configure \
  46. %if ! %{?enable_python_manpage}
  47. --disable-python-manpage \
  48. %endif
  49. --disable-static
  50. make %{?_smp_mflags}
  51. %install
  52. make install DESTDIR=%{buildroot}
  53. # Remove all libtool archives (*.la) from modules directory.
  54. find %{buildroot} -name "*.la" | xargs rm --
  55. %check
  56. make check
  57. %post -p /sbin/ldconfig
  58. %postun -p /sbin/ldconfig
  59. %files
  60. %doc README NEWS COPYING
  61. %{_bindir}/satyr
  62. %{_mandir}/man1/%{name}.1*
  63. %{_libdir}/lib*.so.*
  64. %files devel
  65. %{_includedir}/*
  66. %{_libdir}/lib*.so
  67. %{_libdir}/pkgconfig/*
  68. %files python
  69. %dir %{python_sitearch}/%{name}
  70. %{python_sitearch}/%{name}/*
  71. %if %{?enable_python_manpage}
  72. %{_mandir}/man3/satyr-python.3*
  73. %endif
  74. %changelog
  75. * Wed Sep 11 2013 Jakub Filak <jfilak@redhat.com> 0.9-1
  76. - New upstream version
  77. - Enrich koops uReport data with koops text and kernel version.
  78. - Improve koops modules handling.
  79. * Wed Aug 28 2013 Richard Marko<rmarko@redhat.com> 0.8-1
  80. - New upstream version
  81. - Added support for json de/serialization of reports and stacktraces.
  82. - Library version number increased, as the interface changed since the last release
  83. * Mon Aug 26 2013 Martin Milata <mmilata@redhat.com> 0.7-1
  84. - New upstream version
  85. - Fix couple of crashes (#997076, #994747)
  86. * Mon Jul 29 2013 Martin Milata <mmilata@redhat.com> 0.6-1
  87. - New upstream version
  88. - Do not export internal function symbols.
  89. * Thu Jul 25 2013 Martin Milata <mmilata@redhat.com> 0.5-2
  90. - Remove libunwind dependency altogether, always use GDB for unwinding.
  91. * Thu Jul 25 2013 Jakub Filak <jfilak@redhat.com> 0.5-1
  92. - Added function that creates core stacktrace from GDB output. Several bugfixes.
  93. * Tue Jul 09 2013 Martin Milata <mmilata@redhat.com> 0.4-2
  94. - Fix failing tests (failure manifests only on s390x)
  95. * Mon Jul 08 2013 Martin Milata <mmilata@redhat.com> 0.4-1
  96. - New upstream version
  97. - Added features needed by ABRT
  98. - Support for uReport2
  99. - Major C and Python API changes
  100. - Patch for python-2.6 compatibility
  101. * Tue Apr 02 2013 Dan Horák <dan[at]danny.cz> 0.3-2
  102. - libunwind exists only on selected arches
  103. * Mon Mar 25 2013 Martin Milata <mmilata@redhat.com> 0.3-1
  104. - New upstream version
  105. - Bug fixes
  106. - Build fixes for older systems
  107. - Do not require libunwind on rhel
  108. * Mon Mar 18 2013 Martin Milata <mmilata@redhat.com> 0.2-1
  109. - Documentation and spec cleanup
  110. - Build fixes (build against RPM)
  111. * Mon Aug 30 2010 Karel Klic <kklic@redhat.com> 0.1-1
  112. - Upstream package spec file