Changeset 228
- Timestamp:
- 08/01/08 12:31:34
(4 months ago)
- Author:
- jtang
- Message:
Updated OVAL interpreter to build against official subversion repo; needed to run current definitions file.
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r227 |
r228 |
|
| 1 | 1 | %define name ovaldi |
|---|
| 2 | 2 | %define version 5.4.2 |
|---|
| 3 | | %define release tresys0 |
|---|
| | 3 | %define release subversion137 |
|---|
| 4 | 4 | |
|---|
| 5 | 5 | Summary: The reference interpreter for the Open Vulnerability and Assessment Language |
|---|
| … | … | |
| 7 | 7 | Version: %{version} |
|---|
| 8 | 8 | Release: %{release} |
|---|
| 9 | | Source: ovaldi-%{version}-src-tresys.tar.bz2 |
|---|
| | 9 | Source: ovaldi-%{release}.tar.bz2 |
|---|
| | 10 | Patch0: rpminfoprobe.patch |
|---|
| 10 | 11 | License: BSD |
|---|
| 11 | 12 | Group: System/Configuration/Other |
|---|
| 12 | 13 | BuildRoot: %{_tmppath}/%{name}-buildroot |
|---|
| 13 | 14 | Prefix: %{_prefix} |
|---|
| 14 | | BuildRequires: pcre-devel xerces-c-devel xalan-c-devel |
|---|
| | 15 | BuildRequires: pcre-devel xerces-c-devel xalan-c-devel dos2unix rpm-devel > 4.4 |
|---|
| 15 | 16 | BuildArchitectures: i386 |
|---|
| 16 | 17 | Requires: pcre xerces-c xalan-c oval-definitions |
|---|
| … | … | |
| 42 | 43 | /usr/sbin/ovaldi.sh |
|---|
| 43 | 44 | |
|---|
| | 45 | ---------------------------------------------------------------------- |
|---|
| | 46 | |
|---|
| | 47 | Tresys Note: This package is based upon OVAL's Subversion checkout, |
|---|
| | 48 | needed because of changes in SVN checkin 113. |
|---|
| | 49 | |
|---|
| 44 | 50 | %prep |
|---|
| 45 | 51 | [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT |
|---|
| 46 | | %setup -q -n ovaldi-%{version}-src |
|---|
| 47 | | #%patch -p0 |
|---|
| | 52 | %setup -q -n trunk |
|---|
| | 53 | %patch0 -p0 |
|---|
| 48 | 54 | |
|---|
| 49 | 55 | %build |
|---|
| 50 | 56 | cd project/linux |
|---|
| 51 | 57 | mkdir -p Release/obj |
|---|
| 52 | | make |
|---|
| | 58 | make CPPFLAGS='%{optflags} -D_RPM_4_4_COMPAT' |
|---|
| 53 | 59 | |
|---|
| 54 | 60 | %install |
|---|
| … | … | |
| 61 | 67 | /usr/bin/install -m 755 project/linux/Release/ovaldi $RPM_BUILD_ROOT/usr/sbin |
|---|
| 62 | 68 | /usr/bin/install -m 755 project/linux/ovaldi.sh $RPM_BUILD_ROOT/usr/sbin |
|---|
| | 69 | /usr/bin/dos2unix $RPM_BUILD_ROOT/usr/sbin/ovaldi.sh |
|---|
| 63 | 70 | |
|---|
| 64 | 71 | /usr/bin/gzip docs/ovaldi.1 |
|---|
| … | … | |
| 86 | 93 | |
|---|
| 87 | 94 | %changelog |
|---|
| 88 | | * Wed Jul 31 2008 J. Tang <selinux@tresys.com> 5.4.2-tresys0 |
|---|
| | 95 | * Fri Aug 01 2008 J. Tang <selinux@tresys.com> 5.4.2-subversion137 |
|---|
| 89 | 96 | * Modified build to use xalan and xerces RPMs. Converted CR/LF in ovaldi.sh. |
|---|
| 90 | 97 | |
|---|
Download in other formats:
* Generating other formats may take time.