openscap/openscap.spec

368 lines
10 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
2012-09-25 15:36:05 +00:00
Version: 0.9.0
2012-08-07 11:55:02 +00:00
Release: 1%{?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/
2012-03-30 19:27:33 +00:00
Source0: http://fedorahosted.org/releases/o/p/openscap/%{name}-%{version}.tar.gz
2009-03-31 07:40:00 +00:00
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
2011-07-26 12:15:47 +00:00
BuildRequires: swig libxml2-devel libxslt-devel perl-XML-Parser
2010-01-02 20:49:54 +00:00
BuildRequires: rpm-devel
2010-12-01 13:39:54 +00:00
BuildRequires: libgcrypt-devel
BuildRequires: pcre-devel
2011-04-20 12:03:34 +00:00
BuildRequires: libacl-devel
2011-10-13 08:16:21 +00:00
BuildRequires: libselinux-devel libcap-devel
2011-07-26 12:15:47 +00:00
BuildRequires: libblkid-devel
2012-09-25 15:36:05 +00:00
%if %{?_with_check:1}%{!?_with_check:0}
BuildRequires: perl-XML-XPath
%endif
2009-03-31 07:40:00 +00:00
Requires(post): /sbin/ldconfig
Requires(postun): /sbin/ldconfig
%description
2012-09-25 15:36:05 +00:00
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
2009-03-31 07:40:00 +00:00
for the expression of Computer Network Defense related information.
%package devel
Summary: Development files for %{name}
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
2011-01-20 13:45:40 +00:00
Requires: libxml2-devel
2011-03-11 15:41:14 +00:00
Requires: pkgconfig
2009-03-31 07:40:00 +00:00
%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}
2012-09-25 15:36:05 +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}
2011-03-11 15:41:14 +00:00
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
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.
2011-04-20 12:03:34 +00:00
2010-02-26 13:51:35 +00:00
%package utils
Summary: Openscap utilities
Group: Applications/System
Requires: %{name} = %{version}-%{release}
%description utils
The %{name}-utils package contains various utilities based on %{name} library.
2011-04-20 12:03:34 +00:00
2010-12-01 13:39:54 +00:00
%package content
Summary: SCAP content
Group: Applications/System
Requires: %{name} = %{version}-%{release}
2012-09-25 15:36:05 +00:00
BuildArch: noarch
2010-12-01 13:39:54 +00:00
%description content
2011-10-13 08:16:21 +00:00
Example of SCAP content for Fedora. Please note that this content
is for testing purposes only.
2011-04-20 12:03:34 +00:00
2012-02-22 19:37:04 +00:00
%package content-sectool
Summary: Sectool content
Group: Applications/System
Requires: %{name} = %{version}-%{release}
%description content-sectool
SCAP/SCE content that conforms to sectool checks.
2011-04-20 12:03:34 +00:00
%package extra-probes
Summary: SCAP probes
Group: Applications/System
Requires: %{name} = %{version}-%{release}
BuildRequires: openldap-devel
2011-10-13 08:16:21 +00:00
BuildRequires: GConf2-devel
2011-04-20 12:03:34 +00:00
#BuildRequires: opendbx - for sql
%description extra-probes
The %{name}-extra-probes package contains additional probes that are not
commonly used and require additional dependencies.
2010-12-01 13:39:54 +00:00
2009-03-31 07:40:00 +00:00
%prep
%setup -q
%build
2011-07-26 12:15:47 +00:00
%ifarch sparc64
#sparc64 need big PIE
export CFLAGS="$RPM_OPT_FLAGS -fPIE"
export LDFLAGS="-pie -Wl,-z,relro -Wl,-z,now"
%else
export CFLAGS="$RPM_OPT_FLAGS -fpie"
export LDFLAGS="-pie -Wl,-z,relro -Wl,-z,now"
%endif
2012-09-25 15:36:05 +00:00
%configure --enable-sce --enable-perl
2011-07-26 12:15:47 +00:00
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
2011-10-13 08:16:21 +00:00
%check
#to run make check use "--with check"
%if %{?_with_check:1}%{!?_with_check:0}
make check
%endif
2010-12-01 13:39:54 +00:00
2009-03-31 07:40:00 +00:00
%install
rm -rf $RPM_BUILD_ROOT
2010-03-24 15:30:11 +00:00
2011-03-11 15:41:14 +00:00
make install INSTALL='install -p' DESTDIR=$RPM_BUILD_ROOT
2010-03-24 15:30:11 +00:00
2010-09-07 11:54:03 +00:00
# create symlinks to default content
2011-03-11 15:41:14 +00:00
ln -s %{_datadir}/openscap/scap-fedora14-oval.xml $RPM_BUILD_ROOT/%{_datadir}/openscap/scap-oval.xml
ln -s %{_datadir}/openscap/scap-fedora14-xccdf.xml $RPM_BUILD_ROOT/%{_datadir}/openscap/scap-xccdf.xml
2010-09-07 11:54:03 +00:00
2011-04-20 12:03:34 +00:00
# remove content for another OS
rm $RPM_BUILD_ROOT/%{_datadir}/openscap/scap-rhel6-oval.xml
rm $RPM_BUILD_ROOT/%{_datadir}/openscap/scap-rhel6-xccdf.xml
2010-09-07 11:54:03 +00:00
# bash-completion script
2011-03-11 15:41:14 +00:00
mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/bash_completion.d
2010-09-07 11:54:03 +00:00
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
2009-03-31 07:40:00 +00:00
%files
%defattr(-,root,root,-)
%doc AUTHORS COPYING ChangeLog NEWS README
%{_libdir}/*.so.*
2011-07-26 12:15:47 +00:00
%{_libexecdir}/openscap/probe_dnscache
%{_libexecdir}/openscap/probe_environmentvariable
%{_libexecdir}/openscap/probe_environmentvariable58
2011-04-20 12:03:34 +00:00
%{_libexecdir}/openscap/probe_family
%{_libexecdir}/openscap/probe_file
2011-10-13 08:16:21 +00:00
%{_libexecdir}/openscap/probe_fileextendedattribute
2011-04-20 12:03:34 +00:00
%{_libexecdir}/openscap/probe_filehash
2011-07-26 12:15:47 +00:00
%{_libexecdir}/openscap/probe_filehash58
2011-10-13 08:16:21 +00:00
%{_libexecdir}/openscap/probe_iflisteners
2011-04-20 12:03:34 +00:00
%{_libexecdir}/openscap/probe_inetlisteningservers
%{_libexecdir}/openscap/probe_interface
2011-07-26 12:15:47 +00:00
%{_libexecdir}/openscap/probe_partition
2011-04-20 12:03:34 +00:00
%{_libexecdir}/openscap/probe_password
%{_libexecdir}/openscap/probe_process
2011-10-13 08:16:21 +00:00
%{_libexecdir}/openscap/probe_process58
%{_libexecdir}/openscap/probe_routingtable
2011-04-20 12:03:34 +00:00
%{_libexecdir}/openscap/probe_rpminfo
2011-10-13 08:16:21 +00:00
%{_libexecdir}/openscap/probe_rpmverify
2012-07-30 11:19:23 +00:00
%{_libexecdir}/openscap/probe_rpmverifyfile
2012-08-28 13:38:29 +00:00
%{_libexecdir}/openscap/probe_rpmverifypackage
2011-04-20 12:03:34 +00:00
%{_libexecdir}/openscap/probe_runlevel
2011-07-26 12:15:47 +00:00
%{_libexecdir}/openscap/probe_selinuxboolean
2011-10-13 08:16:21 +00:00
%{_libexecdir}/openscap/probe_selinuxsecuritycontext
2011-04-20 12:03:34 +00:00
%{_libexecdir}/openscap/probe_shadow
2011-07-26 12:15:47 +00:00
%{_libexecdir}/openscap/probe_sysctl
2011-04-20 12:03:34 +00:00
%{_libexecdir}/openscap/probe_system_info
%{_libexecdir}/openscap/probe_textfilecontent
%{_libexecdir}/openscap/probe_textfilecontent54
%{_libexecdir}/openscap/probe_uname
2011-07-26 12:15:47 +00:00
%{_libexecdir}/openscap/probe_variable
2011-04-20 12:03:34 +00:00
%{_libexecdir}/openscap/probe_xinetd
%{_libexecdir}/openscap/probe_xmlfilecontent
2011-03-11 15:41:14 +00:00
%dir %{_datadir}/openscap
%dir %{_datadir}/openscap/schemas
%dir %{_datadir}/openscap/xsl
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,-)
2011-03-11 15:41:14 +00:00
%doc docs/{html,examples}/
2009-03-31 07:40:00 +00:00
%{_includedir}/*
%{_libdir}/*.so
2010-12-01 13:39:54 +00:00
%{_libdir}/pkgconfig/*.pc
2009-03-31 07:40:00 +00:00
2010-02-26 13:51:35 +00:00
%files utils
%defattr(-,root,root,-)
2011-03-11 15:41:14 +00:00
%doc docs/oscap-scan.cron
2010-12-01 13:39:54 +00:00
%{_mandir}/man8/*
%{_bindir}/*
%{_sysconfdir}/bash_completion.d
%files content
%defattr(-,root,root,-)
2010-09-07 11:54:03 +00:00
%{_datadir}/openscap/scap-oval.xml
2011-04-20 12:03:34 +00:00
%{_datadir}/openscap/scap-xccdf.xml
2010-09-07 11:54:03 +00:00
%{_datadir}/openscap/scap-fedora14-oval.xml
%{_datadir}/openscap/scap-fedora14-xccdf.xml
2009-03-31 07:40:00 +00:00
2012-02-22 19:37:04 +00:00
%files content-sectool
%defattr(-,root,root,-)
%{_datadir}/openscap/sectool-sce
2011-04-20 12:03:34 +00:00
%files extra-probes
%{_libexecdir}/openscap/probe_ldap57
2011-10-13 08:16:21 +00:00
%{_libexecdir}/openscap/probe_gconf
2011-04-20 12:03:34 +00:00
2009-03-31 07:40:00 +00:00
%changelog
2012-09-25 15:36:05 +00:00
* Tue Sep 25 2012 Peter Vrabec <pvrabec@redhat.com> 0.9.0-1
- upgrade
2012-08-28 13:38:29 +00:00
* Mon Aug 27 2012 Petr Lautrbach <plautrba@redhat.com> 0.8.5-1
- upgrade
2012-08-07 11:55:02 +00:00
* Tue Aug 07 2012 Petr Lautrbach <plautrba@redhat.com> 0.8.4-1
- upgrade
2012-07-31 12:46:29 +00:00
* Tue Jul 31 2012 Petr Lautrbach <plautrba@redhat.com> 0.8.3-2
- fix Profile and @hidden issue
2012-07-30 11:19:23 +00:00
* Mon Jul 30 2012 Petr Lautrbach <plautrba@redhat.com> 0.8.3-1
- upgrade
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.2-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
2012-06-08 13:35:13 +00:00
* Fri Jun 08 2012 Petr Pisar <ppisar@redhat.com> - 0.8.2-2
- Perl 5.16 rebuild
2012-03-30 19:27:33 +00:00
* Fri Mar 30 2012 Petr Lautrbach <plautrba@redhat.com> 0.8.2-1
- upgrade
2012-02-22 19:37:04 +00:00
* Tue Feb 21 2012 Peter Vrabec <pvrabec@redhat.com> 0.8.1-1
- upgrade
2012-02-10 10:12:32 +00:00
* Fri Feb 10 2012 Petr Pisar <ppisar@redhat.com> - 0.8.0-3
- Rebuild against PCRE 8.30
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
2011-10-13 08:16:21 +00:00
* Tue Oct 11 2011 Peter Vrabec <pvrabec@redhat.com> 0.8.0-1
- upgrade
2011-07-26 12:15:47 +00:00
* Mon Jul 25 2011 Peter Vrabec <pvrabec@redhat.com> 0.7.4-1
- upgrade
2011-07-21 16:14:22 +00:00
* Thu Jul 21 2011 Petr Sabata <contyk@redhat.com> - 0.7.3-3
- Perl mass rebuild
2011-07-20 09:17:57 +00:00
* Wed Jul 20 2011 Petr Sabata <contyk@redhat.com> - 0.7.3-2
- Perl mass rebuild
2011-06-24 09:48:33 +00:00
* Fri Jun 24 2011 Peter Vrabec <pvrabec@redhat.com> 0.7.3-1
2011-04-20 12:03:34 +00:00
- upgrade
2011-06-17 13:53:22 +00:00
* Fri Jun 17 2011 Marcela Mašláňová <mmaslano@redhat.com> - 0.7.2-3
- Perl mass rebuild
2011-06-10 11:07:58 +00:00
* Fri Jun 10 2011 Marcela Mašláňová <mmaslano@redhat.com> - 0.7.2-2
- Perl 5.14 mass rebuild
2011-04-20 12:03:34 +00:00
* Wed Apr 20 2011 Peter Vrabec <pvrabec@redhat.com> 0.7.2-1
- upgrade
2011-03-11 15:41:14 +00:00
* Fri Mar 11 2011 Peter Vrabec <pvrabec@redhat.com> 0.7.1-1
- upgrade
2011-02-11 20:26:03 +00:00
* Thu Feb 10 2011 Peter Vrabec <pvrabec@redhat.com> 0.7.0-1
- upgrade
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.8-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
2011-02-01 09:19:00 +00:00
* Mon Jan 31 2011 Peter Vrabec <pvrabec@redhat.com> 0.6.8-1
- upgrade
2011-01-20 13:45:40 +00:00
* Fri Jan 14 2011 Peter Vrabec <pvrabec@redhat.com> 0.6.7-1
- upgrade
2010-10-20 15:27:01 +00:00
* Wed Oct 20 2010 Peter Vrabec <pvrabec@redhat.com> 0.6.4-1
- upgrade
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
2010-12-01 13:39:54 +00:00
* Wed Jul 14 2010 Peter Vrabec <pvrabec@redhat.com> 0.6.0-1
2010-07-01 14:30:55 +00:00
- 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-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