-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathopentestpoint.spec.in
116 lines (95 loc) · 3.23 KB
/
opentestpoint.spec.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
%define source_date_epoch_from_changelog 0
Summary: OpenTestPoint
Name: opentestpoint
Version: @VERSION@
Release: 1%{?dist}
License: BSD
Group: Applications/System
URL: https://github.com/adjacentlink/opentestpoint
Source0: %{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
Requires: libxml2 protobuf libuuid
BuildRequires: libxml2-devel protobuf-devel libuuid-devel sqlite-devel
Requires: python3
BuildRequires: python3-devel
Requires: zeromq
BuildRequires: zeromq-devel
Vendor: Adjacent Link LLC
%description
OpenTestPoint
%package devel
Summary: OpenTestPoint Headers
Group: Development/Libraries
Requires: protobuf-devel libuuid-devel opentestpoint
Requires: python3-devel
Requires: zeromq-devel
%description devel
OpenTestPoint Headers
%package -n python3-opentestpoint
Requires: python3-zmq python3-setuptools python3-protobuf python3-six
Summary: OpenTestPoint Python modules
Group: Development/Libraries
%description -n python3-opentestpoint
OpenTestPoint Python modules
%prep
%setup -q
%build
%configure
make
%install
make DESTDIR=${RPM_BUILD_ROOT} install
find ${RPM_BUILD_ROOT} -name '*.a' -exec rm '{}' \;
find ${RPM_BUILD_ROOT} -name '*.la' -exec rm '{}' \;
mv %{buildroot}/%{_bindir}/otestpoint-discover %{buildroot}/%{_bindir}/otestpoint-discover-%{python3_version}
mv %{buildroot}/%{_bindir}/otestpoint-dump %{buildroot}/%{_bindir}/otestpoint-dump-%{python3_version}
mv %{buildroot}/%{_bindir}/otestpoint-filter %{buildroot}/%{_bindir}/otestpoint-filter-%{python3_version}
mv %{buildroot}/%{_bindir}/otestpoint-print %{buildroot}/%{_bindir}/otestpoint-print-%{python3_version}
ln -s otestpoint-discover-%{python3_version} %{buildroot}/%{_bindir}/otestpoint-discover-3
ln -s otestpoint-dump-%{python3_version} %{buildroot}/%{_bindir}/otestpoint-dump-3
ln -s otestpoint-filter-%{python3_version} %{buildroot}/%{_bindir}/otestpoint-filter-3
ln -s otestpoint-print-%{python3_version} %{buildroot}/%{_bindir}/otestpoint-print-3
ln -s otestpoint-discover-3 %{buildroot}/%{_bindir}/otestpoint-discover
ln -s otestpoint-dump-3 %{buildroot}/%{_bindir}/otestpoint-dump
ln -s otestpoint-filter-3 %{buildroot}/%{_bindir}/otestpoint-filter
ln -s otestpoint-print-3 %{buildroot}/%{_bindir}/otestpoint-print
%py3_shebang_fix %{buildroot}%{_bindir}/*-%{python3_version}
%clean
rm -rf $RPM_BUILD_ROOT
%post
/sbin/ldconfig
%postun
/sbin/ldconfig
%files
%defattr(-,root,root,-)
%{_libdir}/*.so
%{_bindir}/otestpoint-broker
%{_bindir}/otestpoint-probe
%{_bindir}/otestpoint-recorder
%{_bindir}/otestpointd
%doc AUTHORS
%doc COPYING
%doc NEWS
%doc README
%doc INSTALL
%files devel
%defattr(-, root, root)
%{_includedir}/*
%{_libdir}/pkgconfig
%files -n python3-opentestpoint
%defattr(-,root,root)
%{python3_sitearch}/otestpoint*
%{python3_sitearch}/opentestpoint*
%{python3_sitelib}/otestpoint*
%{python3_sitelib}/opentestpoint*
%{_bindir}/otestpoint-discover
%{_bindir}/otestpoint-dump
%{_bindir}/otestpoint-filter
%{_bindir}/otestpoint-print
%{_bindir}/otestpoint-discover-%{python3_version}
%{_bindir}/otestpoint-dump-%{python3_version}
%{_bindir}/otestpoint-filter-%{python3_version}
%{_bindir}/otestpoint-print-%{python3_version}
%{_bindir}/otestpoint-discover-3
%{_bindir}/otestpoint-dump-3
%{_bindir}/otestpoint-filter-3
%{_bindir}/otestpoint-print-3