Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:aevseev
libiscsi
libiscsi.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File libiscsi.spec of Package libiscsi
%define realname libiscsi %define srcext tar.bz2 %define so_ver 8 # turn off the generation of debuginfo rpm (RH9) ?? %global debug_package %{nil} # Common info Name: %{realname}%{?so_ver} Version: 1.9.0 Release: wiz%{?extraver:0.}1%{?dist} License: LGPL-2.1 Group: System/Libraries URL: https://github.com/sahlberg/libiscsi Summary: ISCSI client library # Install-time parameters Provides: %{realname} # Build-time parameters BuildRequires: autoconf automake libtool BuildRequires: pkgconfig %if 0%{?suse_version} BuildRequires: libxslt-tools libxml2-tools docbook-xsl-stylesheets %endif %if 0%{?rhel} BuildRequires: libxslt docbook-style-xsl %endif BuildRoot: %{_tmppath}/%{name}-root Source: %{realname}-%{version}.%{srcext} %description Libiscsi is a clientside library to implement the iSCSI protocol that can be used to access resource of an iSCSI Target. The library is fully async with regards to iscsi commands and scsi tasks, but a sync layer is also provided for ease of use for simpler applications. %package -n %{realname}-utils License: GPL-2.0 Group: Productivity/Networking/Other Summary: CLI utilities for %{realname} Provides: isci-utils %description -n %{realname}-utils Some utilities for %{realname} %package -n %{realname}-devel License: LGPL-2.1 Group: Development/Languages/C and C++ Summary: Development files for %{name} Requires: %{name} = %{version}-%{release} Provides: %{name}-devel = %{version}-%{release} %description -n %{realname}-devel Development files for %{name} # Preparation step (unpackung and patching if necessary) %prep %setup -q -n %{realname}-%{version} test -d m4 || mkdir m4 autoreconf -f -i %build _CFLAGS='%{optflags} %{?gcc_lto}' _LDFLAGS='-Wl,--as-needed -Wl,--strip-all %{?gcc_lto}' %configure \ --disable-static \ --disable-werror \ CFLAGS="$_CFLAGS" \ LDFLAGS="$_LDFLAGS" %{__make} %{?_smp_mflags} %install %{__make} install DESTDIR=%{buildroot} %{__mv} %{buildroot}%{_bindir}/ld_iscsi.so %{buildroot}%{_libdir}/ %clean [ "%{buildroot}" != "/" ] && %{__rm} -rf %{buildroot} %files %defattr(-,root,root) %doc COPYING LICENCE-* README %{_libdir}/%{realname}.so.%{?so_ver}* %{_libdir}/ld_iscsi.so %files -n %{realname}-utils %defattr(-,root,root) %{_bindir}/* %{_mandir}/man1/* # Development stuff %files -n %{realname}-devel %defattr(-,root,root) %{_libdir}/pkgconfig/%{realname}.pc %dir %{_includedir}/iscsi/ %{_includedir}/iscsi/*.h %{_libdir}/%{realname}.so %exclude %{_libdir}/*.la %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor