Initial spec file for nbdkit.
authorRichard W.M. Jones <rjones@redhat.com>
Fri, 21 Jun 2013 12:31:39 +0000 (13:31 +0100)
committerRichard W.M. Jones <rjones@redhat.com>
Fri, 21 Jun 2013 12:58:35 +0000 (13:58 +0100)
See: https://github.com/libguestfs/nbdkit

nbdkit.spec [new file with mode: 0644]

diff --git a/nbdkit.spec b/nbdkit.spec
new file mode 100644 (file)
index 0000000..28d16d0
--- /dev/null
@@ -0,0 +1,82 @@
+Name:           nbdkit
+Version:        0.1.0
+Release:        1%{?dist}
+Summary:        NBD server
+
+License:        BSD
+URL:            https://github.com/libguestfs/nbdkit
+Source0:        nbdkit-0.1.0.tar.gz
+
+BuildRequires:  /usr/bin/pod2man
+
+
+%description
+NBD is a protocol for accessing block devices (hard disks and
+disk-like things) over the network.
+
+'nbdkit' is a toolkit for creating NBD servers.
+
+The key features are:
+
+* Multithreaded NBD server written in C with good performance.
+
+* Well-documented, simple plugin API with a stable ABI guarantee.
+  Let's you export "unconventional" block devices easily.
+
+* Liberal license (BSD) allows nbdkit to be linked to proprietary
+  libraries or included in proprietary code.
+
+Several example plugins are included in the package.
+
+To develop plugins, install the %{name}-devel package and start by
+reading the nbdkit(1) and nbdkit-plugin(3) manual pages.
+
+
+%package devel
+Summary:        Development files and documentation for %{name}
+License:        BSD
+
+Requires:       %{name} = %{version}-%{release}
+
+
+%description devel
+This package contains development files and documentation
+for %{name}.  Install this package if you want to develop
+plugins for %{name}.
+
+
+%prep
+%setup -q
+
+
+%build
+%configure --disable-static
+make %{?_smp_mflags}
+
+
+%install
+%make_install
+
+# Delete libtool crap.
+find $RPM_BUILD_ROOT -name '*.la' -delete
+
+
+%files
+%doc LICENSE README
+%{_sbindir}/nbdkit
+%{_libdir}/%{name}
+%{_mandir}/man1/nbdkit.1*
+%{_mandir}/man1/libnbdkit-*.1*
+
+
+%files devel
+%doc LICENSE README TODO
+# Include the source of the example plugins in the documentation.
+%doc plugins/example*/*.c
+%{_includedir}/nbdkit-plugin.h
+%{_mandir}/man3/nbdkit-plugin.3*
+
+
+%changelog
+* Fri Jun 21 2013 Richard W.M. Jones <rjones@redhat.com> 0.1.0-1
+- Initial release.