kabi-dw/kabi-dw.spec

57 lines
1.6 KiB
RPMSpec

%global commitdate 20171201
%global commit a6bced6ef7b263380ac0309bdbd4a98c6f9055eb
%global shortcommit %(c=%{commit}; echo ${c:0:7})
Name: kabi-dw
Version: 0
Release: 0.4.%{commitdate}git%{shortcommit}%{?dist}
Summary: Detect changes in the ABI between kernel builds
License: GPLv3+
URL: https://github.com/skozina/%{name}
Source0: %{url}/archive/%{commit}/%{name}-%{shortcommit}.tar.gz
BuildRequires: elfutils-devel
BuildRequires: bison
BuildRequires: flex
BuildRequires: libasan
BuildRequires: glib2-devel
%if 0%{?rhel} > 7
BuildRequires: libasan-devel
%endif
%description
The aim of kabi-dw is to detect any changes in the ABI between the successive
builds of the Linux kernel. This is done by dumping the DWARF type information
(the .debug_info section) for the specific symbols into the text files and
later comparing the text files.
%prep
%setup -q -n %{name}-%{commit}
%build
%make_build debug
%install
install -dm 755 %{buildroot}%{_bindir}
install -m 0755 %{name} %{buildroot}%{_bindir}/
%files
%{_bindir}/%{name}
%doc README.md
%license COPYING
%changelog
* Wed Jan 24 2018 Zamir SUN <zsun@fedoraproject.org> - 0-0.4.20171201gita6bced6
- Update do upstream a6bced6ef7b263380ac0309bdbd4a98c6f9055eb
* Wed Jan 24 2018 Zamir SUN <zsun@fedoraproject.org> - 0-0.3.20171018gite6af311
- Add libasan-devel per request
* Fri Oct 27 2017 Zamir SUN <zsun@fedoraproject.org> - 0-0.2.20171018gite6af311
- Update to upstream e6af311e3182417f86742a5b1a78e488593f975a
* Mon Oct 16 2017 Zamir SUN <zsun@fedoraproject.org> - 0-0.1.20171012git2ef3f81
- Initial package kabi-dw