dhcpcd/dhcpcd.spec

73 lines
1.9 KiB
RPMSpec
Raw Normal View History

2016-02-19 08:54:22 +00:00
Name: dhcpcd
2016-08-10 09:54:16 +00:00
Version: 6.11.2
Release: 1%{?dist}
2016-02-19 08:54:22 +00:00
Summary: A minimalistic network configuration daemon with DHCPv4, rdisc and DHCPv6 support
License: BSD
URL: http://roy.marples.name/projects/%{name}/index
Source0: http://roy.marples.name/downloads/%{name}/%{name}-%{version}.tar.xz
Source1: %{name}.service
Source2: %{name}@.service
BuildRequires: systemd
BuildRequires: ntp
BuildRequires: systemd-devel
BuildRequires: ypbind
Requires(post): systemd
Requires(preun): systemd
Requires(postun): systemd
%description
The dhcpcd package provides a minimalistic network configuration daemon
that supports IPv4 and IPv6 configuration including configuration discovery
through NDP, DHCPv4 and DHCPv6 protocols.
%prep
%setup -q
%build
%configure \
--dbdir=/var/lib/%{name}
make %{?_smp_mflags}
%check
make test
%install
export BINMODE=755
%make_install
find %{buildroot} -name '*.la' -delete -print
install -D -m 644 %{SOURCE1} %{buildroot}%{_unitdir}/%{name}.service
install -D -m 644 %{SOURCE2} %{buildroot}%{_unitdir}/%{name}@.service
install -d %{buildroot}%{_sharedstatedir}/%{_name}
%post
%systemd_post dhcpcd.service
%preun
%systemd_preun dhcpcd.service
%postun
%systemd_postun_with_restart dhcpcd.service
%files
%config(noreplace) %{_sysconfdir}/%{name}.conf
%{_datadir}/%{name}/hooks/10-wpa_supplicant
%{_datadir}/%{name}/hooks/15-timezone
%{_datadir}/%{name}/hooks/29-lookup-hostname
%{_datadir}/%{name}/hooks/50-yp.conf
%{_libdir}/%{name}
%{_libexecdir}/%{name}-hooks
%{_libexecdir}/%{name}-run-hooks
%{_mandir}/man5/%{name}.conf.5.gz
%{_mandir}/man8/%{name}-run-hooks.8.gz
%{_mandir}/man8/%{name}.8.gz
%{_sbindir}/%{name}
%{_unitdir}/%{name}.service
%{_unitdir}/%{name}@.service
%{_sharedstatedir}/%{name}
%changelog
2016-08-10 09:54:16 +00:00
* Wed Aug 10 2016 Pavel Šimerda <psimerda@redhat.com> - 6.11.2-1
- New version 6.11.2
2016-02-19 08:54:22 +00:00
* Fri Feb 19 2016 Pavel Šimerda <psimerda@redhat.com> - 6.10.1-4
- initial version