Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:llunak:abi
broken-abi-check
check.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File check.spec of Package broken-abi-check
# # Copyright (c) 2010 Lubos Lunak <l.lunak@suse.cz> # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # norootforbuild %define pkgname broken Name: %{pkgname}-abi-check BuildRequires: abi-compliance-checker %{pkgname}-abi-last %{pkgname}-abi-current License: Same as %{pkgname} #Url: Group: Development/Tools/Other BuildRoot: %{_tmppath}/%{name}-%{version}-build Summary: ABI check for %{pkgname} %define oldversion %(rpm -q --qf "%{VERSION}" %{pkgname}-abi-last) %define newversion %(rpm -q --qf "%{VERSION}" %{pkgname}-abi-current) Version: %{newversion} Release: 1 %description This package contains ABI information for %{pkgname} that can be used with abi-compliance checker. When a new version of the package is released, the ABI of that package can be checked for backwards compatibility using this information. %prep %setup -c -n %{name}-%{version} -T -q echo %{newversion} %build abi-compliance-checker.pl -l %{pkgname} -d1 `rpm -ql %{pkgname}-abi-last | grep '\.abi\.'` \ -d2 `rpm -ql %{pkgname}-abi-current | grep '\.abi\.'` || fail=1 echo === HTML REPORT BEGIN === >report.html cat compat_reports/%{pkgname}/%{oldversion}_to_%{newversion}/abi_compat_report.html >>report.html echo >>report.html echo === HTML REPORT END === >>report.html cat report.html if test -n "$fail"; then exit 1 fi %install DESTDIR=%{?buildroot:%{buildroot}} mkdir -p $DESTDIR/%{_libdir}/abi-compliance-checker/%{pkgname} cp -p compat_reports/%{pkgname}/*/abi_compat_report.html $DESTDIR/%{_libdir}/abi-compliance-checker/%{pkgname}/%{oldversion}-%{newversion}.xml %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) %{_libdir}/abi-compliance-checker/%{pkgname} %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor