Name: bird Version: 2.0.2 Release: 3%{?dist} License: GPL-2.0+ Group: Productivity/Networking/Routing URL: http://bird.network.cz/ Summary: The Internet Routing Daemon BuildRequires: gcc flex bison ncurses-devel readline-devel sed systemd Source0: ftp://bird.network.cz/pub/bird/%{name}-%{version}.tar.gz Source1: %{name}.service Source2: %{name}-tmpfiles.conf %description BIRD is dynamic routing daemon supporting IPv4 and IPv6 versions of routing protocols BGP, RIP and OSPF. %package doc Summary: BIRD Internet Routing Daemon Group: System Environment/Daemons BuildRequires: linuxdoc-tools %description doc BIRD is dynamic routing daemon supporting IPv4 and IPv6 versions of routing protocols BGP, RIP and OSPF. This package contains documentation. %prep %setup -q %build %configure --prefix=%{_prefix} \ --sysconfdir=%{_sysconfdir} \ --localstatedir=%{_localstatedir} make %{?_smp_mflags} doc/sgml2html doc/bird.sgml %install make install DESTDIR=%{buildroot} install -d %{buildroot}%{_unitdir} install -Dpm 0644 %{SOURCE1} %{buildroot}%{_unitdir}/%{name}.service install -Dpm 0644 %{SOURCE2} %{buildroot}%{_tmpfilesdir}/%{name}.conf install -Dpm 0644 doc/bird.conf.example %{buildroot}%{_sysconfdir}/%{name}.conf %post %tmpfiles_create %{name}.conf %systemd_post %{name}.service %preun %systemd_preun %{name}.service %postun %systemd_postun_with_restart %{name}.service %files %defattr(-,root,root,-) %doc NEWS README %config(noreplace) %{_sysconfdir}/bird.conf %{_unitdir}/bird.service %{_tmpfilesdir}/bird.conf %{_sbindir}/bird %{_sbindir}/birdc %{_sbindir}/birdcl %files doc %defattr(-,root,root,-) %doc NEWS README %doc bird*.html %changelog * Thu Apr 19 2018 Oleh Horbachov 2.0.2-3 - Fixep permissions in tmpfiles config * Mon Apr 16 2018 Oleh Horbachov 2.0.2-2.1 - Add post install create rundir * Mon Apr 16 2018 Oleh Horbachov 2.0.2-2 - Add documentation subpackage - Move PID file to separate directory and define tmpfiles config * Fri Apr 13 2018 Oleh Horbachov - Upstream version - 2.0.2