File lsb-misctest.spec of Package lsb-misctest
#
# spec file for package lsb-misctest (Version 3.3)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
%define bzrdate 20081008
Name: lsb-misctest
Version: 3.3
Release: 5
Url: http://www.linuxbase.org/
License: GPL v2 or later
Group: Development/Tools/Other
Summary: Miscelaneous tools for LSB
Source: misc-test-bzr%{bzrdate}.tar.bz2
Source1: LICENSE
Patch0: %{name}-%{version}-destdir-prefix.patch
Patch1: lsb-misctest-rpm-opt-flags.patch
Patch2: lsb-misctest-bof-security_101.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: zlib-devel
%define debug_package_requires lsb-appchk = %{version}-%{release}
%description
Miscelaneous tools for LSB.
%package -n lsb-appchk
License: GPL v2 or later
Group: Development/Tools/Other
Summary: LSB application linking compliance checker
Requires: lsb
%description -n lsb-appchk
Checks whether a binary uses only LSB-compliant symbols.
%prep
%setup -q -n misc-test
%patch0
%patch1
%patch2
cp %{S:1} .
%build
export CFLAGS="-Wall %{optflags}"
for dir in appchk; do
cd $dir
make %{?jobs:-j%jobs}
cd ..
done
%install
for dir in appchk; do
cd $dir
make install DESTDIR=$RPM_BUILD_ROOT PREFIX=/opt/lsb/ BINDIR=bin INCLUDEDIR=include LIBDIR=lib MANDIR=man
cd ..
done
chmod a-x $RPM_BUILD_ROOT/opt/lsb/man/man1/lsbappchk.1
gzip $RPM_BUILD_ROOT/opt/lsb/man/man1/lsbappchk.1
%clean
rm -rf $RPM_BUILD_ROOT
%files -n lsb-appchk
%defattr(-,root,root)
%doc LICENSE
%dir /opt/lsb
%dir /opt/lsb/bin
%dir /opt/lsb/man
%dir /opt/lsb/man/man1
/opt/lsb/bin/lsbappchk
%doc /opt/lsb/man/man1/lsbappchk.1.gz
%changelog
* Tue Nov 04 2008 ro@suse.de
- fix debug-package requires
* Fri Oct 17 2008 crrodriguez@suse.de
- fix build
- use RPM_OPT_FLAGS
- fix buffer overflow
* Wed Oct 08 2008 prusnak@suse.cz
- updated to bzr checkout from 20081008
- dropped obsoleted patches:
* md5.patch - included in update
* Tue Oct 07 2008 prusnak@suse.cz
- fix build by removing __bounded__ directives from md5.h
* Mon Sep 29 2008 prusnak@suse.cz
- replace MD5 routines by public domain code (md5.patch) [bnc#430588]
* Fri Sep 19 2008 prusnak@suse.cz
- created package
* version 3.3 (bzr checkout from 20080909)
* based on package from Jiri Dluhos