Commit d6d04703 authored by Michał Kępień's avatar Michał Kępień

Drop CentOS 6 support

parent a3bf80c8
......@@ -23,9 +23,7 @@ Release: 4%{?dist}
License: MIT
URL: https://github.com/farsightsec/fstrm
Source0: https://dl.farsightsecurity.com/dist/%{pkg_name}/%{pkg_name}-%{version}.tar.gz
%if 0%{?rhel} != 6
BuildRequires: autoconf automake libtool
%endif
BuildRequires: %{?scl_prefix}libevent-devel
%{?scl:BuildRequires: %{scl}-build}
......@@ -63,7 +61,6 @@ Requires: %{name}%{?_isa} = %{version}-%{release}
The fstrm-devel package contains header files required to build an application
using fstrm library.
%if 0%{?rhel} != 6
%package doc
Summary: API documentation for fstrm library
BuildArch: noarch
......@@ -73,34 +70,27 @@ Requires: %{name} = %{version}-%{release}
%description doc
The fstrm-doc package contains Doxygen generated API documentation for
fstrm library.
%endif
%prep
%setup -q -n %{pkg_name}-%{version}
%if 0%{?rhel} != 6
# regenerated build scripts to:
# - remove RPATHs
# - allow dynamic linking and execution of 'make check'
autoreconf -fi
%endif
%build
%configure --disable-static
make %{?_smp_mflags}
%if 0%{?rhel} != 6
make html
%endif
%install
# install the library
make install DESTDIR=%{buildroot}
rm %{buildroot}%{_libdir}/libfstrm.la
%if 0%{?rhel} != 6
# install documentation
mkdir -p %{buildroot}%{_pkgdocdir}/
cp -ar html %{buildroot}%{_pkgdocdir}/html
%endif
%check
%{?scl:scl enable %scl -- }make check
......@@ -114,9 +104,7 @@ cp -ar html %{buildroot}%{_pkgdocdir}/html
%files
%doc COPYRIGHT LICENSE
%if 0%{?rhel} != 6
%exclude %{_pkgdocdir}/html
%endif
%{_libdir}/libfstrm.so.*
%files utils
......@@ -132,10 +120,8 @@ cp -ar html %{buildroot}%{_pkgdocdir}/html
%{_libdir}/pkgconfig/libfstrm.pc
%{_libdir}/libfstrm.so
%if 0%{?rhel} != 6
%files doc
%doc %{_pkgdocdir}/html
%endif
%changelog
* Tue Sep 15 2020 Petr Menšík <pemensik@redhat.com> - 0.6.0-3
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment