Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[packaging] Add libiphb-doc subpackage. Contributes to JB#24119
Signed-off-by: Tomi Leppänen <tomi.leppanen@jolla.com>
  • Loading branch information
Tomin1 committed Jan 17, 2019
1 parent ede7720 commit 5426a42
Showing 1 changed file with 19 additions and 7 deletions.
26 changes: 19 additions & 7 deletions rpm/libiphb.spec
Expand Up @@ -36,6 +36,15 @@ Requires: %{name} = %{version}-%{release}
Tests package to test IP Heartbeat functionality.


%package doc
Summary: Documentation for %{name}
Group: Documentation
Requires: %{name} = %{version}-%{release}

%description doc
%{summary}.


%prep
%setup -q -n %{name}-%{version}

Expand All @@ -53,26 +62,29 @@ make %{?_smp_mflags}
rm -rf %{buildroot}
%make_install

mkdir -p %{buildroot}%{_docdir}/%{name}-%{version}
install -m0644 -t %{buildroot}%{_docdir}/%{name}-%{version} \
AUTHORS INSTALL README NEWS ChangeLog

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files
%defattr(-,root,root,-)
%{_libdir}/libiphb.so.*
%doc COPYING AUTHORS INSTALL README NEWS ChangeLog
%license COPYING

%files devel
%defattr(-,root,root,-)
%attr(644,root,root)%{_includedir}/iphbd/*
%{_libdir}/libiphb.so
%{_libdir}/pkgconfig/libiphb.pc
%doc COPYING

%files tests
%defattr(-,root,root,-)
/opt/tests/%{name}-tests/bin/hbtest
/opt/tests/%{name}-tests/bin/hbtest2
/opt/tests/%{name}-tests/bin/hbtest3
/opt/tests/%{name}-tests/tests.xml
%doc COPYING
/opt/tests/%{name}-tests

%files doc
%defattr(-,root,root,-)
%{_docdir}/%{name}-%{version}

0 comments on commit 5426a42

Please sign in to comment.