]>
Commit | Line | Data |
---|---|---|
d0757691 JB |
1 | # |
2 | # Conditional build: | |
94a815c2 | 3 | %bcond_without apidocs # Doxygen API documentation |
c6c18720 | 4 | %bcond_with rpm5 # build with rpm5 |
d0757691 | 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 | |
aa919253 | 9 | Version: 0.39 |
e79156c2 | 10 | Release: 3 |
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 |
aa919253 | 15 | # Source0-md5: 6acc5098620fba5da8a3f8b13b6331e1 |
6ba563f1 | 16 | Patch0: %{name}-rpm5.patch |
f1915e4a | 17 | URL: https://github.com/abrt/satyr |
ad566da7 JB |
18 | BuildRequires: autoconf >= 2.50 |
19 | BuildRequires: automake | |
3c887c29 | 20 | BuildRequires: binutils-devel |
94a815c2 | 21 | %{?with_apidocs:BuildRequires: doxygen} |
ad566da7 | 22 | BuildRequires: elfutils-devel |
aa919253 | 23 | BuildRequires: glib2-devel >= 2.0 |
0094667e | 24 | BuildRequires: json-c-devel |
6d370432 | 25 | BuildRequires: libgomp-devel |
60422b1d | 26 | BuildRequires: libstdc++-devel |
f1915e4a | 27 | BuildRequires: libtool |
0094667e | 28 | BuildRequires: nettle-devel |
ad566da7 | 29 | BuildRequires: pkgconfig |
0094667e | 30 | BuildRequires: python3-devel >= 1:3.6 |
f1915e4a | 31 | BuildRequires: rpm-devel >= 4.5 |
ad566da7 | 32 | BuildRequires: rpm-pythonprov |
aa919253 | 33 | BuildRequires: rpmbuild(macros) >= 1.507 |
02dde5cb | 34 | BuildRequires: sphinx-pdg |
ad566da7 JB |
35 | BuildRequires: tar >= 1:1.22 |
36 | BuildRequires: xz | |
37 | Requires: %{name}-libs = %{version}-%{release} | |
aa919253 | 38 | Obsoletes: btparser < 0.27 |
ad566da7 JB |
39 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
40 | ||
41 | %description | |
42 | Satyr is a library that can be used to create and process | |
43 | microreports. Microreports consist of structured data suitable to be | |
44 | analyzed in a fully automated manner, though they do not necessarily | |
45 | contain sufficient information to fix the underlying problem. The | |
46 | reports are designed not to contain any potentially sensitive data to | |
47 | eliminate the need for review before submission. Included is a tool | |
48 | that can create microreports and perform some basic operations on | |
49 | them. | |
50 | ||
51 | %description -l pl.UTF-8 | |
52 | Satyr to biblioteka do tworzenia i przetwarzania mikroraportów. | |
53 | Mikroraporty składają się ze strukturalnych danych nadających się do | |
54 | analizy w sposób całkowicie automatyczny, ale niekoniecznie | |
55 | zawierających pełne informacje do naprawienia problemu. Raporty są | |
56 | zaprojektowane tak, żeby nie zawierały żadnych potencjalnie wrażliwych | |
57 | danych, aby nie było potrzeby przeglądania ich przed wysłaniem. Do | |
58 | pakietu jest dołączone narzędzie potrafiące tworzyć mikroraporty i | |
59 | wykonywać na nich podstawowe operacje. | |
60 | ||
61 | %package libs | |
62 | Summary: Satyr library - automatic problem management with anonymous reports | |
63 | Summary(pl.UTF-8): Biblioteka Satyr do automatycznego zarządzania problemami z anonimowymi zgłoszeniami | |
64 | Group: Libraries | |
0094667e | 65 | Requires: json-c-devel |
aa919253 | 66 | Obsoletes: btparser-libs < 0.27 |
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} | |
aa919253 JB |
80 | Requires: json-c-devel |
81 | Obsoletes: btparser-devel < 0.27 | |
ad566da7 JB |
82 | |
83 | %description devel | |
84 | Header files for Satyr library. | |
85 | ||
86 | %description devel -l pl.UTF-8 | |
87 | Pliki nagłówkowe biblioteki Satyr. | |
88 | ||
94a815c2 JB |
89 | %package apidocs |
90 | Summary: API documentation for Satyr library | |
91 | Summary(pl.UTF-8): Dokumentacja API biblioteki Satyr | |
92 | Group: Documentation | |
93 | ||
94 | %description apidocs | |
95 | API documentation for Satyr library. | |
96 | ||
97 | %description apidocs -l pl.UTF-8 | |
98 | Dokumentacja API biblioteki Satyr. | |
99 | ||
d0757691 JB |
100 | %package -n python3-satyr |
101 | Summary: Python 3 bindings for Satyr library | |
102 | Summary(pl.UTF-8): Wiązania Pythona 3 do biblioteki Satyr | |
103 | Group: Libraries/Python | |
104 | Requires: %{name}-libs = %{version}-%{release} | |
0094667e | 105 | Requires: python3-modules >= 1:3.6 |
aa919253 JB |
106 | Obsoletes: python-btparser < 0.27 |
107 | Obsoletes: python-satyr < 0.30 | |
d0757691 JB |
108 | |
109 | %description -n python3-satyr | |
110 | Python 3 bindings for Satyr library. | |
111 | ||
112 | %description -n python3-satyr -l pl.UTF-8 | |
113 | Wiązania Pythona 3 do biblioteki Satyr. | |
ad566da7 JB |
114 | |
115 | %prep | |
116 | %setup -q | |
c6c18720 | 117 | %{?with_rpm5:%patch0 -p1} |
60422b1d JB |
118 | |
119 | printf '%s' '%{version}' > satyr-version | |
ad566da7 JB |
120 | |
121 | %build | |
122 | %{__libtoolize} | |
123 | %{__aclocal} | |
124 | %{__autoconf} | |
125 | %{__autoheader} | |
126 | %{__automake} | |
b6a6e0d4 | 127 | %configure \ |
94a815c2 | 128 | %{?with_apidocs:--enable-doxygen-docs} \ |
0094667e | 129 | --disable-silent-rules |
ad566da7 JB |
130 | |
131 | %{__make} | |
132 | ||
133 | %install | |
134 | rm -rf $RPM_BUILD_ROOT | |
135 | ||
136 | %{__make} install \ | |
137 | DESTDIR=$RPM_BUILD_ROOT | |
138 | ||
d0757691 | 139 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la \ |
0094667e | 140 | $RPM_BUILD_ROOT%{py3_sitedir}/satyr/*.la |
ad566da7 | 141 | |
d0757691 JB |
142 | %py3_comp $RPM_BUILD_ROOT%{py3_sitedir} |
143 | %py3_ocomp $RPM_BUILD_ROOT%{py3_sitedir} | |
d0757691 | 144 | |
ad566da7 JB |
145 | %clean |
146 | rm -rf $RPM_BUILD_ROOT | |
147 | ||
148 | %post libs -p /sbin/ldconfig | |
149 | %postun libs -p /sbin/ldconfig | |
150 | ||
151 | %files | |
152 | %defattr(644,root,root,755) | |
aa919253 | 153 | %doc NEWS README.md |
ad566da7 JB |
154 | %attr(755,root,root) %{_bindir}/satyr |
155 | %{_mandir}/man1/satyr.1* | |
156 | ||
157 | %files libs | |
158 | %defattr(644,root,root,755) | |
159 | %attr(755,root,root) %{_libdir}/libsatyr.so.*.* | |
0094667e | 160 | %attr(755,root,root) %ghost %{_libdir}/libsatyr.so.4 |
ad566da7 JB |
161 | |
162 | %files devel | |
163 | %defattr(644,root,root,755) | |
164 | %attr(755,root,root) %{_libdir}/libsatyr.so | |
165 | %{_includedir}/satyr | |
166 | %{_pkgconfigdir}/satyr.pc | |
167 | ||
94a815c2 JB |
168 | %if %{with apidocs} |
169 | %files apidocs | |
170 | %defattr(644,root,root,755) | |
171 | %doc apidoc/html/{search,*.css,*.html,*.js,*.png} | |
172 | %endif | |
173 | ||
d0757691 JB |
174 | %files -n python3-satyr |
175 | %defattr(644,root,root,755) | |
176 | %dir %{py3_sitedir}/satyr | |
177 | %{py3_sitedir}/satyr/__init__.py | |
178 | %attr(755,root,root) %{py3_sitedir}/satyr/_satyr3.so | |
179 | %{py3_sitedir}/satyr/__pycache__ |