File dibbler.spec of Package Dibbler
#
# spec file for package dibbler
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2012 Anniyka Wandersmann, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: dibbler
Version: 1.0.1
Release: 0
Summary: Dibbler -- a portable DHCPv6
License: GPL-2.0
Group: Productivity/Networking/Boot/Servers
Url: http://klub.com.pl/dhcpv6/
Source: http://klub.com.pl/dhcpv6/dibbler/%{name}-%{version}.tar.gz
BuildRequires: gcc-c++
BuildRequires: flex
BuildRequires: libstdc++-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Dibbler is a portable DHCPv6 implementation. It supports stateful (i.e. IPv6 address
granting) as well as stateless (i.e. option granting) autoconfiguration for IPv6.
Currently Linux 2.4/2.6 and Windows XP and Windows 2003 ports are available.
It features easy to use install packages (Clickable Windows installer and RPM and DEB
packages for Linux) and extensive documentation (both for users as well as developers).
Dibbler is developed under GNU GPL licence. It means that it is free for all,
including commercial usage.
%package server
Summary: Dibbler DHCPv6 Server
Group: Productivity/Networking/Boot/Servers
Requires: dibbler-help
%description server
This package contains the Dibbler DHCPv6 server.
%package client
Summary: Dibbler DHCPv6 Client
Group: Productivity/Networking/Boot/Clients
Requires: dibbler-help
%description client
This package contains the Dibbler DHCPv6 client.
%package relay
Summary: Dibbler DHCPv6 Relay
Group: Productivity/Networking/Boot/Servers
Requires: dibbler-help
%description relay
This package contains the Dibbler DHCPv6 relay server.
%package help
Summary: Dibbler DHCPv6 Documentation
Group: Documentation/Other
%description help
This package contains the Dibbler DHCPv6 documentation as well as needed helpfiles for the other packages.
%package utils
Summary: Dibbler DHCPv6 Utilities
Group: Productivity/Networking/Boot/Clients
%description utils
This package contains Dibbler DHCPv6 utils.
%prep
%setup -q
%build
%configure \
--prefix=%{_prefix} \
--sysconfdir=%{_sysconfdir}/dibbler \
--docdir=%{_docdir}/dibbler \
--localstatedir=/var
make %{?_smp_mflags}
%install
make DESTDIR=%{buildroot} INSTALL="install -p" CP="cp -p" install
mkdir -p %{buildroot}%{_sysconfdir}/dibbler
install -m 644 doc/examples/client.conf %{buildroot}%{_sysconfdir}/dibbler
install -m 644 doc/examples/client-stateless.conf %{buildroot}%{_sysconfdir}/dibbler
install -m 644 doc/examples/server.conf %{buildroot}%{_sysconfdir}/dibbler
install -m 644 doc/examples/server-stateless.conf %{buildroot}%{_sysconfdir}/dibbler
install -m 644 doc/examples/relay.conf %{buildroot}%{_sysconfdir}/dibbler
%files server
%defattr(-,root,root,-)
%config(noreplace) %{_sysconfdir}/dibbler/server.conf
%config(noreplace) %{_sysconfdir}/dibbler/server-stateless.conf
%{_mandir}/man8/dibbler-server.8.gz
%{_sbindir}/dibbler-server
%files client
%defattr(-,root,root,-)
%config(noreplace) %{_sysconfdir}/dibbler/client.conf
%config(noreplace) %{_sysconfdir}/dibbler/client-stateless.conf
%{_mandir}/man8/dibbler-client.8.gz
%{_sbindir}/dibbler-client
%files utils
%defattr(-,root,root,-)
%{_sbindir}/dibbler-requestor
%files relay
%defattr(-,root,root,-)
%config(noreplace) %{_sysconfdir}/dibbler/relay.conf
%{_mandir}/man8/dibbler-relay.8.gz
%{_sbindir}/dibbler-relay
%files help
%defattr(-,root,root,-)
%dir %{_sysconfdir}/dibbler
%dir %{_docdir}/dibbler
%doc %{_docdir}/dibbler/*
%changelog