From b6accc203272e055e5d1189e6a95ac3b98e353b6 Mon Sep 17 00:00:00 2001 From: Peter Vrabec Date: Tue, 31 Mar 2009 07:40:00 +0000 Subject: [PATCH] initial commit --- .cvsignore | 1 + openscap.spec | 87 +++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 89 insertions(+) create mode 100644 openscap.spec diff --git a/.cvsignore b/.cvsignore index e69de29..be035bf 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +openscap-0.1.4.tar.gz diff --git a/openscap.spec b/openscap.spec new file mode 100644 index 0000000..0e1178b --- /dev/null +++ b/openscap.spec @@ -0,0 +1,87 @@ +%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} + +Name: openscap +Version: 0.1.4 +Release: 1%{?dist} +Summary: Set of open source libraries enabling integration of the SCAP line of standards +Group: System Environment/Libraries +License: LGPLv2+ +URL: http://www.open-scap.org/ +Source0: http://open-scap.org/download/%{name}-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildRequires: swig python-devel +BuildRequires: pcre-devel libxml2-devel +Requires(post): /sbin/ldconfig +Requires(postun): /sbin/ldconfig + +%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. + +%package devel +Summary: Development files for %{name} +Group: Development/Libraries +Requires: %{name} = %{version}-%{release} + +%description devel +The %{name}-devel package contains libraries and header files for +developing applications that use %{name}. + +%package python +Summary: Python bindings for %{name} +Group: Development/Libraries +Requires: %{name} = %{version}-%{release} + +%description python +The %{name}-python package contains the bindings so that %{name} +libraries can be used by python. + +%prep +%setup -q + +%build +%configure --disable-static --disable-oval +make %{?_smp_mflags} + +%install +rm -rf $RPM_BUILD_ROOT +make install DESTDIR=$RPM_BUILD_ROOT +find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';' + +%clean +rm -rf $RPM_BUILD_ROOT + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + +%files +%defattr(-,root,root,-) +%doc AUTHORS COPYING ChangeLog NEWS README +%{_libdir}/*.so.* + +%files python +%defattr(-,root,root,-) +%{python_sitearch}/* + +%files devel +%defattr(-,root,root,-) +%doc docs/{html,latex} +%{_includedir}/* +%{_libdir}/*.so + + +%changelog +* Sun Mar 29 2009 Peter Vrabec 0.1.4-1 +- upgrade + +* Fri Mar 27 2009 Peter Vrabec 0.1.3-2 +- spec file fixes (#491892) + +* Tue Mar 24 2009 Peter Vrabec 0.1.3-1 +- upgrade + +* Thu Jan 15 2009 Tomas Heinrich 0.1.1-1 +- Initial rpm diff --git a/sources b/sources index e69de29..21fc87f 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +346a1ab5485fe751f8de2b6660ec886b openscap-0.1.4.tar.gz