diff --git a/open-isns.changes b/open-isns.changes index 8ee3c69..d52660e 100644 --- a/open-isns.changes +++ b/open-isns.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Dec 9 23:05:00 UTC 2015 - lduncan@suse.com + +- Updated spec file to install hdrs and library file + ------------------------------------------------------------------- Wed Dec 9 02:56:43 UTC 2015 - lduncan@suse.com diff --git a/open-isns.spec b/open-isns.spec index f7559a5..42d5e4a 100644 --- a/open-isns.spec +++ b/open-isns.spec @@ -29,8 +29,8 @@ Patch1: %{name}-Install-isns_config.5.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: autoconf BuildRequires: glibc-devel -BuildRequires: systemd-rpm-macros BuildRequires: openssl-devel +BuildRequires: systemd-rpm-macros %{?systemd_requires} %description @@ -44,6 +44,14 @@ 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. +%package -n open-isns-devel +Summary: Development files for open-isns +Group: Development/Libraries/C and C++ +Requires: open-isns = %{version} + +%description -n open-isns-devel +Files to develop an application using the open-isns library. + %prep %setup -n %{name}-%{version} %patch1 -p1 @@ -61,6 +69,8 @@ if [ ! -d ${RPM_BUILD_ROOT}/usr/sbin ] ; then fi ln -sf /usr/sbin/service ${RPM_BUILD_ROOT}/usr/sbin/rcisnsd install -vD %{S:1} %{buildroot}/etc/sysconfig/SuSEfirewall2.d/services/isns +%{__make} DESTDIR=${RPM_BUILD_ROOT} install_hdrs +%{__make} DESTDIR=${RPM_BUILD_ROOT} install_lib %post %{service_add_post isnsd.socket isnsd.service} @@ -93,4 +103,18 @@ install -vD %{S:1} %{buildroot}/etc/sysconfig/SuSEfirewall2.d/services/isns %{_unitdir}/isnsd.service %{_unitdir}/isnsd.socket +%files -n open-isns-devel +%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 + %changelog