openscap/openscap.spec

221 lines
6.1 KiB
RPMSpec
Raw Normal View History

2009-04-24 08:39:51 +00:00
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
2009-03-31 07:40:00 +00:00
Name: openscap
2010-09-14 11:16:36 +00:00
Version: 0.6.3
2010-09-29 21:55:59 +00:00
Release: 2%{?dist}
2009-03-31 07:40:00 +00:00
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/
2010-05-26 15:48:18 +00:00
Source0: http://www.open-scap.org/download/%{name}-%{version}.tar.gz
2009-03-31 07:40:00 +00:00
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
2010-09-07 11:54:03 +00:00
BuildRequires: swig libxml2-devel libxslt-devel
2010-01-02 20:49:54 +00:00
BuildRequires: rpm-devel
2010-04-16 15:28:12 +00:00
BuildRequires: libgcrypt-devel
BuildRequires: pcre-devel
2009-03-31 07:40:00 +00:00
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}
2009-04-30 11:57:28 +00:00
BuildRequires: python-devel
2009-03-31 07:40:00 +00:00
%description python
The %{name}-python package contains the bindings so that %{name}
libraries can be used by python.
2009-04-24 08:39:51 +00:00
%package perl
Summary: Perl bindings for %{name}
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
2009-04-30 11:57:28 +00:00
BuildRequires: perl-devel
2009-04-24 08:39:51 +00:00
%description perl
The %{name}-perl package contains the bindings so that %{name}
libraries can be used by perl.
2010-02-26 13:51:35 +00:00
%package utils
Summary: Openscap utilities
Group: Applications/System
Requires: %{name} = %{version}-%{release}
2010-03-24 15:30:11 +00:00
Requires(post): chkconfig
Requires(preun): chkconfig initscripts
BuildRequires: libcurl-devel
2010-02-26 13:51:35 +00:00
%description utils
The %{name}-utils package contains various utilities based on %{name} library.
2009-03-31 07:40:00 +00:00
%prep
%setup -q
%build
2010-07-15 09:16:14 +00:00
%configure
2009-03-31 07:40:00 +00:00
make %{?_smp_mflags}
2010-09-07 11:54:03 +00:00
# Remove shebang from bash-completion script
sed -i '/^#!.*bin/,+1 d' dist/bash_completion.d/oscap
2009-03-31 07:40:00 +00:00
%install
rm -rf $RPM_BUILD_ROOT
2010-03-24 15:30:11 +00:00
2009-03-31 07:40:00 +00:00
make install DESTDIR=$RPM_BUILD_ROOT
2010-03-24 15:30:11 +00:00
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
2010-09-07 11:54:03 +00:00
# create symlinks to default content
ln -s %{_datadir}/openscap/scap-fedora14-oval.xml %{buildroot}/%{_datadir}/openscap/scap-oval.xml
ln -s %{_datadir}/openscap/scap-fedora14-xccdf.xml %{buildroot}/%{_datadir}/openscap/scap-xccdf.xml
# bash-completion script
mkdir -p %{buildroot}%{_sysconfdir}/bash_completion.d
install -pm 644 dist/bash_completion.d/oscap $RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d/oscap
2009-03-31 07:40:00 +00:00
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
%clean
rm -rf $RPM_BUILD_ROOT
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
2010-03-24 15:30:11 +00:00
%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
2009-03-31 07:40:00 +00:00
%files
%defattr(-,root,root,-)
%doc AUTHORS COPYING ChangeLog NEWS README
%{_libdir}/*.so.*
2009-08-03 13:59:47 +00:00
%{_libexecdir}/*
2010-07-15 09:16:14 +00:00
%{_datadir}/openscap/schemas/*
2010-09-07 11:54:03 +00:00
%{_datadir}/openscap/xsl/*
2009-03-31 07:40:00 +00:00
%files python
%defattr(-,root,root,-)
%{python_sitearch}/*
2009-04-24 08:39:51 +00:00
%files perl
%defattr(-,root,root,-)
%{perl_vendorarch}/*
%{perl_vendorlib}/*
2009-03-31 07:40:00 +00:00
%files devel
%defattr(-,root,root,-)
2009-11-12 14:59:52 +00:00
%doc docs/{html,latex,examples}/
2009-03-31 07:40:00 +00:00
%{_includedir}/*
%{_libdir}/*.so
2010-02-26 13:51:35 +00:00
%files utils
%defattr(-,root,root,-)
2010-03-24 15:30:11 +00:00
%config(noreplace) %{_sysconfdir}/sysconfig/oscap-scan
%{_initrddir}/oscap-scan
2010-07-15 09:16:14 +00:00
%{_datadir}/openscap/oscap-scan.cron
2010-09-07 11:54:03 +00:00
%{_datadir}/openscap/scap-oval.xml
2010-07-15 09:16:14 +00:00
%{_datadir}/openscap/scap-fedora12-oval.xml
%{_datadir}/openscap/scap-fedora13-oval.xml
2010-09-07 11:54:03 +00:00
%{_datadir}/openscap/scap-fedora14-oval.xml
%{_datadir}/openscap/scap-xccdf.xml
%{_datadir}/openscap/scap-fedora14-xccdf.xml
2010-03-24 15:30:11 +00:00
%{_mandir}/man8/*
2010-02-26 13:51:35 +00:00
%{_bindir}/*
2010-09-07 11:54:03 +00:00
%{_sysconfdir}/bash_completion.d
2009-03-31 07:40:00 +00:00
2010-03-24 15:30:11 +00:00
2009-03-31 07:40:00 +00:00
%changelog
2010-09-29 21:55:59 +00:00
* Wed Sep 29 2010 jkeating - 0.6.3-2
- Rebuilt for gcc bug 634757
2010-09-14 11:16:36 +00:00
* Tue Sep 14 2010 Peter Vrabec <pvrabec@redhat.com> 0.6.3-1
- upgrade
2010-09-07 11:54:03 +00:00
* Fri Aug 27 2010 Peter Vrabec <pvrabec@redhat.com> 0.6.2-1
- upgrade
* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 0.6.0-2
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
2010-07-15 09:16:14 +00:00
* Thu Jul 15 2010 Peter Vrabec <pvrabec@redhat.com> 0.6.0-1
- upgrade
2010-07-01 14:30:55 +00:00
* Thu Jul 01 2010 Peter Vrabec <pvrabec@redhat.com> 0.5.12-1
- upgrade
2010-05-26 15:48:18 +00:00
* Wed May 26 2010 Peter Vrabec <pvrabec@redhat.com> 0.5.11-1
- upgrade
2010-05-07 18:59:16 +00:00
* Fri May 07 2010 Peter Vrabec <pvrabec@redhat.com> 0.5.10-1
- upgrade
2010-04-16 15:28:12 +00:00
* Fri Apr 16 2010 Peter Vrabec <pvrabec@redhat.com> 0.5.9-1
- upgrade
2010-03-24 15:30:11 +00:00
* Wed Mar 24 2010 Peter Vrabec <pvrabec@redhat.com> 0.5.8-1
- upgrade
- configure initscipt and cronjob script
2010-02-26 13:51:35 +00:00
* Fri Feb 26 2010 Peter Vrabec <pvrabec@redhat.com> 0.5.7-1
2010-01-04 16:10:41 +00:00
- upgrade
2010-02-26 13:51:35 +00:00
- new utils package
2010-01-04 16:10:41 +00:00
2010-02-26 13:51:35 +00:00
* Mon Jan 04 2010 Peter Vrabec <pvrabec@redhat.com> 0.5.6-1
2009-11-12 14:59:52 +00:00
- upgrade
* Tue Sep 29 2009 Peter Vrabec <pvrabec@redhat.com> 0.5.3-1
- upgrade
2009-08-19 15:40:55 +00:00
* Wed Aug 19 2009 Peter Vrabec <pvrabec@redhat.com> 0.5.2-1
- upgrade
2009-08-03 14:23:52 +00:00
* Mon Aug 03 2009 Peter Vrabec <pvrabec@redhat.com> 0.5.1-2
- add rpm-devel requirement
2009-08-03 13:59:47 +00:00
* Mon Aug 03 2009 Peter Vrabec <pvrabec@redhat.com> 0.5.1-1
- upgrade
2009-04-30 11:57:28 +00:00
* Thu Apr 30 2009 Peter Vrabec <pvrabec@redhat.com> 0.3.3-1
- upgrade
2009-04-24 08:39:51 +00:00
* Thu Apr 23 2009 Peter Vrabec <pvrabec@redhat.com> 0.3.2-1
- upgrade
2009-03-31 07:40:00 +00:00
* Sun Mar 29 2009 Peter Vrabec <pvrabec@redhat.com> 0.1.4-1
- upgrade
* Fri Mar 27 2009 Peter Vrabec <pvrabec@redhat.com> 0.1.3-2
- spec file fixes (#491892)
* Tue Mar 24 2009 Peter Vrabec <pvrabec@redhat.com> 0.1.3-1
- upgrade
* Thu Jan 15 2009 Tomas Heinrich <theinric@redhat.com> 0.1.1-1
- Initial rpm
2009-08-03 13:59:47 +00:00