-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathlttng-ust.spec
137 lines (103 loc) · 4.31 KB
/
lttng-ust.spec
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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
# fcami - 2.4.1-1 was imported as-is from EPEL
Name: lttng-ust
Version: 2.4.1
Release: 1%{?dist}.1
License: LGPLv2 and GPLv2 and MIT
Group: Development/Libraries
Summary: LTTng Userspace Tracer library
URL: http://lttng.org/ust/
Source0: http://lttng.org/files/lttng-ust/%{name}-%{version}.tar.bz2
Patch0: lttng-ust-2.4.1-aarch64.patch
BuildRequires: libuuid-devel texinfo systemtap-sdt-devel libtool autoconf automake
BuildRequires: userspace-rcu-devel >= 0.7.2
ExcludeArch: ppc64le
%description
This library may be used by user space applications to generate
tracepoints using LTTng.
%package -n %{name}-devel
Summary: LTTng Userspace Tracer library headers and development files
Group: Development/Libraries
Requires: %{name}%{?_isa} = %{version}-%{release}
Requires: userspace-rcu-devel systemtap-sdt-devel
%description -n %{name}-devel
This library provides support for developing programs using
LTTng userspace tracing
%prep
%setup -q
%patch0 -p1 -b .aarch64
%build
%ifarch s390 s390x
# workaround rhbz#837572 (ICE in gcc)
%global optflags %(echo %{optflags} | sed 's/-O2/-O1/')
%endif
# regen ./configure after patching configure.ac for aarch64
autoreconf -vif
#Reinitialize libtool with the fedora version to remove Rpath
libtoolize -cvfi
%configure --docdir=%{_docdir}/%{name} --disable-static --with-sdt
# --with-java-jdk
# Java support was disabled in lttng-ust's stable-2.0 branch upstream in
# http://git.lttng.org/?p=lttng-ust.git;a=commit;h=655a0d112540df3001f9823cd3b331b8254eb2aa
# We can revisit enabling this when the next major version is released.
make %{?_smp_mflags} V=1
%install
make DESTDIR=%{buildroot} install
rm -vf %{buildroot}%{_libdir}/*.la
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%{_libdir}/*.so.*
%{_mandir}/man3/lttng-ust.3.gz
%{_mandir}/man3/lttng-ust-cyg-profile.3.gz
%{_mandir}/man3/lttng-ust-dl.3.gz
%dir %{_docdir}/%{name}
%{_docdir}/%{name}/ChangeLog
%{_docdir}/%{name}/README
%{_docdir}/%{name}/java-util-logging.txt
%files -n %{name}-devel
%{_bindir}/lttng-gen-tp
%{_mandir}/man1/lttng-gen-tp.1.gz
%{_prefix}/include/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/lttng-ust*.pc
%dir %{_docdir}/%{name}/examples
%{_docdir}/%{name}/examples/*
%changelog
* Thu May 12 2016 François Cami <[email protected]> - 2.4.1-1.1
- Fix aarch64 FTBFS
* Tue May 20 2014 Yannick Brosseau <[email protected]> - 2.4.1-1
- New upstream bugfix release
* Sat Mar 1 2014 Suchakra Sharma <[email protected]> - 2.4.0-1
- New upstream release
- Add new files (man and doc)
* Sat Feb 22 2014 Yannick Brosseau <[email protected]> - 2.3.0-2
- Rebuilt for URCU Soname change
* Fri Sep 20 2013 Yannick Brosseau <[email protected]> - 2.3.0-1
- New upstream release (include snapshop feature)
* Sat Aug 03 2013 Fedora Release Engineering <[email protected]> - 2.2.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
* Tue Jul 16 2013 Yannick Brosseau <[email protected]> - 2.2.1-1
- New upstream release
- Bump URCU dependency
* Thu May 23 2013 Dan Horák <dan[at]danny.cz> - 2.1.2-2
- add build workaround for s390(x)
* Fri May 17 2013 Yannick Brosseau <[email protected]> - 2.1.2-1
- New upstream bugfix release
- Remove patches applied upstream
* Wed Feb 27 2013 Yannick Brosseau <[email protected]> - 2.1.1-2
- Remove dependency of probes on urcu-bp
* Tue Feb 26 2013 Yannick Brosseau <[email protected]> - 2.1.1-1
- New upstream release
* Thu Feb 14 2013 Fedora Release Engineering <[email protected]> - 2.0.5-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
* Tue Oct 23 2012 Yannick Brosseau <[email protected]> - 2.0.5-1
- New upstream release
* Thu Jul 19 2012 Fedora Release Engineering <[email protected]> - 2.0.4-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
* Fri Jun 22 2012 Yannick Brosseau <[email protected]> - 2.0.4-2
- Add dependency on systemtap-sdt-devel for devel package
* Tue Jun 19 2012 Yannick Brosseau <[email protected]> - 2.0.4-1
- New upstream release
- Updates from review comments
* Thu Jun 14 2012 Yannick Brosseau <[email protected]> - 2.0.3-1
- New package, inspired by the one from OpenSuse