]>
Commit | Line | Data |
---|---|---|
d0757691 JB |
1 | # |
2 | # Conditional build: | |
94a815c2 | 3 | %bcond_without apidocs # Doxygen API documentation |
d0757691 JB |
4 | %bcond_without python3 # CPython 3.x binding |
5 | # | |
ad566da7 JB |
6 | Summary: Tools to create anonymous, machine-friendly problem reports |
7 | Summary(pl.UTF-8): Analizator śladów wywołań tworzonych przez GDB | |
8 | Name: satyr | |
61fbaeee | 9 | Version: 0.26 |
e4b24794 | 10 | Release: 2 |
ad566da7 JB |
11 | License: GPL v2+ |
12 | Group: Development/Tools | |
94a815c2 | 13 | #Source0Download: https://github.com/abrt/satyr/releases |
e2956482 | 14 | Source0: https://github.com/abrt/satyr/archive/%{version}/%{name}-%{version}.tar.gz |
61fbaeee | 15 | # Source0-md5: 8f1f99315b0bac193712f8ee3bc3a832 |
6ba563f1 JB |
16 | Patch0: %{name}-rpm5.patch |
17 | Patch1: %{name}-rpm45.patch | |
f1915e4a | 18 | URL: https://github.com/abrt/satyr |
ad566da7 JB |
19 | BuildRequires: autoconf >= 2.50 |
20 | BuildRequires: automake | |
3c887c29 | 21 | BuildRequires: binutils-devel |
94a815c2 | 22 | %{?with_apidocs:BuildRequires: doxygen} |
ad566da7 | 23 | BuildRequires: elfutils-devel |
60422b1d | 24 | BuildRequires: libstdc++-devel |
f1915e4a | 25 | BuildRequires: libtool |
ad566da7 | 26 | BuildRequires: pkgconfig |
ad566da7 | 27 | BuildRequires: python-devel >= 1:2.6 |
d0757691 | 28 | %{?with_python3:BuildRequires: python3-devel >= 1:3.2} |
f1915e4a | 29 | BuildRequires: rpm-devel >= 4.5 |
ad566da7 JB |
30 | BuildRequires: rpm-pythonprov |
31 | BuildRequires: rpmbuild(macros) >= 1.219 | |
02dde5cb | 32 | BuildRequires: sphinx-pdg |
ad566da7 JB |
33 | BuildRequires: tar >= 1:1.22 |
34 | BuildRequires: xz | |
35 | Requires: %{name}-libs = %{version}-%{release} | |
4caab5eb | 36 | Obsoletes: btparser |
ad566da7 JB |
37 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
38 | ||
d0757691 JB |
39 | # satyr-python(3) man page exists in both python packages |
40 | %define _duplicate_files_terminate_build 0 | |
41 | ||
ad566da7 JB |
42 | %description |
43 | Satyr is a library that can be used to create and process | |
44 | microreports. Microreports consist of structured data suitable to be | |
45 | analyzed in a fully automated manner, though they do not necessarily | |
46 | contain sufficient information to fix the underlying problem. The | |
47 | reports are designed not to contain any potentially sensitive data to | |
48 | eliminate the need for review before submission. Included is a tool | |
49 | that can create microreports and perform some basic operations on | |
50 | them. | |
51 | ||
52 | %description -l pl.UTF-8 | |
53 | Satyr to biblioteka do tworzenia i przetwarzania mikroraportów. | |
54 | Mikroraporty składają się ze strukturalnych danych nadających się do | |
55 | analizy w sposób całkowicie automatyczny, ale niekoniecznie | |
56 | zawierających pełne informacje do naprawienia problemu. Raporty są | |
57 | zaprojektowane tak, żeby nie zawierały żadnych potencjalnie wrażliwych | |
58 | danych, aby nie było potrzeby przeglądania ich przed wysłaniem. Do | |
59 | pakietu jest dołączone narzędzie potrafiące tworzyć mikroraporty i | |
60 | wykonywać na nich podstawowe operacje. | |
61 | ||
62 | %package libs | |
63 | Summary: Satyr library - automatic problem management with anonymous reports | |
64 | Summary(pl.UTF-8): Biblioteka Satyr do automatycznego zarządzania problemami z anonimowymi zgłoszeniami | |
65 | Group: Libraries | |
4caab5eb | 66 | Obsoletes: btparser-libs |
ad566da7 JB |
67 | |
68 | %description libs | |
69 | Satyr library - automatic problem management with anonymous reports. | |
70 | ||
71 | %description libs -l pl.UTF-8 | |
72 | Biblioteka Satyr do automatycznego zarządzania problemami z | |
73 | anonimowymi złoszeniami. | |
74 | ||
75 | %package devel | |
76 | Summary: Header files for Satyr library | |
77 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Satyr | |
78 | Group: Development/Libraries | |
79 | Requires: %{name}-libs = %{version}-%{release} | |
4caab5eb | 80 | Obsoletes: btparser-devel |
ad566da7 JB |
81 | |
82 | %description devel | |
83 | Header files for Satyr library. | |
84 | ||
85 | %description devel -l pl.UTF-8 | |
86 | Pliki nagłówkowe biblioteki Satyr. | |
87 | ||
94a815c2 JB |
88 | %package apidocs |
89 | Summary: API documentation for Satyr library | |
90 | Summary(pl.UTF-8): Dokumentacja API biblioteki Satyr | |
91 | Group: Documentation | |
92 | ||
93 | %description apidocs | |
94 | API documentation for Satyr library. | |
95 | ||
96 | %description apidocs -l pl.UTF-8 | |
97 | Dokumentacja API biblioteki Satyr. | |
98 | ||
ad566da7 | 99 | %package -n python-satyr |
d0757691 JB |
100 | Summary: Python 2 bindings for Satyr library |
101 | Summary(pl.UTF-8): Wiązania Pythona 2 do biblioteki Satyr | |
ad566da7 JB |
102 | Group: Libraries/Python |
103 | Requires: %{name}-libs = %{version}-%{release} | |
104 | Requires: python-modules | |
4caab5eb | 105 | Obsoletes: python-btparser |
ad566da7 JB |
106 | |
107 | %description -n python-satyr | |
d0757691 | 108 | Python 2 bindings for Satyr library. |
ad566da7 JB |
109 | |
110 | %description -n python-satyr -l pl.UTF-8 | |
d0757691 JB |
111 | Wiązania Pythona 2 do biblioteki Satyr. |
112 | ||
113 | %package -n python3-satyr | |
114 | Summary: Python 3 bindings for Satyr library | |
115 | Summary(pl.UTF-8): Wiązania Pythona 3 do biblioteki Satyr | |
116 | Group: Libraries/Python | |
117 | Requires: %{name}-libs = %{version}-%{release} | |
118 | Requires: python3-modules | |
119 | ||
120 | %description -n python3-satyr | |
121 | Python 3 bindings for Satyr library. | |
122 | ||
123 | %description -n python3-satyr -l pl.UTF-8 | |
124 | Wiązania Pythona 3 do biblioteki Satyr. | |
ad566da7 JB |
125 | |
126 | %prep | |
127 | %setup -q | |
ad566da7 | 128 | %if "%{_rpmversion}" >= "5.0" |
6ba563f1 | 129 | %patch0 -p1 |
ad566da7 | 130 | %else |
6ba563f1 | 131 | %patch1 -p1 |
ad566da7 | 132 | %endif |
60422b1d JB |
133 | |
134 | printf '%s' '%{version}' > satyr-version | |
ad566da7 JB |
135 | |
136 | %build | |
137 | %{__libtoolize} | |
138 | %{__aclocal} | |
139 | %{__autoconf} | |
140 | %{__autoheader} | |
141 | %{__automake} | |
b6a6e0d4 | 142 | %configure \ |
94a815c2 | 143 | %{?with_apidocs:--enable-doxygen-docs} \ |
d0757691 JB |
144 | --disable-silent-rules \ |
145 | %{!?with_python3:--without-python3} | |
ad566da7 JB |
146 | |
147 | %{__make} | |
148 | ||
149 | %install | |
150 | rm -rf $RPM_BUILD_ROOT | |
151 | ||
152 | %{__make} install \ | |
153 | DESTDIR=$RPM_BUILD_ROOT | |
154 | ||
d0757691 JB |
155 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la \ |
156 | $RPM_BUILD_ROOT%{py_sitedir}/satyr/*.la | |
157 | ||
ad566da7 JB |
158 | |
159 | %py_postclean | |
160 | ||
d0757691 JB |
161 | %if %{with python3} |
162 | %py3_comp $RPM_BUILD_ROOT%{py3_sitedir} | |
163 | %py3_ocomp $RPM_BUILD_ROOT%{py3_sitedir} | |
164 | %{__rm} $RPM_BUILD_ROOT%{py3_sitedir}/satyr/*.la | |
165 | %endif | |
166 | ||
ad566da7 JB |
167 | %clean |
168 | rm -rf $RPM_BUILD_ROOT | |
169 | ||
170 | %post libs -p /sbin/ldconfig | |
171 | %postun libs -p /sbin/ldconfig | |
172 | ||
173 | %files | |
174 | %defattr(644,root,root,755) | |
175 | %doc NEWS README | |
176 | %attr(755,root,root) %{_bindir}/satyr | |
177 | %{_mandir}/man1/satyr.1* | |
178 | ||
179 | %files libs | |
180 | %defattr(644,root,root,755) | |
181 | %attr(755,root,root) %{_libdir}/libsatyr.so.*.* | |
e90cc048 | 182 | %attr(755,root,root) %ghost %{_libdir}/libsatyr.so.3 |
ad566da7 JB |
183 | |
184 | %files devel | |
185 | %defattr(644,root,root,755) | |
186 | %attr(755,root,root) %{_libdir}/libsatyr.so | |
187 | %{_includedir}/satyr | |
188 | %{_pkgconfigdir}/satyr.pc | |
189 | ||
94a815c2 JB |
190 | %if %{with apidocs} |
191 | %files apidocs | |
192 | %defattr(644,root,root,755) | |
193 | %doc apidoc/html/{search,*.css,*.html,*.js,*.png} | |
194 | %endif | |
195 | ||
ad566da7 JB |
196 | %files -n python-satyr |
197 | %defattr(644,root,root,755) | |
198 | %dir %{py_sitedir}/satyr | |
199 | %{py_sitedir}/satyr/__init__.py[co] | |
200 | %attr(755,root,root) %{py_sitedir}/satyr/_satyr.so | |
8f9a4bf0 | 201 | %{_mandir}/man3/satyr-python.3* |
d0757691 JB |
202 | |
203 | %if %{with python3} | |
204 | %files -n python3-satyr | |
205 | %defattr(644,root,root,755) | |
206 | %dir %{py3_sitedir}/satyr | |
207 | %{py3_sitedir}/satyr/__init__.py | |
208 | %attr(755,root,root) %{py3_sitedir}/satyr/_satyr3.so | |
209 | %{py3_sitedir}/satyr/__pycache__ | |
210 | %{_mandir}/man3/satyr-python.3* | |
211 | %endif |