]> git.pld-linux.org Git - packages/libipt.git/commitdiff
- initial; based on fc spec
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Wed, 10 Oct 2018 12:47:13 +0000 (14:47 +0200)
committerArkadiusz Miśkiewicz <arekm@maven.pl>
Wed, 10 Oct 2018 12:47:13 +0000 (14:47 +0200)
libipt.spec [new file with mode: 0644]

diff --git a/libipt.spec b/libipt.spec
new file mode 100644 (file)
index 0000000..d0a1210
--- /dev/null
@@ -0,0 +1,70 @@
+Summary:       Intel Processor Trace Decoder Library
+Name:          libipt
+Version:       2.0
+Release:       1
+License:       BSD
+Group:         Libraries
+URL:           https://github.com/01org/processor-trace
+Source0:       https://github.com/01org/processor-trace/archive/v%{version}.tar.gz
+# Source0-md5: d7cc87d42479d41870056a99591096cd
+# c++ is required only for -DPTUNIT test "ptunit-cpp".
+# pandoc is for -DMAN.
+BuildRequires: cmake
+BuildRequires: libstdc++-devel
+BuildRequires: pandoc
+ExclusiveArch: %{ix86} x86_64
+
+%description
+The Intel Processor Trace (Intel PT) Decoder Library is Intel's
+reference implementation for decoding Intel PT. It can be used as a
+standalone library or it can be partially or fully integrated into
+your tool.
+
+%package devel
+Summary:       Header files and libraries for Intel Processor Trace Decoder Library
+Requires:      %{name} = %{version}-%{release}
+ExclusiveArch: %{ix86} x86_64
+
+%description devel
+The %{name}-devel package contains the header files and libraries
+needed to develop programs that use the Intel Processor Trace (Intel
+PT) Decoder Library.
+
+%prep
+%setup -q -n processor-trace-%{version}
+
+%build
+install -d build
+cd build
+%cmake \
+       -DPTUNIT:BOOL=ON \
+       -DMAN:BOOL=ON \
+       -DDEVBUILD:BOOL=ON \
+       ..
+
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} -C build install \
+  DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc README
+%attr(755,root,root) %ghost %{_libdir}/%{name}.so.2
+%attr(755,root,root) %{_libdir}/%{name}.so.*.*
+
+%files devel
+%defattr(644,root,root,755)
+%doc doc/{getting_started,howto_libipt}.md
+%{_includedir}/intel-pt.h
+%attr(755,root,root) %{_libdir}/%{name}.so
+%{_mandir}/man3/pt_*.3*
This page took 0.083277 seconds and 4 git commands to generate.