undo unnecessary %{}ification
OBS-URL: https://build.opensuse.org/package/show/network:dhcp/kea?expand=0&rev=8
This commit is contained in:
parent
04c738d21b
commit
6c0b153f10
164
kea.spec
164
kea.spec
@ -29,8 +29,8 @@ License: MPL-2.0
|
|||||||
Group: Productivity/Networking/Boot/Servers
|
Group: Productivity/Networking/Boot/Servers
|
||||||
URL: https://kea.isc.org/
|
URL: https://kea.isc.org/
|
||||||
#Git-Clone: git://github.com/isc-projects/kea
|
#Git-Clone: git://github.com/isc-projects/kea
|
||||||
Source: http://ftp.isc.org/isc/kea/%{version}/kea-%{version}.tar.gz
|
Source: http://ftp.isc.org/isc/kea/%version/kea-%version.tar.gz
|
||||||
Source2: http://ftp.isc.org/isc/kea/%{version}/kea-%{version}.tar.gz.asc
|
Source2: http://ftp.isc.org/isc/kea/%version/kea-%version.tar.gz.asc
|
||||||
# https://www.isc.org/downloads/software-support-policy/openpgp-key/
|
# https://www.isc.org/downloads/software-support-policy/openpgp-key/
|
||||||
Source3: kea.keyring
|
Source3: kea.keyring
|
||||||
BuildRequires: autoconf >= 2.59
|
BuildRequires: autoconf >= 2.59
|
||||||
@ -44,7 +44,7 @@ BuildRequires: postgresql-devel
|
|||||||
BuildRequires: xz
|
BuildRequires: xz
|
||||||
BuildRequires: pkgconfig(libcrypto)
|
BuildRequires: pkgconfig(libcrypto)
|
||||||
Requires(pre): shadow
|
Requires(pre): shadow
|
||||||
Suggests: %{name}-hooks = %{version}
|
Suggests: %name-hooks = %version
|
||||||
%if 0%{with regen_files}
|
%if 0%{with regen_files}
|
||||||
BuildRequires: bison >= 3.0
|
BuildRequires: bison >= 3.0
|
||||||
BuildRequires: docbook-xsl-stylesheets
|
BuildRequires: docbook-xsl-stylesheets
|
||||||
@ -272,28 +272,28 @@ Kea's database library for PostgreSQL.
|
|||||||
%package devel
|
%package devel
|
||||||
Summary: Development files for the Kea DHCP server
|
Summary: Development files for the Kea DHCP server
|
||||||
Group: Development/Libraries/C and C++
|
Group: Development/Libraries/C and C++
|
||||||
Requires: libkea-asiodns0 = %{version}
|
Requires: libkea-asiodns0 = %version
|
||||||
Requires: libkea-asiolink7 = %{version}
|
Requires: libkea-asiolink7 = %version
|
||||||
Requires: libkea-cc7 = %{version}
|
Requires: libkea-cc7 = %version
|
||||||
Requires: libkea-cfgclient6 = %{version}
|
Requires: libkea-cfgclient6 = %version
|
||||||
Requires: libkea-cryptolink4 = %{version}
|
Requires: libkea-cryptolink4 = %version
|
||||||
Requires: libkea-dhcp++11 = %{version}
|
Requires: libkea-dhcp++11 = %version
|
||||||
Requires: libkea-dhcp_ddns1 = %{version}
|
Requires: libkea-dhcp_ddns1 = %version
|
||||||
Requires: libkea-dhcpsrv14 = %{version}
|
Requires: libkea-dhcpsrv14 = %version
|
||||||
Requires: libkea-dns++3 = %{version}
|
Requires: libkea-dns++3 = %version
|
||||||
Requires: libkea-eval10 = %{version}
|
Requires: libkea-eval10 = %version
|
||||||
Requires: libkea-exceptions0 = %{version}
|
Requires: libkea-exceptions0 = %version
|
||||||
Requires: libkea-hooks7 = %{version}
|
Requires: libkea-hooks7 = %version
|
||||||
Requires: libkea-http4 = %{version}
|
Requires: libkea-http4 = %version
|
||||||
Requires: libkea-log3 = %{version}
|
Requires: libkea-log3 = %version
|
||||||
Requires: libkea-process3 = %{version}
|
Requires: libkea-process3 = %version
|
||||||
Requires: libkea-stats2 = %{version}
|
Requires: libkea-stats2 = %version
|
||||||
Requires: libkea-threads2 = %{version}
|
Requires: libkea-threads2 = %version
|
||||||
Requires: libkea-util-io0 = %{version}
|
Requires: libkea-util-io0 = %version
|
||||||
Requires: libkea-util5 = %{version}
|
Requires: libkea-util5 = %version
|
||||||
Requires: libkea-database1 = %{version}
|
Requires: libkea-database1 = %version
|
||||||
Requires: libkea-mysql0 = %{version}
|
Requires: libkea-mysql0 = %version
|
||||||
Requires: libkea-pgsql0 = %{version}
|
Requires: libkea-pgsql0 = %version
|
||||||
# Bundy DHCP and Kea share the same origin, so conflict
|
# Bundy DHCP and Kea share the same origin, so conflict
|
||||||
Conflicts: otheproviders(pkgconfig(dns++))
|
Conflicts: otheproviders(pkgconfig(dns++))
|
||||||
|
|
||||||
@ -318,38 +318,38 @@ autoreconf -fi
|
|||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
b=%{buildroot}
|
b=%buildroot
|
||||||
%make_install
|
%make_install
|
||||||
find %{buildroot} -type f -name "*.la" -delete -print
|
find %buildroot -type f -name "*.la" -delete -print
|
||||||
mkdir -p "$b/%{_unitdir}" "$b/%{_prefix}/lib/tmpfiles.d"
|
mkdir -p "$b/%_unitdir" "$b/%_prefix/lib/tmpfiles.d"
|
||||||
ls -l "$b/%{_unitdir}/" "$b/%{_prefix}/lib/tmpfiles.d/" || :
|
ls -l "$b/%_unitdir/" "$b/%_prefix/lib/tmpfiles.d/" || :
|
||||||
cat <<-EOF >"$b/%{_unitdir}/kea.service"
|
cat <<-EOF >"$b/%_unitdir/kea.service"
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=ISC Kea DHCP server
|
Description=ISC Kea DHCP server
|
||||||
Before=multi-user.target
|
Before=multi-user.target
|
||||||
After=remote-fs.target network.target nss-lookup.target time-sync.target ldap.service ndsd.service
|
After=remote-fs.target network.target nss-lookup.target time-sync.target ldap.service ndsd.service
|
||||||
[Service]
|
[Service]
|
||||||
Type=forking
|
Type=forking
|
||||||
Environment=KEA_PIDFILE_DIR=%{_rundir}/%{name}
|
Environment=KEA_PIDFILE_DIR=%_rundir/%name
|
||||||
ExecStart=%{_sbindir}/keactrl start
|
ExecStart=%_sbindir/keactrl start
|
||||||
ExecReload=%{_sbindir}/keactrl reload
|
ExecReload=%_sbindir/keactrl reload
|
||||||
ExecStop=%{_sbindir}/keactrl stop
|
ExecStop=%_sbindir/keactrl stop
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
Alias=dhcp-server.service
|
Alias=dhcp-server.service
|
||||||
EOF
|
EOF
|
||||||
cat <<-EOF >"$b/%{_prefix}/lib/tmpfiles.d/kea.conf"
|
cat <<-EOF >"$b/%_prefix/lib/tmpfiles.d/kea.conf"
|
||||||
d /run/kea 0775 keadhcp keadhcp -
|
d /run/kea 0775 keadhcp keadhcp -
|
||||||
EOF
|
EOF
|
||||||
perl -i -pe 's{%{_localstatedir}/run}{/run};s{%{_localstatedir}/log/kea-}{%{_localstatedir}/log/kea/}' \
|
perl -i -pe 's{%_localstatedir/run}{/run};s{%_localstatedir/log/kea-}{%_localstatedir/log/kea/}' \
|
||||||
"$b/%{_sysconfdir}/kea"/*.conf
|
"$b/%_sysconfdir/kea"/*.conf
|
||||||
mkdir -p "$b%{_localstatedir}/log/kea"
|
mkdir -p "$b%_localstatedir/log/kea"
|
||||||
ln -s "%{_sbindir}/service" "%{buildroot}/%{_sbindir}/rc%{name}"
|
ln -s "%_sbindir/service" "%buildroot/%_sbindir/rc%name"
|
||||||
|
|
||||||
%pre
|
%pre
|
||||||
getent group keadhcp >/dev/null || groupadd -r keadhcp
|
getent group keadhcp >/dev/null || groupadd -r keadhcp
|
||||||
getent passwd keadhcp >/dev/null || useradd -r -N -M -g keadhcp \
|
getent passwd keadhcp >/dev/null || useradd -r -N -M -g keadhcp \
|
||||||
-s /sbin/nologin -d %{_localstatedir}/lib/kea -c "Kea DHCP server" \
|
-s /sbin/nologin -d %_localstatedir/lib/kea -c "Kea DHCP server" \
|
||||||
keadhcp
|
keadhcp
|
||||||
systemd-tmpfiles --create kea.conf || :
|
systemd-tmpfiles --create kea.conf || :
|
||||||
%service_add_pre kea.service
|
%service_add_pre kea.service
|
||||||
@ -409,95 +409,95 @@ systemd-tmpfiles --create kea.conf || :
|
|||||||
%postun -n libkea-pgsql0 -p /sbin/ldconfig
|
%postun -n libkea-pgsql0 -p /sbin/ldconfig
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%dir %{_sysconfdir}/kea
|
%dir %_sysconfdir/kea
|
||||||
%config(noreplace) %{_sysconfdir}/kea/*.conf
|
%config(noreplace) %_sysconfdir/kea/*.conf
|
||||||
%{_datadir}/doc/kea/
|
%_datadir/doc/kea/
|
||||||
%{_mandir}/man8/*.8%{?ext_man}
|
%_mandir/man8/*.8%{?ext_man}
|
||||||
%{_bindir}/kea*
|
%_bindir/kea*
|
||||||
%{_sbindir}/rckea
|
%_sbindir/rckea
|
||||||
%{_sbindir}/kea*
|
%_sbindir/kea*
|
||||||
%{_sbindir}/perfdhcp
|
%_sbindir/perfdhcp
|
||||||
%{_datadir}/kea/
|
%_datadir/kea/
|
||||||
%{_unitdir}/*.service
|
%_unitdir/*.service
|
||||||
%{_prefix}/lib/tmpfiles.d/
|
%_prefix/lib/tmpfiles.d/
|
||||||
%attr(0775,keadhcp,keadhcp) %{_localstatedir}/log/kea/
|
%attr(0775,keadhcp,keadhcp) %_localstatedir/log/kea/
|
||||||
%ghost %dir %{_rundir}/%{name}
|
%ghost %dir %_rundir/%name
|
||||||
|
|
||||||
%files hooks
|
%files hooks
|
||||||
%dir %{_libdir}/hooks
|
%dir %_libdir/hooks
|
||||||
%{_libdir}/hooks/libdhcp_stat_cmds.so
|
%_libdir/hooks/libdhcp_stat_cmds.so
|
||||||
%{_libdir}/hooks/libdhcp_lease_cmds.so
|
%_libdir/hooks/libdhcp_lease_cmds.so
|
||||||
%{_libdir}/hooks/libdhcp_ha.so
|
%_libdir/hooks/libdhcp_ha.so
|
||||||
|
|
||||||
%files -n libkea-asiodns0
|
%files -n libkea-asiodns0
|
||||||
%{_libdir}/libkea-asiodns.so.0*
|
%_libdir/libkea-asiodns.so.0*
|
||||||
|
|
||||||
%files -n libkea-asiolink7
|
%files -n libkea-asiolink7
|
||||||
%{_libdir}/libkea-asiolink.so.7*
|
%_libdir/libkea-asiolink.so.7*
|
||||||
|
|
||||||
%files -n libkea-cc7
|
%files -n libkea-cc7
|
||||||
%{_libdir}/libkea-cc.so.7*
|
%_libdir/libkea-cc.so.7*
|
||||||
|
|
||||||
%files -n libkea-cfgclient6
|
%files -n libkea-cfgclient6
|
||||||
%{_libdir}/libkea-cfgclient.so.6*
|
%_libdir/libkea-cfgclient.so.6*
|
||||||
|
|
||||||
%files -n libkea-cryptolink4
|
%files -n libkea-cryptolink4
|
||||||
%{_libdir}/libkea-cryptolink.so.4*
|
%_libdir/libkea-cryptolink.so.4*
|
||||||
|
|
||||||
%files -n libkea-dhcp++11
|
%files -n libkea-dhcp++11
|
||||||
%{_libdir}/libkea-dhcp++.so.11*
|
%_libdir/libkea-dhcp++.so.11*
|
||||||
|
|
||||||
%files -n libkea-dhcp_ddns1
|
%files -n libkea-dhcp_ddns1
|
||||||
%{_libdir}/libkea-dhcp_ddns.so.1*
|
%_libdir/libkea-dhcp_ddns.so.1*
|
||||||
|
|
||||||
%files -n libkea-dhcpsrv14
|
%files -n libkea-dhcpsrv14
|
||||||
%{_libdir}/libkea-dhcpsrv.so.14*
|
%_libdir/libkea-dhcpsrv.so.14*
|
||||||
|
|
||||||
%files -n libkea-dns++3
|
%files -n libkea-dns++3
|
||||||
%{_libdir}/libkea-dns++.so.3*
|
%_libdir/libkea-dns++.so.3*
|
||||||
|
|
||||||
%files -n libkea-eval10
|
%files -n libkea-eval10
|
||||||
%{_libdir}/libkea-eval.so.10*
|
%_libdir/libkea-eval.so.10*
|
||||||
|
|
||||||
%files -n libkea-exceptions0
|
%files -n libkea-exceptions0
|
||||||
%{_libdir}/libkea-exceptions.so.0*
|
%_libdir/libkea-exceptions.so.0*
|
||||||
|
|
||||||
%files -n libkea-hooks7
|
%files -n libkea-hooks7
|
||||||
%{_libdir}/libkea-hooks.so.7*
|
%_libdir/libkea-hooks.so.7*
|
||||||
|
|
||||||
%files -n libkea-http4
|
%files -n libkea-http4
|
||||||
%{_libdir}/libkea-http.so.4*
|
%_libdir/libkea-http.so.4*
|
||||||
|
|
||||||
%files -n libkea-log3
|
%files -n libkea-log3
|
||||||
%{_libdir}/libkea-log.so.3*
|
%_libdir/libkea-log.so.3*
|
||||||
|
|
||||||
%files -n libkea-stats2
|
%files -n libkea-stats2
|
||||||
%{_libdir}/libkea-stats.so.2*
|
%_libdir/libkea-stats.so.2*
|
||||||
|
|
||||||
%files -n libkea-process3
|
%files -n libkea-process3
|
||||||
%{_libdir}/libkea-process.so.3*
|
%_libdir/libkea-process.so.3*
|
||||||
|
|
||||||
%files -n libkea-threads2
|
%files -n libkea-threads2
|
||||||
%{_libdir}/libkea-threads.so.2*
|
%_libdir/libkea-threads.so.2*
|
||||||
|
|
||||||
%files -n libkea-util-io0
|
%files -n libkea-util-io0
|
||||||
%{_libdir}/libkea-util-io.so.0*
|
%_libdir/libkea-util-io.so.0*
|
||||||
|
|
||||||
%files -n libkea-util5
|
%files -n libkea-util5
|
||||||
%{_libdir}/libkea-util.so.5*
|
%_libdir/libkea-util.so.5*
|
||||||
|
|
||||||
%files -n libkea-database1
|
%files -n libkea-database1
|
||||||
%{_libdir}/libkea-database.so.1*
|
%_libdir/libkea-database.so.1*
|
||||||
|
|
||||||
%files -n libkea-mysql0
|
%files -n libkea-mysql0
|
||||||
%{_libdir}/libkea-mysql.so.0*
|
%_libdir/libkea-mysql.so.0*
|
||||||
|
|
||||||
%files -n libkea-pgsql0
|
%files -n libkea-pgsql0
|
||||||
%{_libdir}/libkea-pgsql.so.0*
|
%_libdir/libkea-pgsql.so.0*
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%{_includedir}/kea/
|
%_includedir/kea/
|
||||||
%{_libdir}/pkgconfig/*.pc
|
%_libdir/pkgconfig/*.pc
|
||||||
%{_libdir}/libkea*.so
|
%_libdir/libkea*.so
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
x
Reference in New Issue
Block a user