fix FTBFS

Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
This commit is contained in:
Igor Gnatenko 2018-02-20 17:02:01 +01:00
parent b037feba45
commit d000c4ffe9
No known key found for this signature in database
GPG Key ID: 695714BD1BBC5F4C

View File

@ -2,81 +2,74 @@ Summary: Intrusion detection environment
Name: aide Name: aide
Version: 0.16 Version: 0.16
Release: 5%{?dist} Release: 5%{?dist}
URL: http://sourceforge.net/projects/%{name} URL: http://sourceforge.net/projects/aide
License: GPLv2+ License: GPLv2+
Group: Applications/System
Source0: https://sourceforge.net/projects/%{name}/files/aide/%{version}/%{name}-%{version}.tar.gz Source0: %{url}/files/aide/%{version}/%{name}-%{version}.tar.gz
Source1: aide.conf Source1: aide.conf
Source2: README.quickstart Source2: README.quickstart
Source3: aide.logrotate Source3: aide.logrotate
BuildRequires: gcc
BuildRequires: mktemp BuildRequires: make
BuildRequires: elfutils-libelf-devel BuildRequires: bison flex
Buildrequires: zlib-devel libgcrypt-devel BuildRequires: pcre-devel
Buildrequires: flex bison BuildRequires: libgpg-error-devel libgcrypt-devel
Buildrequires: libattr-devel e2fsprogs-devel BuildRequires: zlib-devel
Buildrequires: libacl-devel libselinux-devel BuildRequires: libcurl-devel
Buildrequires: audit-libs-devel >= 1.2.8-2 BuildRequires: libacl-devel
BuildRequires: pkgconfig(libselinux)
BuildRequires: libattr-devel
BuildRequires: e2fsprogs-devel
Buildrequires: audit-libs-devel
# Customize the database file location in the man page. # Customize the database file location in the man page.
Patch1: aide-0.16rc1-man.patch Patch1: aide-0.16rc1-man.patch
# fix aide in FIPS mode # fix aide in FIPS mode
Patch2: aide-0.16b1-fipsfix.patch Patch2: aide-0.16b1-fipsfix.patch
%description %description
AIDE (Advanced Intrusion Detection Environment) is a file integrity AIDE (Advanced Intrusion Detection Environment) is a file integrity
checker and intrusion detection program. checker and intrusion detection program.
%prep %prep
%setup -q %autosetup -p1
%patch1 -p1 -b .man cp -a %{S:2} .
%patch2 -p1 -b .fipsfix
%build %build
%configure --with-config_file=%{_sysconfdir}/aide.conf \ %configure \
--with-zlib \
--disable-static \ --disable-static \
--with-config_file=%{_sysconfdir}/aide.conf \
--with-gcrypt \
--with-zlib \
--with-curl \
--with-posix-acl \ --with-posix-acl \
--with-selinux \ --with-selinux \
--with-xattr \ --with-xattr \
--with-e2fsattrs \ --with-e2fsattrs \
--with-audit --with-audit
%make_build
make
%install %install
rm -rf $RPM_BUILD_ROOT %make_install bindir=%{_sbindir}
make DESTDIR=$RPM_BUILD_ROOT bindir=%{_sbindir} install install -Dpm0644 -t %{buildroot}%{_sysconfdir} %{S:1}
mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/log/aide install -Dpm0644 %{S:3} %{buildroot}%{_sysconfdir}/logrotate.d/aide
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir} mkdir -p %{buildroot}%{_localstatedir}/log/aide
install -p %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir} mkdir -p -m0700 %{buildroot}%{_localstatedir}/lib/aide
mkdir -p -m0700 $RPM_BUILD_ROOT%{_localstatedir}/lib/aide
install -p %{SOURCE2} README.quickstart
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d
install -c -m 644 %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/aide
%files %files
%doc AUTHORS COPYING ChangeLog NEWS README doc/manual.html contrib/ %license COPYING
%doc AUTHORS ChangeLog NEWS README doc/manual.html contrib/
%doc README.quickstart %doc README.quickstart
%attr(0755,root,root) %{_sbindir}/aide %{_sbindir}/aide
%{_mandir}/man1/* %{_mandir}/man1/*.1*
%{_mandir}/man5/* %{_mandir}/man5/*.5*
%config(noreplace) %attr(0600,root,root) %{_sysconfdir}/aide.conf %config(noreplace) %attr(0600,root,root) %{_sysconfdir}/aide.conf
%config(noreplace) %{_sysconfdir}/logrotate.d/aide %config(noreplace) %{_sysconfdir}/logrotate.d/aide
%dir %attr(0700,root,root) %{_localstatedir}/lib/aide %dir %attr(0700,root,root) %{_localstatedir}/lib/aide
%dir %attr(0700,root,root) %{_localstatedir}/log/aide %dir %attr(0700,root,root) %{_localstatedir}/log/aide
%changelog %changelog
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.16-5 * Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.16-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild