commit f865c6c808dff93f01fd02fd60080f6cc5d422257b77d4578cd0782cf98df434 Author: Stanislav Brabec Date: Fri Mar 20 19:18:57 2015 +0000 Accepting request 291113 from home:jengelh:dev OBS-URL: https://build.opensuse.org/request/show/291113 OBS-URL: https://build.opensuse.org/package/show/hardware/libzbc?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/libzbc-1.1.0~git68.tar.xz b/libzbc-1.1.0~git68.tar.xz new file mode 100644 index 0000000..aa27162 --- /dev/null +++ b/libzbc-1.1.0~git68.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0bcc2499560a2b80533eabbff9ddb35540b193b6a873e76f35c7348bcb6e808b +size 51544 diff --git a/libzbc.changes b/libzbc.changes new file mode 100644 index 0000000..cec66a9 --- /dev/null +++ b/libzbc.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Mon Mar 16 21:44:08 UTC 2015 - jengelh@inai.de + +- Initial package (version 1.1.0~git68) for build.opensuse.org diff --git a/libzbc.spec b/libzbc.spec new file mode 100644 index 0000000..c6e5fe8 --- /dev/null +++ b/libzbc.spec @@ -0,0 +1,125 @@ +# +# spec file for package libzbc +# +# Copyright (c) 2014 SUSE LINUX Products GmbH, 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: libzbc +%define lname libzbc1 +Version: 1.1.0~git68 +Release: 0 +Summary: Library for manipulating ZBC and ZAC disks +License: BSD-2-Clause and LGPL-3.0+ +Group: Hardware +Url: http://github.com/hgst/libzbc + +#Git-Clone: git://github.com/hgst/libzbc +#Snapshot: 116f604a2a0c5f15bed9c7b2e3bb8188da93f643 +Source: %name-%version.tar.xz +BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: libtool >= 2 +BuildRequires: pkg-config +BuildRequires: pkgconfig(gtk+-3.0) +BuildRequires: xz + +%description +libzbc is a simple library providing functions for manipulating Zoned +Block Command (ZBC) and Zoned-device ATA command set (ZAC) disks. +libzbc also has an mode for emulating the behavior of a zoned disk +using a regular file or raw block device. + +%package -n %lname +Summary: Library for manipulating ZBC and ZAC disks +Group: System/Libraries + +%description -n %lname +libzbc is a simple library providing functions for manipulating Zoned +Block Command (ZBC) and Zoned-device ATA command set (ZAC) disks. +libzbc also has an mode for emulating the behavior of a zoned disk +using a regular file or raw block device. + +%package devel +Summary: Development files for libzbc, a ZBC/ZAC disk manipulation library +Group: Development/Libraries/C and C++ +Requires: %lname = %version + +%description devel +libzbc is a simple library providing functions for manipulating Zoned +Block Command (ZBC), Zoned-device ATA command set (ZAC) disks. + +This subpackage contains the files needed to build against libzbc. + +%package gui +Summary: Graphical frontend for ZBC tools +Group: Hardware/Other + +%description gui +A simple graphical interface showing zone information of a zoned device. +It also displays the write status (write pointer position) of zones +graphically using color coding (red for written space and green for +unwritten space). + +%package tools +Summary: Command line utilities for ZBC/ZAC disk manipulation +Group: Hardware/Other + +%description tools +libzbc is a simple library providing functions for manipulating Zoned +Block Command (ZBC), Zoned-device ATA command set (ZAC) disks. + +%prep +%setup -qn %name + +%build +autoreconf -fi +mkdir obj +pushd obj/ +%define _configure ../configure +%configure --disable-static --includedir="%_includedir/%name" +make %{?_smp_mflags} +popd + +%install +b="%buildroot"; +%make_install -C obj +find "$b/%_libdir" -type f -name "*.la" -delete; + +%check +make -C obj check %{?_smp_mflags} + +%post -n %lname -p /sbin/ldconfig +%postun -n %lname -p /sbin/ldconfig + +%files tools +%defattr(-,root,root) +%_bindir/zbc_* +%doc COPYING.LESSER + +%files gui +%defattr(-,root,root) +%_bindir/gzbc + +%files -n %lname +%defattr(-,root,root) +%_libdir/libzbc.so.1* +%doc COPYING + +%files devel +%defattr(-,root,root) +%_includedir/%name/ +%_libdir/libzbc.so +%_libdir/pkgconfig/libzbc.pc + +%changelog