Blob Blame History Raw
%global _hardened_build 1

Name:             bird
Version:          1.6.3
Release:          3%{?dist}
Summary:          BIRD Internet Routing Daemon

Group:            System Environment/Daemons
License:          GPLv2+
URL:              http://bird.network.cz
Source0:          ftp://bird.network.cz/pub/bird/bird-%{version}.tar.gz
Source1:          bird.service

BuildRequires:    flex bison ncurses-devel readline-devel sed systemd
Requires(post):   systemd
Requires(preun):  systemd
Requires(postun): systemd
Obsoletes:        bird-sysvinit

%description
BIRD is dynamic routing daemon supporting IPv4 and IPv6 versions of routing
protocols BGP, RIP and OSPF.

This package contains IPv4 version.


%package -n bird6
Summary:          BIRD Internet Routing Daemon
Group:            System Environment/Daemons
Requires(post):   systemd
Requires(preun):  systemd
Requires(postun): systemd
Obsoletes:        bird6-sysvinit

%description -n bird6
BIRD is dynamic routing daemon supporting IPv4 and IPv6 versions of routing
protocols BGP, RIP and OSPF.

This package contains IPv6 version.


%package doc
Summary:          BIRD Internet Routing Daemon
Group:            System Environment/Daemons

%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

#Don't strip executables
sed -i 's/\$(INSTALL_PROGRAM) -s/\$(INSTALL_PROGRAM)/' tools/Makefile.in


%build
mkdir ipv6
tar c --exclude ipv6 . | tar x -C ipv6

cd ipv6
%configure --prefix=%{_prefix} \
           --sysconfdir=%{_sysconfdir} \
           --localstatedir=%{_localstatedir} \
           --enable-ipv6
make %{?_smp_mflags}
cd ..

%configure --prefix=%{_prefix} \
           --sysconfdir=%{_sysconfdir} \
           --localstatedir=%{_localstatedir}
make %{?_smp_mflags}


%install
make install DESTDIR=%{buildroot}

cd ipv6
make install DESTDIR=%{buildroot}
cd ..

install -d %{buildroot}%{_unitdir}
sed 's/BIRD_PROGNAME/bird/' %SOURCE1 > %{buildroot}%{_unitdir}/bird.service
sed 's/BIRD_PROGNAME/bird6/' %SOURCE1 > %{buildroot}%{_unitdir}/bird6.service


%post
%systemd_post bird.service

%preun
%systemd_preun bird.service

%postun
%systemd_postun_with_restart bird.service


%post -n bird6
%systemd_post bird6.service

%preun -n bird6
%systemd_preun bird6.service

%postun -n bird6
%systemd_postun_with_restart bird6.service


%files
%defattr(-,root,root,-)
%doc NEWS README TODO
%config(noreplace) %{_sysconfdir}/bird.conf
%{_unitdir}/bird.service
%{_sbindir}/bird
%{_sbindir}/birdc
%{_sbindir}/birdcl

%files -n bird6
%defattr(-,root,root,-)
%doc NEWS README TODO
%config(noreplace) %{_sysconfdir}/bird6.conf
%{_unitdir}/bird6.service
%{_sbindir}/bird6
%{_sbindir}/birdc6
%{_sbindir}/birdcl6

%files doc
%defattr(-,root,root,-)
%doc NEWS README TODO
%doc doc/bird*.html


%changelog
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.3-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild

* Thu Jan 12 2017 Igor Gnatenko <ignatenko@redhat.com> - 1.6.3-2
- Rebuild for readline 7.x

* Sat Dec 31 2016 Robert Scheck <robert@fedoraproject.org> - 1.6.3-1
- update to 1.6.3 (#1378434)

* Thu May 05 2016 Stanislav Kozina <skozina@redhat.com> - 1.6.0-1
- update to 1.6.0 (#1331895)

* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild

* Mon Jun 29 2015 Michal Sekletar <msekleta@redhat.com> - 1.5.0-1
- update to 1.5.0 (#1214701)

* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.5-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild

* Fri Nov 07 2014 Michal Sekletar <msekleta@redhat.com> - 1.4.5-1
- update to 1.4.5 (#1150449)

* Fri Aug 15 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.4-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild

* Mon Jul 28 2014 Michal Sekletar <msekleta@redhat.com> - 1.4.4-1
- update to 1.4.4

* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.3-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild

* Fri May 23 2014 Michal Sekletar <msekleta@redhat.com> - 1.4.3-1
- update to 1.4.3

* Tue Dec 03 2013 Michal Sekletar <msekleta@redhat.com> - 1.4.0-1
- update to 1.4.0

* Thu Oct 17 2013 Michal Sekletar <msekleta@redhat.com> - 1.3.11-1
- update to 1.3.11
- add systemd to BuildRequires
- change scriptlet Requires to systemd
- drop rpm triggers used for migration from sysv to systemd
- drop sysvinit subpackages
- use macroized systemd scriptlets
- specfile cleanup
- enable hardened build
- modernize systemd service file

* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.10-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild

* Wed Jul 03 2013 Stanislav Kozina <stanislav.kozina@gmail.com> 1.3.10-1
- updated to latest upstream 1.3.10

* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.7-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild

* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.7-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild

* Wed Apr 04 2012 Stanislav Kozina <skozina@redhat.com> 1.3.7-1
- updated to latest upstream 1.3.7

* Wed Jan 11 2012 Jiri Skala <jskala@redhat.com> 1.3.5-1
- updated to latest upstream 1.3.5

* Wed Nov 23 2011 Jiri Skala <jskala@redhat.com> 1.3.4-2
- initscripts moved to subpackage

* Mon Oct 10 2011 Jiri Skala <jskala@redhat.com> 1.3.4-1
- updated to latest upstream 1.3.4

* Mon Sep 12 2011 Jiri Skala <jskala@redhat.com> 1.3.3-1
- updated to latest upstream 1.3.3

* Mon Jul 11 2011 Jiri Skala <jskala@redhat.com> 1.3.2-1
- updated to latest upstream 1.3.2

* Wed May 11 2011 Bill Nottingham <notting@redhat.com>  1.3.1-2
- fix systemd scriptlets for upgrade (#703234)

* Wed May 04 2011 Jan Görig <jgorig@redhat.com> 1.3.1-1
- New upstream bugfix release

* Thu Mar 31 2011 Jan Görig <jgorig@redhat.com> 1.3.0-1
- New upstream release - iBGP improved, IPv6 RA added, many changes and bufixes
- Updated systemd unit files configuration

* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org>
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild

* Thu Nov 11 2010 Jan Görig <jgorig@redhat.com> 1.2.5-2
- Move from SysVInit to systemd

* Mon Oct 11 2010 Jan Görig <jgorig@redhat.com> 1.2.5-1
- New upstream release

* Tue Oct 5 2010 Jan Görig <jgorig@redhat.com> 1.2.4-1
- Initial release