[packages/libipt] - initial; based on fc spec

arekm arekm at pld-linux.org
Wed Oct 10 14:47:31 CEST 2018


commit d6f91479db5073570cf0c5f2b2f038a28263b97d
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Wed Oct 10 14:47:13 2018 +0200

    - initial; based on fc spec

 libipt.spec | 70 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 70 insertions(+)
---
diff --git a/libipt.spec b/libipt.spec
new file mode 100644
index 0000000..d0a1210
--- /dev/null
+++ b/libipt.spec
@@ -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*
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libipt.git/commitdiff/d6f91479db5073570cf0c5f2b2f038a28263b97d



More information about the pld-cvs-commit mailing list