new version 2.0

This commit is contained in:
Pavel Šimerda 2014-07-17 10:08:43 +02:00
parent c3f7bafee3
commit 12301dc46e
3 changed files with 19 additions and 9 deletions

1
.gitignore vendored
View File

@ -16,3 +16,4 @@ radvd-1.6.tar.gz
/radvd-1.11.tar.gz /radvd-1.11.tar.gz
/radvd-1.12.tar.gz /radvd-1.12.tar.gz
/radvd-1.14.tar.gz /radvd-1.14.tar.gz
/radvd-2.0.tar.bz2

View File

@ -1,19 +1,19 @@
Summary: A Router Advertisement daemon Summary: A Router Advertisement daemon
Name: radvd Name: radvd
Version: 1.14 Version: 2.0
Release: 1%{?dist} Release: 1%{?dist}
# The code includes the advertising clause, so it's GPL-incompatible # The code includes the advertising clause, so it's GPL-incompatible
License: BSD with advertising License: BSD with advertising
Group: System Environment/Daemons Group: System Environment/Daemons
URL: http://www.litech.org/radvd/ URL: http://www.litech.org/radvd/
Source0: %{url}dist/%{name}-%{version}.tar.gz Source0: %{url}dist/%{name}-%{version}.tar.bz2
Source1: radvd-tmpfs.conf Source1: radvd-tmpfs.conf
Source2: radvd.service Source2: radvd.service
BuildRequires: byacc BuildRequires: bison
BuildRequires: flex BuildRequires: flex
BuildRequires: flex-static BuildRequires: flex-static
BuildRequires: libdaemon-devel
BuildRequires: pkgconfig BuildRequires: pkgconfig
BuildRequires: check-devel
BuildRequires: systemd-units BuildRequires: systemd-units
Requires(postun): systemd-units Requires(postun): systemd-units
Requires(preun): systemd-units Requires(preun): systemd-units
@ -33,7 +33,7 @@ services.
%prep %prep
%setup -q %setup -q
for F in CHANGES-1; do for F in CHANGES; do
iconv -f iso-8859-1 -t utf-8 < "$F" > "${F}.new" iconv -f iso-8859-1 -t utf-8 < "$F" > "${F}.new"
touch -r "$F" "${F}.new" touch -r "$F" "${F}.new"
mv "${F}.new" "$F" mv "${F}.new" "$F"
@ -42,7 +42,9 @@ done
%build %build
export CFLAGS="$RPM_OPT_FLAGS -fPIE" export CFLAGS="$RPM_OPT_FLAGS -fPIE"
export LDFLAGS='-pie -Wl,-z,relro,-z,now,-z,noexecstack,-z,nodlopen' export LDFLAGS='-pie -Wl,-z,relro,-z,now,-z,noexecstack,-z,nodlopen'
%configure --with-pidfile=%{_localstatedir}/run/radvd/radvd.pid %configure \
--disable-silent-rules \
--with-pidfile=%{_localstatedir}/run/radvd/radvd.pid
make %{?_smp_mflags} make %{?_smp_mflags}
%install %install
@ -59,6 +61,10 @@ install -d -m 755 $RPM_BUILD_ROOT%{_tmpfilesdir}
install -p -m 644 %{SOURCE1} $RPM_BUILD_ROOT%{_tmpfilesdir}/radvd.conf install -p -m 644 %{SOURCE1} $RPM_BUILD_ROOT%{_tmpfilesdir}/radvd.conf
install -m 644 %{SOURCE2} ${RPM_BUILD_ROOT}%{_unitdir} install -m 644 %{SOURCE2} ${RPM_BUILD_ROOT}%{_unitdir}
%check
# The tests don't work, see https://github.com/reubenhwk/radvd/issues/30
#make check
%postun %postun
%systemd_postun_with_restart radvd.service %systemd_postun_with_restart radvd.service
@ -76,7 +82,7 @@ getent passwd radvd >/dev/null || \
exit 0 exit 0
%files %files
%doc CHANGES-1 COPYRIGHT INTRO.html README TODO %doc CHANGES COPYRIGHT INTRO.html README TODO
%{_unitdir}/radvd.service %{_unitdir}/radvd.service
%config(noreplace) %{_sysconfdir}/radvd.conf %config(noreplace) %{_sysconfdir}/radvd.conf
%config(noreplace) %{_sysconfdir}/sysconfig/radvd %config(noreplace) %{_sysconfdir}/sysconfig/radvd
@ -88,6 +94,9 @@ exit 0
%{_sbindir}/radvdump %{_sbindir}/radvdump
%changelog %changelog
* Thu Jul 17 2014 Pavel Šimerda <psimerda@redhat.com> - 2.0-1
- new version 2.0
* Fri Jul 11 2014 Pavel Šimerda <psimerda@redhat.com> - 1.14-1 * Fri Jul 11 2014 Pavel Šimerda <psimerda@redhat.com> - 1.14-1
- new version 1.14 - new version 1.14

View File

@ -1 +1 @@
a257e05bd6a435ef948d3b407726d56f radvd-1.14.tar.gz 2f6d78c6509c4a6f8c71d82b074f8d83 radvd-2.0.tar.bz2