# # spec file for package openscap (Version 0.5.12) # # 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/ # # norootforbuild %define soname 0 Name: openscap Version: 0.7.2 Release: 1.0 License: GNU GPL v3 or later Group: Development/Tools/Other Source: http://www.open-scap.org/download/%name-%version.tar.bz2 Patch0: assume.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: libcurl-devel libgcrypt-devel libnl-devel 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 python-devel pcre-devel rpm-devel swig libxslt-devel Summary: A Set of Libraries for Integration with SCAP %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. %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. %prep %setup -q %patch0 -p1 %build %configure --disable-silent-rules %__make %{?_smp_mflags} %check %__make check %{?_smp_mflags} %install %__make install DESTDIR=%{buildroot} find %{buildroot} -name "*.la" -delete %post -n libopenscap%{soname} -p /sbin/ldconfig %postun -n libopenscap%{soname} -p /sbin/ldconfig %clean %__rm -rf %{buildroot} %files %defattr(-, root, root) %{_datadir}/openscap %files -n libopenscap%{soname} %defattr(-, root, root) %{_libdir}/libopenscap.so.%{soname}* %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