2009-11-19 13:51:01 +01:00
|
|
|
#
|
2010-07-05 02:18:40 +02:00
|
|
|
# spec file for package openscap (Version 0.5.12)
|
2009-11-19 13:51:01 +01:00
|
|
|
#
|
|
|
|
# Copyright (c) 2009 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/
|
|
|
|
#
|
|
|
|
|
2010-07-05 02:18:40 +02:00
|
|
|
# norootforbuild
|
2009-11-19 13:51:01 +01:00
|
|
|
|
2010-07-05 02:18:40 +02:00
|
|
|
%define soname 0
|
2009-11-19 13:51:01 +01:00
|
|
|
|
|
|
|
Name: openscap
|
2010-07-05 02:18:40 +02:00
|
|
|
Version: 0.5.12
|
|
|
|
Release: 1.0
|
|
|
|
License: GNU GPL v3 or later
|
2009-11-19 13:51:01 +01:00
|
|
|
Group: Development/Tools/Other
|
2010-07-05 02:18:40 +02:00
|
|
|
Source: http://www.open-scap.org/download/%name-%version.tar.bz2
|
2009-11-19 13:51:01 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2010-07-05 02:18:40 +02:00
|
|
|
BuildRequires: libcurl-devel
|
|
|
|
BuildRequires: libgcrypt-devel
|
|
|
|
BuildRequires: libnl-devel
|
|
|
|
BuildRequires: libxml2-devel
|
|
|
|
# Use package name cause of "have choice for perl(XML::Parser): brp-check-suse perl-XML-Parser"
|
|
|
|
BuildRequires: perl-XML-Parser
|
|
|
|
BuildRequires: pkg-config
|
|
|
|
BuildRequires: python-devel
|
|
|
|
BuildRequires: pcre-devel
|
|
|
|
BuildRequires: rpm-devel
|
|
|
|
BuildRequires: swig
|
|
|
|
Summary: A Set of Libraries for Integration with SCAP
|
2009-11-19 13:51:01 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
OpenSCAP is a set of open source libraries providing an easier path for
|
|
|
|
integration of the SCAP line of standards.
|
|
|
|
|
|
|
|
SCAP is a line of standards managed by NIST with the goal of providing
|
|
|
|
a standard language for the expression of Computer Network Defense
|
|
|
|
related information.
|
|
|
|
|
|
|
|
More information about SCAP can be found at nvd.nist.gov.
|
|
|
|
|
2010-07-05 02:18:40 +02:00
|
|
|
|
|
|
|
%package -n libopenscap%{soname}
|
|
|
|
Group: System/Libraries
|
|
|
|
Summary: OpenSCAP C Library
|
|
|
|
|
|
|
|
%description -n libopenscap%{soname}
|
|
|
|
The OpenSCAP C Library for easy integration with SCAP.
|
|
|
|
|
|
|
|
|
|
|
|
%package -n libopenscap-devel
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: libopenscap%{soname} = %{version}
|
|
|
|
Summary: Development Files for OpenSCAP
|
|
|
|
|
|
|
|
%description -n libopenscap-devel
|
|
|
|
This package contains the development files (mainly C header files) for the
|
|
|
|
OpenSCAP C library.
|
|
|
|
|
|
|
|
|
|
|
|
%package -n python-openscap
|
|
|
|
Group: Development/Libraries/Python
|
|
|
|
%py_requires
|
|
|
|
Summary: OpenSCAP Python Library
|
|
|
|
|
|
|
|
%description -n python-openscap
|
|
|
|
The OpenSCAP Python Library for easy integration with SCAP.
|
|
|
|
|
|
|
|
|
|
|
|
%package -n perl-openscap
|
|
|
|
Group: Development/Libraries/Perl
|
|
|
|
Requires: perl = %{perl_version}
|
|
|
|
Summary: OpenSCAP Perl Library
|
|
|
|
|
|
|
|
%description -n perl-openscap
|
|
|
|
The OpenSCAP Perl Library for easy integration with SCAP.
|
|
|
|
|
|
|
|
|
2009-11-19 13:51:01 +01:00
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
2009-11-19 17:00:57 +01:00
|
|
|
%configure --disable-silent-rules --disable-probes
|
2010-07-05 02:18:40 +02:00
|
|
|
%__make %{?_smp_mflags}
|
2009-11-19 13:51:01 +01:00
|
|
|
|
|
|
|
%check
|
2010-07-05 02:18:40 +02:00
|
|
|
%__make check %{?_smp_mflags}
|
2009-11-19 13:51:01 +01:00
|
|
|
|
|
|
|
%install
|
2010-07-05 02:18:40 +02:00
|
|
|
%__make install DESTDIR=%{buildroot}
|
|
|
|
find %{buildroot} -name "*.la" -delete
|
|
|
|
|
|
|
|
%post -n libopenscap%{soname} -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -n libopenscap%{soname} -p /sbin/ldconfig
|
2009-11-19 13:51:01 +01:00
|
|
|
|
|
|
|
%clean
|
2010-07-05 02:18:40 +02:00
|
|
|
%__rm -rf %{buildroot}
|
2009-11-19 13:51:01 +01:00
|
|
|
|
2009-11-19 17:22:37 +01:00
|
|
|
%files
|
2009-11-19 13:51:01 +01:00
|
|
|
%defattr(-, root, root)
|
2010-07-05 02:18:40 +02:00
|
|
|
%{_datadir}/openscap
|
|
|
|
|
|
|
|
%files -n libopenscap%{soname}
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%{_libdir}/libopenscap.so.%{soname}*
|
2009-11-19 13:51:01 +01:00
|
|
|
|
2010-07-05 02:18:40 +02:00
|
|
|
%files -n libopenscap-devel
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%{_includedir}/openscap
|
|
|
|
%{_libdir}/libopenscap.so
|
|
|
|
|
|
|
|
%files -n python-openscap
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%{python_sitearch}/_openscap_py.so
|
|
|
|
%{python_sitearch}/openscap.*
|
|
|
|
|
|
|
|
%files -n perl-openscap
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%{perl_vendorlib}/openscap.pm
|
|
|
|
%{perl_vendorarch}/_openscap_pm.so
|