kea.spec: Fix missing _pkgdocdir ownership and other small fixes
This commit is contained in:
parent
8e1f3500ef
commit
2a3ef6d321
28
kea.spec
28
kea.spec
@ -1,3 +1,4 @@
|
|||||||
|
# TODO: no support for netconf/sysconf yet
|
||||||
%global sysrepo 0
|
%global sysrepo 0
|
||||||
|
|
||||||
#%%global prever P1
|
#%%global prever P1
|
||||||
@ -119,8 +120,8 @@ This package contains shared libraries used by Kea DHCP server.
|
|||||||
%if 0%{?fedora} || 0%{?rhel} > 8
|
%if 0%{?fedora} || 0%{?rhel} > 8
|
||||||
%{gpgverify} --keyring='%{S:2}' --signature='%{S:1}' --data='%{S:0}'
|
%{gpgverify} --keyring='%{S:2}' --signature='%{S:1}' --data='%{S:0}'
|
||||||
%endif
|
%endif
|
||||||
rm -rf doc/sphinx/_build
|
|
||||||
%autosetup -p1 -n kea-%{version}%{?prever:-%{prever}}
|
%autosetup -p1 -n kea-%{version}%{?prever:-%{prever}}
|
||||||
|
rm -rf doc/sphinx/_build
|
||||||
|
|
||||||
# to be able to build on ppc64(le)
|
# to be able to build on ppc64(le)
|
||||||
# https://sourceforge.net/p/flex/bugs/197
|
# https://sourceforge.net/p/flex/bugs/197
|
||||||
@ -160,6 +161,11 @@ autoreconf --verbose --force --install
|
|||||||
# Get rid of .la files
|
# Get rid of .la files
|
||||||
find %{buildroot} -type f -name "*.la" -delete -print
|
find %{buildroot} -type f -name "*.la" -delete -print
|
||||||
|
|
||||||
|
%if !%{sysrepo}
|
||||||
|
# remove netconf files
|
||||||
|
rm %{buildroot}%{_mandir}/man8/kea-netconf.8
|
||||||
|
%endif
|
||||||
|
|
||||||
# Install systemd units
|
# Install systemd units
|
||||||
install -Dpm 0644 %{S:3} %{buildroot}%{_unitdir}/kea-dhcp4.service
|
install -Dpm 0644 %{S:3} %{buildroot}%{_unitdir}/kea-dhcp4.service
|
||||||
install -Dpm 0644 %{S:4} %{buildroot}%{_unitdir}/kea-dhcp6.service
|
install -Dpm 0644 %{S:4} %{buildroot}%{_unitdir}/kea-dhcp6.service
|
||||||
@ -218,7 +224,9 @@ install -Dpm 0644 %{S:7} %{buildroot}%{_tmpfilesdir}/kea.conf
|
|||||||
%{_mandir}/man8/kea-dhcp4.8*
|
%{_mandir}/man8/kea-dhcp4.8*
|
||||||
%{_mandir}/man8/kea-dhcp6.8*
|
%{_mandir}/man8/kea-dhcp6.8*
|
||||||
%{_mandir}/man8/kea-lfc.8*
|
%{_mandir}/man8/kea-lfc.8*
|
||||||
|
%if %{sysrepo}
|
||||||
%{_mandir}/man8/kea-netconf.8*
|
%{_mandir}/man8/kea-netconf.8*
|
||||||
|
%endif
|
||||||
%{_mandir}/man8/kea-shell.8*
|
%{_mandir}/man8/kea-shell.8*
|
||||||
%{_mandir}/man8/keactrl.8*
|
%{_mandir}/man8/keactrl.8*
|
||||||
%{_mandir}/man8/perfdhcp.8*
|
%{_mandir}/man8/perfdhcp.8*
|
||||||
@ -226,15 +234,15 @@ install -Dpm 0644 %{S:7} %{buildroot}%{_tmpfilesdir}/kea.conf
|
|||||||
%{_tmpfilesdir}/kea.conf
|
%{_tmpfilesdir}/kea.conf
|
||||||
|
|
||||||
%files doc
|
%files doc
|
||||||
%{_pkgdocdir}
|
%dir %{_pkgdocdir}
|
||||||
%{_pkgdocdir}/AUTHORS
|
%doc %{_pkgdocdir}/AUTHORS
|
||||||
%{_pkgdocdir}/ChangeLog
|
%doc %{_pkgdocdir}/ChangeLog
|
||||||
%{_pkgdocdir}/README
|
%doc %{_pkgdocdir}/README
|
||||||
%{_pkgdocdir}/examples
|
%doc %{_pkgdocdir}/examples
|
||||||
%{_pkgdocdir}/CONTRIBUTING.md
|
%doc %{_pkgdocdir}/CONTRIBUTING.md
|
||||||
%{_pkgdocdir}/platforms.rst
|
%doc %{_pkgdocdir}/platforms.rst
|
||||||
%{_pkgdocdir}/code_of_conduct.md
|
%doc %{_pkgdocdir}/code_of_conduct.md
|
||||||
%{_pkgdocdir}/html
|
%doc %{_pkgdocdir}/html
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%{_includedir}/kea
|
%{_includedir}/kea
|
||||||
|
Loading…
x
Reference in New Issue
Block a user