Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:llunak:abi:kde
libkdcraw-abi-last
abi.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File abi.spec of Package libkdcraw-abi-last
# # 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 libkdcraw %define pkgdevelname %{pkgname}-devel #%define unstablelibs %{nil} Name: %{pkgname}-abi-last Summary: ABI for %{pkgname} License: Same as %{pkgname} Group: Development/Tools/Other BuildRequires: %{pkgdevelname} abi-compliance-checker libkde4-devel #Url: BuildRoot: %{_tmppath}/%{name}-%{version}-build Version: %(rpm -q --qf "%{VERSION}" %{pkgdevelname}) 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 %build for part in stable %{?unstablelibs:%{unstablelibs}}; do mkdir $part pushd $part echo '<version>' > descriptor.xml echo %{version} >> descriptor.xml echo '</version>' >> descriptor.xml echo '<headers>' >> descriptor.xml # add grep -v header here to skip unwanted headers (broken, for example) for header in `rpm -ql %{pkgdevelname} \ | grep /include/ \ `; do if test -f "$header"; then echo $header >> descriptor.xml fi done echo '</headers>' >> descriptor.xml echo '<libs>' >> descriptor.xml if test "$part" = "stable"; then ( rpm -ql %{pkgdevelname} | grep /%{_lib} | grep \.so >libs.txt ) || true for other in %{?unstablelibs:%{unstablelibs}}; do ( cat libs.txt | grep -v lib"$other"\.so >libs2.txt ) || true mv libs2.txt libs.txt done if test -z "`cat libs.txt`"; then popd rm -r $part continue fi else ( rpm -ql %{pkgdevelname} | grep /%{_lib} | grep \.so | grep lib"$part"\.so >libs.txt ) || true fi for lib in `cat libs.txt`; do readlink -e "$lib" >> descriptor.xml || linkfail=1 if test -n "$linkfail"; then echo "Dangling link $lib (dependency missing?)" exit 1 fi done echo '</libs>' >> descriptor.xml abi-compliance-checker.pl -l %{pkgname} -dump descriptor.xml || fail=1 if test -n "$fail"; then cat logs/%{pkgname}/%{version}/log exit 1 fi popd done %install DESTDIR=%{?buildroot:%{buildroot}} mkdir -p $DESTDIR/%{_libdir}/abi-compliance-checker/%{pkgname} for part in stable %{?unstablelibs:%{unstablelibs}}; do test -d "$part" || continue if test "$part" = "stable"; then dir=stable else dir=unstable-${part} fi mkdir -p $DESTDIR/%{_libdir}/abi-compliance-checker/%{pkgname}/%{version}/${dir} cp -p ${part}/descriptor.xml $DESTDIR/%{_libdir}/abi-compliance-checker/%{pkgname}/%{version}/${dir}/descriptor.xml cp -p ${part}/abi_dumps/%{pkgname}/%{pkgname}_%{version}.abi.tar.gz $DESTDIR/%{_libdir}/abi-compliance-checker/%{pkgname}/%{version}/${dir}/%{pkgname}.abi.tar.gz gzip --best -c ${part}/logs/%{pkgname}/%{version}/log > $DESTDIR/%{_libdir}/abi-compliance-checker/%{pkgname}/%{version}/${dir}/log.txt.gz done %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