-
Notifications
You must be signed in to change notification settings - Fork 0
/
otf2.spec
166 lines (124 loc) · 4.51 KB
/
otf2.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
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
%global shortname otf2
%global ver 2.0
%{?altcc_init}
# Needed for el7
%{!?_pkgdocdir: %global _pkgdocdir %{_docdir}/%{shortname}-%{version}}
Name: %{shortname}%{?altcc_pkg_suffix}
Version: %{ver}
Release: 1%{?dist}
Summary: Open Trace Format 2 library
License: BSD
URL: http://www.vi-hps.org/projects/score-p/
Source0: http://www.vi-hps.org/upload/packages/%{shortname}/%{shortname}-%{version}.tar.gz
Source1: %{shortname}.module.in
# Remove jinja2
Patch0: otf2-jinja2.patch
BuildRequires: python2-devel
BuildRequires: libtool
Requires: python-jinja2
%?altcc_reqmodules
%?altcc_provide
%description
The Open Trace Format 2 (OTF2) is a highly scalable, memory efficient
event trace data format plus support library.
%package devel
Summary: Development files for %{shortname}
Group: Development/Libraries
Requires: %{name}%{?_isa} = %{version}-%{release}
%{?altcc:%altcc_provide devel}
%description devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{shortname}.
%package doc
Summary: Development files for %{shortname}
BuildArch: noarch
%{?altcc:%altcc_provide doc}
%description doc
The %{name}-doc package contains documentation files for %{shortname}.
%prep
%setup -q -n %{shortname}-%{version}
%patch0 -p1 -b .jinja2
# Bundled modified jinja2 in vendor/
rm -r vendor/python/site-packages
# Remove ldflags
sed -i -s '/deps.GetLDFlags/d' src/tools/otf2_config/otf2_config.cpp
%build
%configure --disable-static --enable-shared --disable-silent-rules \
--docdir=%{_pkgdocdir} --enable-backend-test-runs --with-platform=linux \
%{?altcc:--with-nocross-compiler-suite=%{altcc_cc_name}}
make %{?_smp_mflags}
%install
%make_install
find %{buildroot} -name '*.la' -delete
cp -p AUTHORS ChangeLog README %{buildroot}%{_pkgdocdir}/
%{?altcc:%altcc_license}
%{?altcc:%altcc_writemodule %SOURCE1}
%check
make check
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%{?altcc:%altcc_files -dlm %{_bindir} %{_libdir}}
%license COPYING
%{_bindir}/%{shortname}-estimator
%{_bindir}/%{shortname}-marker
%{_bindir}/%{shortname}-print
%{_bindir}/%{shortname}-snapshots
%{_bindir}/%{shortname}-template
%{_libdir}/lib%{shortname}.so.7*
%dir %{_datadir}/%{shortname}/
%{_datadir}/%{shortname}/%{shortname}.summary
%{_datadir}/%{shortname}/python
%{_pkgdocdir}/AUTHORS
%{_pkgdocdir}/ChangeLog
%{_pkgdocdir}/OPEN_ISSUES
%{_pkgdocdir}/README
%exclude %{_pkgdocdir}/html
%exclude %{_pkgdocdir}/pdf
%exclude %{_pkgdocdir}/tags
%files devel
%{?altcc:%altcc_files %{_includedir}}
%{_bindir}/%{shortname}-config
%{_includedir}/%{shortname}/
%{_libdir}/lib%{shortname}.so
%files doc
%{?altcc:%altcc_files -dl}
%license COPYING
%dir %{_pkgdocdir}
%{_pkgdocdir}/examples/
%{_pkgdocdir}/html/
%{_pkgdocdir}/pdf/
%{_pkgdocdir}/tags/
%changelog
* Thu Apr 14 2016 Orion Poplawski <[email protected]> - 2.0-1
- Update to 2.0
* Thu Feb 04 2016 Fedora Release Engineering <[email protected]> - 1.5.1-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
* Thu Jun 18 2015 Fedora Release Engineering <[email protected]> - 1.5.1-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
* Mon Apr 13 2015 Orion Poplawski <[email protected]> - 1.5.1-2
- BR autoconf268 on el6 and use it
- Do not apply autoconf patch and only autoreconf top level on el6
- Fixup doc install
* Wed Feb 11 2015 Orion Poplawski <[email protected]> - 1.5.1-1
- Update to 1.5.1
* Sun Aug 17 2014 Fedora Release Engineering <[email protected]> - 1.4-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
* Wed Jul 16 2014 Orion Poplawski <[email protected]> - 1.4-2
- Remove ldflags output from otf2-config
* Tue Jul 15 2014 Orion Poplawski <[email protected]> - 1.4-1
- Update to 1.4
- Add patch to allow running autoreconf to remove rpaths
* Sat Jun 07 2014 Fedora Release Engineering <[email protected]> - 1.2.1-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
* Thu Oct 24 2013 Orion Poplawski <[email protected]> - 1.2.1-4
- Move otf2-config back to -devel
* Mon Oct 21 2013 Orion Poplawski <[email protected]> - 1.2.1-3
- Add BR python2-devel
- Add Requires jinja2
- Exclude docs from main package
- Rebase jinja2 patch
* Wed Oct 2 2013 Orion Poplawski <[email protected]> - 1.2.1-2
- Fix rpath with configure change
* Wed Sep 25 2013 Orion Poplawski <[email protected]> - 1.2.1-1
- Initial package