]> git.proxmox.com Git - mirror_kronosnet.git/blobdiff - kronosnet.spec.in
[access lists] enable generic access lists only for protocols that use them
[mirror_kronosnet.git] / kronosnet.spec.in
index 8d0e561e0b4656f77d7bf12db11cce3f430d545f..2d4d059f507109926203e145ef70f936ed7fde74 100644 (file)
@@ -1,7 +1,7 @@
 ###############################################################################
 ###############################################################################
 ##
-##  Copyright (C) 2012-2017 Red Hat, Inc.  All rights reserved.
+##  Copyright (C) 2012-2019 Red Hat, Inc.  All rights reserved.
 ##
 ##  This copyrighted material is made available to anyone wishing to use,
 ##  modify, copy, or redistribute it subject to the terms and conditions
 %@lzma@ lzma
 %@bzip2@ bzip2
 %@kronosnetd@ kronosnetd
-%@libtap@ libtap
+%@libnozzle@ libnozzle
 %@runautogen@ runautogen
+%@rpmdebuginfo@ rpmdebuginfo
+%@overriderpmdebuginfo@ overriderpmdebuginfo
+%@buildman@ buildman
+%@installtests@ installtests
+
+%if %{with overriderpmdebuginfo}
+%undefine _enable_debug_packages
+%endif
 
 %if %{with sctp}
 %global buildsctp 1
 %if %{with bzip2}
 %global buildcompressbzip2 1
 %endif
-%if %{with libtap}
-%global buildlibtap 1
+%if %{with libnozzle}
+%global buildlibnozzle 1
 %endif
 %if %{with kronosnetd}
-%global buildlibtap 1
+%global buildlibnozzle 1
 %global buildkronosnetd 1
 %endif
 %if %{with runautogen}
 %global buildautogen 1
 %endif
+%if %{with buildman}
+%global buildmanpages 1
+%endif
+%if %{with installtests}
+%global installtestsuite 1
+%endif
 
 # main (empty) package
 # http://www.rpm.org/max-rpm/s1-rpm-subpack-spec-file-changes.html
@@ -72,8 +86,8 @@ Version: @version@
 Release: 1%{?numcomm:.%{numcomm}}%{?alphatag:.%{alphatag}}%{?dirty:.%{dirty}}%{?dist}
 License: GPLv2+ and LGPLv2+
 Group: System Environment/Base
-URL: https://github.com/fabbione/kronosnet/
-Source0: https://github.com/fabbione/kronosnet/archive/%{name}-%{version}%{?numcomm:.%{numcomm}}%{?alphatag:-%{alphatag}}%{?dirty:-%{dirty}}.tar.gz
+URL: https://github.com/kronosnet/kronosnet/
+Source0: https://github.com/kronosnet/kronosnet/archive/%{name}-%{version}%{?numcomm:.%{numcomm}}%{?alphatag:-%{alphatag}}%{?dirty:-%{dirty}}.tar.gz
 
 ## Setup/build bits
 
@@ -81,6 +95,10 @@ BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
 
 # Build dependencies
 BuildRequires: gcc
+# required to build man pages
+%if %{defined buildmanpages}
+BuildRequires: libqb-devel libxml2-devel doxygen
+%endif
 %if %{defined buildsctp}
 BuildRequires: lksctp-tools-devel
 %endif
@@ -106,12 +124,15 @@ BuildRequires: xz-devel
 BuildRequires: /usr/include/bzlib.h
 %endif
 %if %{defined buildkronosnetd}
-BuildRequires: libqb-devel pam-devel
+BuildRequires: pam-devel
+%endif
+%if %{defined buildlibnozzle}
+BuildRequires: libnl3-devel
 %endif
 %if %{defined buildautogen}
-BuildRequires:  autoconf
-BuildRequires:  automake
-BuildRequires:  libtool
+BuildRequires: autoconf
+BuildRequires: automake
+BuildRequires: libtool
 %endif
 
 %prep
@@ -123,6 +144,16 @@ BuildRequires:  libtool
 %endif
 
 %{configure} \
+%if %{defined installtestsuite}
+       --enable-install-tests \
+%else
+       --disable-install-tests \
+%endif
+%if %{defined buildmanpages}
+       --enable-man \
+%else
+       --disable-man \
+%endif
 %if %{defined buildsctp}
        --enable-libknet-sctp \
 %else
@@ -166,8 +197,8 @@ BuildRequires:  libtool
 %if %{defined buildkronosnetd}
        --enable-kronosnetd \
 %endif
-%if %{defined buildlibtap}
-       --enable-libtap \
+%if %{defined buildlibnozzle}
+       --enable-libnozzle \
 %endif
        --with-initdefaultdir=%{_sysconfdir}/sysconfig/ \
 %if %{defined _unitdir}
@@ -282,42 +313,43 @@ fi
 %{_mandir}/man8/*
 %endif
 
-%if %{defined buildlibtap}
-%package -n libtap1
+%if %{defined buildlibnozzle}
+%package -n libnozzle1
 Group: System Environment/Libraries
 Summary: Simple userland wrapper around kernel tap devices
 
-%description -n libtap1
+%description -n libnozzle1
  This is an over-engineered commodity library to manage a pool
  of tap devices and provides the basic
  pre-up.d/up.d/down.d/post-down.d infrastructure.
 
-%files -n libtap1
+%files -n libnozzle1
 %defattr(-,root,root,-)
 %doc COPYING.* COPYRIGHT
-%{_libdir}/libtap.so.*
+%{_libdir}/libnozzle.so.*
 
-%post -n libtap1 -p /sbin/ldconfig
+%post -n libnozzle1 -p /sbin/ldconfig
 
-%postun -n libtap1 -p /sbin/ldconfig
+%postun -n libnozzle1 -p /sbin/ldconfig
 
-%package -n libtap1-devel
+%package -n libnozzle1-devel
 Group: Development/Libraries
 Summary: Simple userland wrapper around kernel tap devices (developer files)
-Requires: libtap1 = %{version}-%{release}
+Requires: libnozzle1 = %{version}-%{release}
 Requires: pkgconfig
 
-%description -n libtap1-devel
+%description -n libnozzle1-devel
  This is an over-engineered commodity library to manage a pool
  of tap devices and provides the basic
  pre-up.d/up.d/down.d/post-down.d infrastructure.
 
-%files -n libtap1-devel
+%files -n libnozzle1-devel
 %defattr(-,root,root,-)
 %doc COPYING.* COPYRIGHT
-%{_libdir}/libtap.so
-%{_includedir}/libtap.h
-%{_libdir}/pkgconfig/libtap.pc
+%{_libdir}/libnozzle.so
+%{_includedir}/libnozzle.h
+%{_libdir}/pkgconfig/libnozzle.pc
+%{_mandir}/man3/nozzle*.3.gz
 %endif
 
 %package -n libknet1
@@ -333,7 +365,7 @@ Summary: Kronosnet core switching implementation
 %defattr(-,root,root,-)
 %doc COPYING.* COPYRIGHT
 %{_libdir}/libknet.so.*
-%{_libdir}/kronosnet
+%dir %{_libdir}/kronosnet
 
 %post -n libknet1 -p /sbin/ldconfig
 
@@ -356,7 +388,9 @@ Requires: pkgconfig
 %{_libdir}/libknet.so
 %{_includedir}/libknet.h
 %{_libdir}/pkgconfig/libknet.pc
-%{_mandir}/man3/*.3.gz
+%if %{defined buildmanpages}
+%{_mandir}/man3/knet*.3.gz
+%endif
 
 %if %{defined buildcryptonss}
 %package -n libknet1-crypto-nss-plugin
@@ -506,6 +540,24 @@ Requires: libknet1-crypto-plugins-all
 
 %files -n libknet1-plugins-all
 
+%if %{with installtests}
+%package -n kronosnet-tests
+Group: System Environment/Libraries
+Summary: kronosnet test suite
+Requires: libknet1 = %{version}-%{release}
+
+%description -n kronosnet-tests
+ this package contains all the libknet and libnozzle test suite
+
+%files -n kronosnet-tests
+%defattr(-,root,root,-)
+%{_libdir}/kronosnet/tests/*
+%endif
+
+%if %{with rpmdebuginfo}
+%debug_package
+%endif
+
 %changelog
 * @date@ Autotools generated version <nobody@nowhere.org> - @version@-1-@numcomm@.@alphatag@.@dirty@
 - These aren't the droids you're looking for.