upgrade
This commit is contained in:
parent
88433ef580
commit
c8d42aac4b
@ -1 +1 @@
|
|||||||
openscap-0.5.7.tar.gz
|
openscap-0.5.8.tar.gz
|
||||||
|
21
openscap-0.5.8-config.patch
Normal file
21
openscap-0.5.8-config.patch
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
diff -up openscap-0.5.8/dist/fedora/oscap-scan.cron.config openscap-0.5.8/dist/fedora/oscap-scan.cron
|
||||||
|
--- openscap-0.5.8/dist/fedora/oscap-scan.cron.config 2010-03-24 15:57:03.646108236 +0100
|
||||||
|
+++ openscap-0.5.8/dist/fedora/oscap-scan.cron 2010-03-24 15:57:26.986117969 +0100
|
||||||
|
@@ -5,7 +5,7 @@
|
||||||
|
# sent to root mail. Please configure oscap-scan options before you use it!
|
||||||
|
##########
|
||||||
|
|
||||||
|
-#OPTIONS="/usr/share/openscap/scap-fedora12-oval.xml"
|
||||||
|
+OPTIONS="/usr/share/openscap/scap-fedora13-oval.xml"
|
||||||
|
PROG="/usr/bin/oscap-scan"
|
||||||
|
if [ x"$OPTIONS" == "x" ]
|
||||||
|
then
|
||||||
|
diff -up openscap-0.5.8/dist/fedora/oscap-scan.sys.config openscap-0.5.8/dist/fedora/oscap-scan.sys
|
||||||
|
--- openscap-0.5.8/dist/fedora/oscap-scan.sys.config 2010-03-24 15:57:44.733108831 +0100
|
||||||
|
+++ openscap-0.5.8/dist/fedora/oscap-scan.sys 2010-03-24 15:57:56.122129104 +0100
|
||||||
|
@@ -1,4 +1,4 @@
|
||||||
|
|
||||||
|
#oscap-scan command line options:
|
||||||
|
-#OPTIONS="-q --result-file /var/log/oscap-scan.xml.log /usr/share/openscap/scap-fedora12-oval.xml"
|
||||||
|
+OPTIONS="-q --result-file /var/log/oscap-scan.xml.log /usr/share/openscap/scap-fedora13-oval.xml"
|
||||||
|
|
@ -2,13 +2,14 @@
|
|||||||
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
|
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
|
||||||
|
|
||||||
Name: openscap
|
Name: openscap
|
||||||
Version: 0.5.7
|
Version: 0.5.8
|
||||||
Release: 1%{?dist}
|
Release: 1%{?dist}
|
||||||
Summary: Set of open source libraries enabling integration of the SCAP line of standards
|
Summary: Set of open source libraries enabling integration of the SCAP line of standards
|
||||||
Group: System Environment/Libraries
|
Group: System Environment/Libraries
|
||||||
License: LGPLv2+
|
License: LGPLv2+
|
||||||
URL: http://www.open-scap.org/
|
URL: http://www.open-scap.org/
|
||||||
Source0: http://fedorahosted.org/releases/o/p/openscap/%{name}-%{version}.tar.gz
|
Source0: http://fedorahosted.org/releases/o/p/openscap/%{name}-%{version}.tar.gz
|
||||||
|
Patch1: openscap-0.5.8-config.patch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
BuildRequires: swig pcre-devel libxml2-devel
|
BuildRequires: swig pcre-devel libxml2-devel
|
||||||
BuildRequires: rpm-devel
|
BuildRequires: rpm-devel
|
||||||
@ -55,13 +56,16 @@ libraries can be used by perl.
|
|||||||
Summary: Openscap utilities
|
Summary: Openscap utilities
|
||||||
Group: Applications/System
|
Group: Applications/System
|
||||||
Requires: %{name} = %{version}-%{release}
|
Requires: %{name} = %{version}-%{release}
|
||||||
BuildRequires: libcurl-devel
|
Requires(post): chkconfig
|
||||||
|
Requires(preun): chkconfig initscripts
|
||||||
|
BuildRequires: libcurl-devel
|
||||||
|
|
||||||
%description utils
|
%description utils
|
||||||
The %{name}-utils package contains various utilities based on %{name} library.
|
The %{name}-utils package contains various utilities based on %{name} library.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
|
%patch1 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%configure --disable-debug
|
%configure --disable-debug
|
||||||
@ -69,7 +73,14 @@ make %{?_smp_mflags}
|
|||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
|
||||||
make install DESTDIR=$RPM_BUILD_ROOT
|
make install DESTDIR=$RPM_BUILD_ROOT
|
||||||
|
|
||||||
|
install -d -m 755 $RPM_BUILD_ROOT%{_initrddir}
|
||||||
|
install -d -m 755 $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig
|
||||||
|
install -p -m 755 dist/fedora/oscap-scan.init $RPM_BUILD_ROOT%{_initrddir}/oscap-scan
|
||||||
|
install -p -m 644 dist/fedora/oscap-scan.sys $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/oscap-scan
|
||||||
|
|
||||||
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
|
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
@ -79,6 +90,17 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
|
|
||||||
%postun -p /sbin/ldconfig
|
%postun -p /sbin/ldconfig
|
||||||
|
|
||||||
|
|
||||||
|
%post utils
|
||||||
|
/sbin/chkconfig --add oscap-scan
|
||||||
|
|
||||||
|
%preun utils
|
||||||
|
if [ $1 -eq 0 ]; then
|
||||||
|
/sbin/service oscap-scan stop > /dev/null 2>&1
|
||||||
|
/sbin/chkconfig --del oscap-scan
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%doc AUTHORS COPYING ChangeLog NEWS README
|
%doc AUTHORS COPYING ChangeLog NEWS README
|
||||||
@ -102,9 +124,18 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
|
|
||||||
%files utils
|
%files utils
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
|
%config(noreplace) %{_sysconfdir}/sysconfig/oscap-scan
|
||||||
|
%{_initrddir}/oscap-scan
|
||||||
|
%{_datadir}/openscap/*
|
||||||
|
%{_mandir}/man8/*
|
||||||
%{_bindir}/*
|
%{_bindir}/*
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Mar 24 2010 Peter Vrabec <pvrabec@redhat.com> 0.5.8-1
|
||||||
|
- upgrade
|
||||||
|
- configure initscipt and cronjob script
|
||||||
|
|
||||||
* Fri Feb 26 2010 Peter Vrabec <pvrabec@redhat.com> 0.5.7-1
|
* Fri Feb 26 2010 Peter Vrabec <pvrabec@redhat.com> 0.5.7-1
|
||||||
- upgrade
|
- upgrade
|
||||||
- new utils package
|
- new utils package
|
||||||
|
Loading…
Reference in New Issue
Block a user