summaryrefslogtreecommitdiffstats
path: root/ltp.spec
diff options
context:
space:
mode:
authorKen Dreyer <ktdreyer@ktdreyer.com>2015-01-26 13:54:32 -0700
committerKen Dreyer <ktdreyer@ktdreyer.com>2015-01-26 23:00:08 -0700
commitfefba6a3b1efd01e5c1a43447f8607367188d940 (patch)
tree7271266d09abedc8b1e184040f9a938ebae5b6a6 /ltp.spec
parent8a3f2b023408e1d8c189b4ef1956fa40daf034e0 (diff)
downloadltp-master.tar.gz
ltp-master.tar.xz
ltp-master.zip
new version and fixes from pkg review (RHBZ #1172414)HEADmaster
- Update to latest upstream version - Drop upstreamed patches, and add more for format-string bugs - Use _missing_build_ids_terminate_build macro - Include COPYING and README - Fix group-writable permissions for rpmlint
Diffstat (limited to 'ltp.spec')
-rw-r--r--ltp.spec33
1 files changed, 25 insertions, 8 deletions
diff --git a/ltp.spec b/ltp.spec
index 468b043..50d3d96 100644
--- a/ltp.spec
+++ b/ltp.spec
@@ -1,15 +1,15 @@
Name: ltp
-Version: 20140828
+Version: 20150119
Release: 1%{?dist}
Summary: Linux Test Project
Group: Development/Tools
License: GPLv2
URL: https://linux-test-project.github.io/
Source0: http://downloads.sourceforge.net/project/ltp/LTP%20Source/%{name}-%{version}/%{name}-full-%{version}.tar.xz
-# Proposed upstream at https://github.com/linux-test-project/ltp/pull/24
-Patch0: ltp-20140828-format-string.patch
-# Upstream commit ee7667ed47beeaa230ee637a6f4edaad4a0cb817 on master
-Patch1: ltp-20140828-ftest-fix-tst_brkm-usage.patch
+# These patches submitted upstream at
+# https://github.com/linux-test-project/ltp/pull/28
+Patch0: ltp-20150119-cpufreq-format-string.patch
+Patch1: ltp-20150119-diotest-format-string.patch
%description
The LTP testsuite contains a collection of tools for testing the Linux kernel
@@ -22,6 +22,9 @@ libraries by bringing test automation to the testing effort.
%patch0 -p1
%patch1 -p1
+# rm APSL 1.1 -licensed file:
+rm testcases/kernel/fs/fsx-linux/fsx-linux.c
+
%build
%configure --prefix=%{_libdir}/%{name}
make %{?_smp_mflags}
@@ -30,21 +33,35 @@ make %{?_smp_mflags}
%install
make install DESTDIR=%{buildroot}
-# find-debuginfo.sh cannot process the .obj files. Remove the execute bit.
-find %{buildroot}%{_libdir}/%{name}/testcases/bin -name \*.obj -print0 \
- | xargs -0 chmod -x
+# find-debuginfo.sh cannot process the .obj files.
+# See RHBZ #1172414 for the reasoning behind this solution.
+%undefine _missing_build_ids_terminate_build
+
+# Fix strange group-writable permissions.
+find %{buildroot}%{_libdir}/%{name} -perm -g=w -print0 | xargs -0 chmod g-w
%files
+%{!?_licensedir:%global license %%doc}
+%license COPYING
+%doc README
%doc doc/ltp-howto.lyx
%doc doc/ltp-howto.txt
%doc doc/automation-cookbook.html
%doc doc/automation-README.html
%{_libdir}/%{name}
%{_bindir}/execltp
+%{_bindir}/ffsb
%{_mandir}/man1/*
%{_mandir}/man3/*
%changelog
+* Wed Jan 07 2015 Ken Dreyer <ktdreyer@ktdreyer.com> - 20150119-1
+- Update to latest upstream version
+- Drop upstreamed patches, and add more for format-string bugs
+- Use _missing_build_ids_terminate_build macro (RHBZ #1172414)
+- Include COPYING and README (RHBZ #1172414)
+- Fix group-writable permissions for rpmlint (RHBZ #1172414)
+
* Tue Dec 09 2014 Ken Dreyer <ktdreyer@ktdreyer.com> - 20140828-1
- Initial package