From 2c85bf1d9152e92acd15c0e9eee4eb3535b1fa25 Mon Sep 17 00:00:00 2001 From: Jan Kratochvil Date: Thu, 3 Sep 2015 15:33:18 +0200 Subject: [PATCH] Initial Fedora packaging. --- .gitignore | 1 + libipt.spec | 60 +++++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 62 insertions(+) create mode 100644 libipt.spec diff --git a/.gitignore b/.gitignore index e69de29..8a3c431 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/v1.4.2.tar.gz diff --git a/libipt.spec b/libipt.spec new file mode 100644 index 0000000..2432a27 --- /dev/null +++ b/libipt.spec @@ -0,0 +1,60 @@ +Name: libipt +Version: 1.4.2 +Release: 1%{?dist} +Summary: Intel Processor Trace Decoder Library +License: BSD +URL: https://github.com/01org/processor-trace +Source0: https://github.com/01org/processor-trace/archive/v1.4.2.tar.gz +BuildRequires: cmake +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. + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%package devel +Summary: Header files and libraries for Intel Processor Trace Decoder Library +Requires: %{name}%{?_isa} = %{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 +# -DPTUNIT:BOOL=ON has no effect on ctest. +%cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo \ + -DPTUNIT:BOOL=OFF \ + -DFEATURE_THREADS:BOOL=ON \ + -DDEVBUILD:BOOL=ON \ + . +make VERBOSE=1 %{?_smp_mflags} + +%install +make install DESTDIR=%{buildroot} +%global develdocs howto_libipt.md +(cd doc;cp -p %{develdocs} ..) + +%check +ctest -V %{?_smp_mflags} + +%files +%doc README +%license LICENSE +%{_libdir}/%{name}.so.* + +%files devel +%doc %{develdocs} +%{_includedir}/* +%{_libdir}/%{name}.so + +%changelog +* Mon Aug 31 2015 Jan Kratochvil - 1.4.2-1 +- Initial Fedora packaging. diff --git a/sources b/sources index e69de29..4235d46 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +a7e35e08cf9783de3ed51d1389e37db0 v1.4.2.tar.gz