ihrachyshka pushed to dibbler (master). "Initial import (#1206639)."

notifications at fedoraproject.org notifications at fedoraproject.org
Tue Apr 7 09:05:00 UTC 2015


>From 91077ee832fc927750724c50c5f55cc2d8cc72a5 Mon Sep 17 00:00:00 2001
From: Ihar Hrachyshka <ihrachys at redhat.com>
Date: Tue, 7 Apr 2015 11:04:41 +0200
Subject: Initial import (#1206639).


diff --git a/.gitignore b/.gitignore
index e69de29..72862da 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/dibbler-1.0.1RC1.tar.gz
diff --git a/0001-fix-gtest-config-path.patch b/0001-fix-gtest-config-path.patch
new file mode 100644
index 0000000..2950230
--- /dev/null
+++ b/0001-fix-gtest-config-path.patch
@@ -0,0 +1,48 @@
+diff -urN dibbler-1.0.1RC1.orig/configure dibbler-1.0.1RC1/configure
+--- dibbler-1.0.1RC1.orig/configure	2015-04-02 16:44:56.276307643 +0200
++++ dibbler-1.0.1RC1/configure	2015-04-02 16:50:53.051352676 +0200
+@@ -17361,9 +17361,9 @@
+ 
+ if test "$gtest_path" != "no"
+ then
+-    if test -x "${gtest_path}/scripts/gtest-config"
++    if test -x "${gtest_path}/gtest-config"
+     then
+-        GTEST_CONFIG="${gtest_path}/scripts/gtest-config"
++        GTEST_CONFIG="${gtest_path}/gtest-config"
+         GTEST_INCLUDES=`${GTEST_CONFIG} --cppflags`
+         GTEST_LDFLAGS=`${GTEST_CONFIG} --ldflags`
+         GTEST_LDADD=`${GTEST_CONFIG} --libs`
+@@ -17374,7 +17374,7 @@
+             GTEST_LDFLAGS="${GTEST_LDFLAGS} -static"
+         fi
+     else
+-        as_fn_error $? "Google test not found: couldn't execute ${gtest_path}/scripts/gtest-config" "$LINENO" 5
++        as_fn_error $? "Google test not found: couldn't execute ${gtest_path}/gtest-config" "$LINENO" 5
+     fi
+ fi
+ 
+diff -urN dibbler-1.0.1RC1.orig/configure.ac dibbler-1.0.1RC1/configure.ac
+--- dibbler-1.0.1RC1.orig/configure.ac	2015-04-02 16:44:56.271307670 +0200
++++ dibbler-1.0.1RC1/configure.ac	2015-04-02 16:45:32.308110205 +0200
+@@ -466,9 +466,9 @@
+ 
+ if test "$gtest_path" != "no"
+ then
+-    if test -x "${gtest_path}/scripts/gtest-config"
++    if test -x "${gtest_path}/gtest-config"
+     then
+-        GTEST_CONFIG="${gtest_path}/scripts/gtest-config"
++        GTEST_CONFIG="${gtest_path}/gtest-config"
+         GTEST_INCLUDES=`${GTEST_CONFIG} --cppflags`
+         GTEST_LDFLAGS=`${GTEST_CONFIG} --ldflags`
+         GTEST_LDADD=`${GTEST_CONFIG} --libs`
+@@ -479,7 +479,7 @@
+             GTEST_LDFLAGS="${GTEST_LDFLAGS} -static"
+         fi
+     else
+-        AC_MSG_ERROR(Google test not found: couldn't execute ${gtest_path}/scripts/gtest-config)
++        AC_MSG_ERROR(Google test not found: couldn't execute ${gtest_path}/gtest-config)
+     fi
+ fi
+ 
diff --git a/dibbler.spec b/dibbler.spec
new file mode 100644
index 0000000..70427ac
--- /dev/null
+++ b/dibbler.spec
@@ -0,0 +1,168 @@
+%global milestone RC1
+
+%global common_desc \
+Dibbler is a portable DHCPv6 implementation. It supports stateful (i.e. IPv6 \
+address granting and IPv6 prefix delegation) as well as stateless (i.e. option \
+granting) autoconfiguration for IPv6.
+
+Name:		dibbler
+Version:	1.0.1
+Release:	0.%{milestone}.1%{?dist}
+Summary:	Portable DHCPv6 implementation
+
+BuildRequires:	gtest-devel
+
+# needed until http://klub.com.pl/bugzilla3/show_bug.cgi?id=318 is fixed
+Patch0001:	0001-fix-gtest-config-path.patch
+
+License:	GPLv2
+URL:		http://klub.com.pl/dhcpv6
+Source0:	http://klub.com.pl/dhcpv6/dibbler/dibbler-%{version}%{milestone}.tar.gz
+
+%description
+%{common_desc}
+
+
+%package client
+Summary:	Dibbler, DHCPv6 client
+
+
+%description client
+%{common_desc}
+
+This package contains DHCPv6 client.
+
+
+%package relay
+Summary:	Dibbler, DHCPv6 relay
+
+
+%description relay
+%{common_desc}
+
+This package contains DHCPv6 relay.
+
+
+%package requestor
+Summary:	Dibbler, DHCPv6 request generator
+
+
+%description requestor
+%{common_desc}
+
+This package contains DHCPv6 request generator.
+
+
+%package server
+Summary:	Dibbler, DHCPv6 server
+
+
+%description server
+%{common_desc}
+
+This package contains DHCPv6 server.
+
+
+%package docs
+Summary:	Dibbler documentation
+BuildArch:	noarch
+
+
+%description docs
+%{common_desc}
+
+This package contains dibbler documentation.
+
+
+%prep
+%setup -q -n dibbler-%{version}%{milestone}
+%patch0001 -p1
+
+
+%build
+%configure --with-gtest=%{_bindir}
+make %{?_smp_mflags}
+
+
+%check
+# Unit tests are currently broken: http://klub.com.pl/bugzilla3/show_bug.cgi?id=317
+#make check
+
+
+%install
+make install DESTDIR=%{buildroot}
+
+# We explicitly add license file to each sub-package, so no need to install it
+# as documentation
+rm %{buildroot}%{_pkgdocdir}/LICENSE
+
+# Setup directories
+install -p -d -m 755 %{buildroot}%{_sharedstatedir}/dibbler
+install -p -d -m 755 %{buildroot}%{_sysconfdir}/dibbler
+
+# Install configuration files
+for config in client relay server; do
+    cp -p doc/examples/$config.conf %{buildroot}%{_sysconfdir}/dibbler
+done
+
+# Kill example files irrelevant to Fedora Linux
+for file in client-win32.conf server-win32.conf; do
+    rm %{buildroot}%{_pkgdocdir}/examples/$file
+done
+
+for file in client-notify-bsd.sh client-notify-macos.sh; do
+    rm %{buildroot}%{_pkgdocdir}/scripts/notify-scripts/$file
+done
+
+
+%files client
+%license LICENSE
+%{_sbindir}/dibbler-client
+%{_mandir}/man8/dibbler-client.8*
+%config(noreplace) %{_sysconfdir}/dibbler/client.conf
+%dir %{_sharedstatedir}/dibbler
+
+
+%files relay
+%license LICENSE
+%{_sbindir}/dibbler-relay
+%{_mandir}/man8/dibbler-relay.8*
+%config(noreplace) %{_sysconfdir}/dibbler/relay.conf
+%dir %{_sharedstatedir}/dibbler
+
+
+%files requestor
+%license LICENSE
+%{_sbindir}/dibbler-requestor
+%dir %{_sharedstatedir}/dibbler
+
+
+%files server
+%license LICENSE
+%{_sbindir}/dibbler-server
+%{_mandir}/man8/dibbler-server.8*
+%config(noreplace) %{_sysconfdir}/dibbler/server.conf
+%dir %{_sharedstatedir}/dibbler
+
+
+%files docs
+%license LICENSE
+%{_pkgdocdir}/CHANGELOG
+%{_pkgdocdir}/RELNOTES
+%{_pkgdocdir}/dibbler-user.pdf
+%{_pkgdocdir}/examples/*.conf
+%{_pkgdocdir}/scripts/*
+
+
+%changelog
+* Thu Apr 2 2015 Ihar Hrachyshka <ihrachys at redhat.com> - 1.0.1-0.RC1.1
+- removed dibbler-common package, instead put _sharedstatedir in each package
+  that needs it.
+- added %check section (disabled for now due to upstream bug).
+- cleaned up scripts and examples for non-Linux platforms.
+- removed Group tags.
+- build -docs package as noarch.
+- preserve timestamps for files installed with `install` and `cp`.
+
+* Thu Mar 26 2015 Ihar Hrachyshka <ihrachys at redhat.com> - 1.0.1-0.RC1
+- Initial package build.
diff --git a/sources b/sources
index e69de29..35eb270 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+1a7f281237541296187af21316ce07eb  dibbler-1.0.1RC1.tar.gz
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/dibbler.git/commit/?h=master&id=91077ee832fc927750724c50c5f55cc2d8cc72a5


More information about the scm-commits mailing list