2015-12-09 12:46:09 +01:00
|
|
|
#
|
|
|
|
# spec file for package open-isns
|
|
|
|
#
|
2023-09-05 21:01:32 +02:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2015-12-09 12:46:09 +01:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2019-04-28 17:50:55 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2015-12-09 12:46:09 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2023-09-05 21:01:32 +02:00
|
|
|
%if 0%{?suse_version} >= 1600
|
|
|
|
%bcond_with slp
|
|
|
|
%else
|
|
|
|
%bcond_without slp
|
|
|
|
%endif
|
|
|
|
|
2015-12-09 12:46:09 +01:00
|
|
|
Name: open-isns
|
|
|
|
Summary: Partial Implementation of iSNS iSCSI registration
|
2018-10-25 20:31:00 +02:00
|
|
|
License: LGPL-2.1-or-later
|
2017-08-10 00:19:01 +02:00
|
|
|
Group: System/Kernel
|
2022-09-09 00:52:14 +02:00
|
|
|
Version: 0.102
|
2015-12-09 12:46:09 +01:00
|
|
|
Release: 0
|
2018-10-25 20:31:00 +02:00
|
|
|
Source: %{name}-%{version}.tar.xz
|
2022-09-09 00:52:14 +02:00
|
|
|
Patch1: Quiet-a-commpiler-warning.patch
|
2020-12-04 21:06:26 +01:00
|
|
|
URL: https://github.com/open-iscsi/%{name}
|
2015-12-09 12:46:09 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
BuildRequires: autoconf
|
2015-12-18 21:22:59 +01:00
|
|
|
BuildRequires: automake
|
2015-12-09 12:46:09 +01:00
|
|
|
BuildRequires: glibc-devel
|
2015-12-18 21:22:59 +01:00
|
|
|
BuildRequires: make
|
2022-09-09 00:52:14 +02:00
|
|
|
BuildRequires: meson >= 0.55.0
|
2023-09-05 21:01:32 +02:00
|
|
|
%if %{with slp}
|
2022-09-09 00:52:14 +02:00
|
|
|
BuildRequires: openslp-devel
|
2023-09-05 21:01:32 +02:00
|
|
|
%endif
|
2015-12-09 12:46:09 +01:00
|
|
|
BuildRequires: openssl-devel
|
2015-12-10 20:51:26 +01:00
|
|
|
BuildRequires: systemd-rpm-macros
|
2015-12-09 12:46:09 +01:00
|
|
|
%{?systemd_requires}
|
2015-12-18 21:22:59 +01:00
|
|
|
Requires: coreutils
|
2020-12-04 21:15:52 +01:00
|
|
|
Recommends: open-iscsi
|
2015-12-09 12:46:09 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
This is a partial implementation of the iSNS protocol (see below),
|
|
|
|
which supplies directory services for iSCSI initiators and targets.
|
|
|
|
|
|
|
|
The iSNS protocol is specified in
|
|
|
|
[RFC 4171](http://tools.ietf.org/html/rfc4171) and its purpose is to
|
|
|
|
make easier to discover, manage, and configure iSCSI devices. With
|
|
|
|
iSNS, iSCSI targets can be registered to a central iSNS server and
|
|
|
|
initiators can be configured to discover the targets by asking the
|
|
|
|
iSNS server.
|
|
|
|
|
2022-09-09 00:52:14 +02:00
|
|
|
%package devel
|
2015-12-10 20:51:26 +01:00
|
|
|
Summary: Development files for open-isns
|
|
|
|
Group: Development/Libraries/C and C++
|
2022-09-09 00:52:14 +02:00
|
|
|
Requires: %{name} = %{version}
|
2015-12-10 20:51:26 +01:00
|
|
|
|
2022-09-09 00:52:14 +02:00
|
|
|
%description devel
|
2015-12-10 20:51:26 +01:00
|
|
|
Files to develop an application using the open-isns library.
|
|
|
|
|
2015-12-09 12:46:09 +01:00
|
|
|
%prep
|
2022-09-09 00:52:14 +02:00
|
|
|
%autosetup -p1
|
2015-12-09 12:46:09 +01:00
|
|
|
|
|
|
|
%build
|
2019-10-28 18:53:30 +01:00
|
|
|
%global _lto_cflags %{?_lto_cflags} -ffat-lto-objects
|
2023-09-05 21:01:32 +02:00
|
|
|
%meson --default-library=both \
|
|
|
|
%if %{with slp}
|
|
|
|
-Dslp=enabled
|
|
|
|
%else
|
|
|
|
-Dslp=disabled
|
|
|
|
%endif
|
2022-09-09 00:52:14 +02:00
|
|
|
%meson_build
|
2015-12-09 12:46:09 +01:00
|
|
|
|
|
|
|
%install
|
2022-09-09 00:52:14 +02:00
|
|
|
%meson_install
|
2017-08-10 00:19:01 +02:00
|
|
|
ln -sf /usr/sbin/service %{buildroot}/usr/sbin/rcisnsd
|
2015-12-09 12:46:09 +01:00
|
|
|
|
|
|
|
%post
|
2022-09-09 00:52:14 +02:00
|
|
|
%{run_ldconfig}
|
2015-12-09 12:46:09 +01:00
|
|
|
%{service_add_post isnsd.socket isnsd.service}
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%{service_del_postun isnsd.socket isnsd.service}
|
2022-09-09 00:52:14 +02:00
|
|
|
%{run_ldconfig}
|
2015-12-09 12:46:09 +01:00
|
|
|
|
|
|
|
%pre
|
|
|
|
%{service_add_pre isnsd.socket isnsd.service}
|
|
|
|
|
|
|
|
%preun
|
|
|
|
%{service_del_preun isnsd.socket isnsd.service}
|
|
|
|
|
2022-09-09 00:52:14 +02:00
|
|
|
%post devel -p %{run_ldconfig}
|
|
|
|
%postun devel -p %{run_ldconfig}
|
|
|
|
|
2015-12-09 12:46:09 +01:00
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_sbindir}/isnsd
|
|
|
|
%{_sbindir}/isnsadm
|
|
|
|
%{_sbindir}/isnsdd
|
|
|
|
%dir %{_sysconfdir}/isns
|
|
|
|
%attr(0600,root,root) %config(noreplace) %{_sysconfdir}/isns/isnsd.conf
|
|
|
|
%attr(0600,root,root) %config(noreplace) %{_sysconfdir}/isns/isnsadm.conf
|
|
|
|
%attr(0600,root,root) %config(noreplace) %{_sysconfdir}/isns/isnsdd.conf
|
|
|
|
%{_sbindir}/rcisnsd
|
2020-12-04 21:06:26 +01:00
|
|
|
%license COPYING
|
|
|
|
%doc HACKING README TODO
|
2015-12-09 12:46:09 +01:00
|
|
|
%doc %{_mandir}/man8/isnsd.8%{?ext_man}
|
|
|
|
%doc %{_mandir}/man8/isnsadm.8%{?ext_man}
|
|
|
|
%doc %{_mandir}/man8/isnsdd.8%{?ext_man}
|
|
|
|
%doc %{_mandir}/man5/isns_config.5%{?ext_man}
|
|
|
|
%{_unitdir}/isnsd.service
|
|
|
|
%{_unitdir}/isnsd.socket
|
2022-09-09 00:52:14 +02:00
|
|
|
%{_libdir}/libisns.so.0
|
2015-12-09 12:46:09 +01:00
|
|
|
|
2022-09-09 00:52:14 +02:00
|
|
|
%files devel
|
2015-12-10 20:51:26 +01:00
|
|
|
%defattr(-,root,root)
|
|
|
|
%dir %{_includedir}/libisns
|
|
|
|
%{_includedir}/libisns/attrs.h
|
|
|
|
%{_includedir}/libisns/buffer.h
|
|
|
|
%{_includedir}/libisns/isns.h
|
|
|
|
%{_includedir}/libisns/isns-proto.h
|
|
|
|
%{_includedir}/libisns/message.h
|
|
|
|
%{_includedir}/libisns/paths.h
|
|
|
|
%{_includedir}/libisns/source.h
|
|
|
|
%{_includedir}/libisns/types.h
|
|
|
|
%{_includedir}/libisns/util.h
|
|
|
|
%{_libdir}/libisns.a
|
2022-09-09 00:52:14 +02:00
|
|
|
%{_libdir}/libisns.so
|
|
|
|
%{_libdir}/pkgconfig/libisns.pc
|
2015-12-10 20:51:26 +01:00
|
|
|
|
2015-12-09 12:46:09 +01:00
|
|
|
%changelog
|