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