Update to 0.9.10 snapshot; hardened build
This commit is contained in:
parent
c5cf66f378
commit
4aa8a04bae
1
.gitignore
vendored
1
.gitignore
vendored
@ -288,3 +288,4 @@ network-manager-applet-0.8.1.tar.bz2
|
|||||||
/NetworkManager-0.9.7.0.git20121004.tar.bz2
|
/NetworkManager-0.9.7.0.git20121004.tar.bz2
|
||||||
/NetworkManager-0.9.7.0.git20121211.tar.bz2
|
/NetworkManager-0.9.7.0.git20121211.tar.bz2
|
||||||
/NetworkManager-0.9.8.0.tar.bz2
|
/NetworkManager-0.9.8.0.tar.bz2
|
||||||
|
/NetworkManager-0.9.9.0.git20130514.tar.bz2
|
||||||
|
@ -6,8 +6,10 @@
|
|||||||
%define libnl3_version 3.2.7
|
%define libnl3_version 3.2.7
|
||||||
%define ppp_version 2.4.5
|
%define ppp_version 2.4.5
|
||||||
|
|
||||||
%define snapshot .git20130507
|
%define snapshot .git20130514
|
||||||
%define realversion 0.9.8.1
|
%define realversion 0.9.9.0
|
||||||
|
|
||||||
|
%global regen_docs 0
|
||||||
|
|
||||||
%if 0%{?fedora} && 0%{?fedora} < 17
|
%if 0%{?fedora} && 0%{?fedora} < 17
|
||||||
%define systemd_dir /lib/systemd/system
|
%define systemd_dir /lib/systemd/system
|
||||||
@ -15,15 +17,13 @@
|
|||||||
%define systemd_dir %{_prefix}/lib/systemd/system
|
%define systemd_dir %{_prefix}/lib/systemd/system
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
# gtk-doc conflicts with hardened build even with the patch, disable
|
%global _hardened_build 1
|
||||||
# until redhat-rpm-config is fixed: https://bugzilla.redhat.com/show_bug.cgi?id=892837
|
|
||||||
#global _hardened_build 1
|
|
||||||
|
|
||||||
Name: NetworkManager
|
Name: NetworkManager
|
||||||
Summary: Network connection manager and user applications
|
Summary: Network connection manager and user applications
|
||||||
Epoch: 1
|
Epoch: 1
|
||||||
Version: 0.9.8.1
|
Version: 0.9.9.0
|
||||||
Release: 2%{snapshot}%{?dist}
|
Release: 1%{snapshot}%{?dist}
|
||||||
Group: System Environment/Base
|
Group: System Environment/Base
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
URL: http://www.gnome.org/projects/NetworkManager/
|
URL: http://www.gnome.org/projects/NetworkManager/
|
||||||
@ -31,7 +31,6 @@ URL: http://www.gnome.org/projects/NetworkManager/
|
|||||||
Source: %{name}-%{realversion}%{snapshot}.tar.bz2
|
Source: %{name}-%{realversion}%{snapshot}.tar.bz2
|
||||||
Source1: NetworkManager.conf
|
Source1: NetworkManager.conf
|
||||||
Patch1: explain-dns1-dns2.patch
|
Patch1: explain-dns1-dns2.patch
|
||||||
Patch2: rh853199-fix-gtk-doc-hardened-build.patch
|
|
||||||
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
|
|
||||||
@ -80,7 +79,9 @@ BuildRequires: ppp-devel = %{ppp_version}
|
|||||||
BuildRequires: nss-devel >= 3.11.7
|
BuildRequires: nss-devel >= 3.11.7
|
||||||
BuildRequires: polkit-devel
|
BuildRequires: polkit-devel
|
||||||
BuildRequires: dhclient
|
BuildRequires: dhclient
|
||||||
|
%if %{regen_docs}
|
||||||
BuildRequires: gtk-doc
|
BuildRequires: gtk-doc
|
||||||
|
%endif
|
||||||
BuildRequires: libudev-devel
|
BuildRequires: libudev-devel
|
||||||
BuildRequires: libuuid-devel
|
BuildRequires: libuuid-devel
|
||||||
BuildRequires: libgudev1-devel >= 143
|
BuildRequires: libgudev1-devel >= 143
|
||||||
@ -161,12 +162,14 @@ NetworkManager functionality from applications that use glib.
|
|||||||
|
|
||||||
%build
|
%build
|
||||||
|
|
||||||
|
%if %{regen_docs}
|
||||||
# back up pristine docs and use them instead of generated ones, which make
|
# back up pristine docs and use them instead of generated ones, which make
|
||||||
# multilib unhappy due to different timestamps in the generated content
|
# multilib unhappy due to different timestamps in the generated content
|
||||||
%{__cp} -R docs ORIG-docs
|
%{__cp} -R docs ORIG-docs
|
||||||
|
%endif
|
||||||
|
|
||||||
autopoint --force
|
#autopoint --force
|
||||||
intltoolize --force
|
#intltoolize --force
|
||||||
%configure \
|
%configure \
|
||||||
--disable-static \
|
--disable-static \
|
||||||
--with-dhclient=yes \
|
--with-dhclient=yes \
|
||||||
@ -177,20 +180,19 @@ intltoolize --force
|
|||||||
--enable-vala=yes \
|
--enable-vala=yes \
|
||||||
%ifnarch s390 s390x
|
%ifnarch s390 s390x
|
||||||
--enable-wimax=yes \
|
--enable-wimax=yes \
|
||||||
|
%endif
|
||||||
|
%if %{regen_docs}
|
||||||
|
--enable-gtk-doc \
|
||||||
%endif
|
%endif
|
||||||
--enable-polkit=yes \
|
--enable-polkit=yes \
|
||||||
--enable-modify-system=yes \
|
--enable-modify-system=yes \
|
||||||
--with-session-tracking=systemd \
|
--with-session-tracking=systemd \
|
||||||
--with-suspend-resume=systemd \
|
--with-suspend-resume=systemd \
|
||||||
--with-docs=yes \
|
|
||||||
--with-system-ca-path=/etc/pki/tls/certs \
|
--with-system-ca-path=/etc/pki/tls/certs \
|
||||||
--with-tests=yes \
|
--with-tests=yes \
|
||||||
--with-pppd-plugin-dir=%{_libdir}/pppd/%{ppp_version} \
|
--with-pppd-plugin-dir=%{_libdir}/pppd/%{ppp_version} \
|
||||||
--with-dist-version=%{version}-%{release}
|
--with-dist-version=%{version}-%{release}
|
||||||
|
|
||||||
# Patch here because gtk-doc.make is generated
|
|
||||||
patch -p1 -b -z .gtkdoc-hardened-build < %{PATCH2}
|
|
||||||
|
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
@ -222,9 +224,11 @@ make install DESTDIR=$RPM_BUILD_ROOT
|
|||||||
|
|
||||||
install -m 0755 test/.libs/nm-online %{buildroot}/%{_bindir}
|
install -m 0755 test/.libs/nm-online %{buildroot}/%{_bindir}
|
||||||
|
|
||||||
|
%if %{regen_docs}
|
||||||
# install the pristine docs
|
# install the pristine docs
|
||||||
%{__cp} ORIG-docs/libnm-glib/html/* $RPM_BUILD_ROOT%{_datadir}/gtk-doc/html/libnm-glib/
|
%{__cp} ORIG-docs/libnm-glib/html/* $RPM_BUILD_ROOT%{_datadir}/gtk-doc/html/libnm-glib/
|
||||||
%{__cp} ORIG-docs/libnm-util/html/* $RPM_BUILD_ROOT%{_datadir}/gtk-doc/html/libnm-util/
|
%{__cp} ORIG-docs/libnm-util/html/* $RPM_BUILD_ROOT%{_datadir}/gtk-doc/html/libnm-util/
|
||||||
|
%endif
|
||||||
|
|
||||||
mkdir -p $RPM_BUILD_ROOT%{systemd_dir}/remote-fs-pre.target.wants
|
mkdir -p $RPM_BUILD_ROOT%{systemd_dir}/remote-fs-pre.target.wants
|
||||||
ln -s ../NetworkManager-wait-online.service $RPM_BUILD_ROOT%{systemd_dir}/remote-fs-pre.target.wants
|
ln -s ../NetworkManager-wait-online.service $RPM_BUILD_ROOT%{systemd_dir}/remote-fs-pre.target.wants
|
||||||
@ -281,7 +285,6 @@ exit 0
|
|||||||
%defattr(-,root,root,0755)
|
%defattr(-,root,root,0755)
|
||||||
%doc COPYING NEWS AUTHORS README CONTRIBUTING TODO
|
%doc COPYING NEWS AUTHORS README CONTRIBUTING TODO
|
||||||
%{_sysconfdir}/dbus-1/system.d/org.freedesktop.NetworkManager.conf
|
%{_sysconfdir}/dbus-1/system.d/org.freedesktop.NetworkManager.conf
|
||||||
%{_sysconfdir}/dbus-1/system.d/nm-dhcp-client.conf
|
|
||||||
%{_sysconfdir}/dbus-1/system.d/nm-avahi-autoipd.conf
|
%{_sysconfdir}/dbus-1/system.d/nm-avahi-autoipd.conf
|
||||||
%{_sysconfdir}/dbus-1/system.d/nm-dispatcher.conf
|
%{_sysconfdir}/dbus-1/system.d/nm-dispatcher.conf
|
||||||
%{_sysconfdir}/dbus-1/system.d/nm-ifcfg-rh.conf
|
%{_sysconfdir}/dbus-1/system.d/nm-ifcfg-rh.conf
|
||||||
@ -293,9 +296,8 @@ exit 0
|
|||||||
%dir %{_sysconfdir}/%{name}/dnsmasq.d
|
%dir %{_sysconfdir}/%{name}/dnsmasq.d
|
||||||
%dir %{_sysconfdir}/%{name}/VPN
|
%dir %{_sysconfdir}/%{name}/VPN
|
||||||
%config(noreplace) %{_sysconfdir}/%{name}/NetworkManager.conf
|
%config(noreplace) %{_sysconfdir}/%{name}/NetworkManager.conf
|
||||||
%{_bindir}/nm-tool
|
|
||||||
%{_bindir}/nm-online
|
%{_bindir}/nm-online
|
||||||
%{_libexecdir}/nm-dhcp-client.action
|
%{_libexecdir}/nm-dhcp-helper
|
||||||
%{_libexecdir}/nm-avahi-autoipd.action
|
%{_libexecdir}/nm-avahi-autoipd.action
|
||||||
%{_libexecdir}/nm-dispatcher.action
|
%{_libexecdir}/nm-dispatcher.action
|
||||||
%dir %{_libdir}/NetworkManager
|
%dir %{_libdir}/NetworkManager
|
||||||
@ -314,6 +316,7 @@ exit 0
|
|||||||
%{systemd_dir}/NetworkManager-wait-online.service
|
%{systemd_dir}/NetworkManager-wait-online.service
|
||||||
%{systemd_dir}/remote-fs-pre.target.wants/NetworkManager-wait-online.service
|
%{systemd_dir}/remote-fs-pre.target.wants/NetworkManager-wait-online.service
|
||||||
%{_datadir}/dbus-1/system-services/org.freedesktop.NetworkManager.service
|
%{_datadir}/dbus-1/system-services/org.freedesktop.NetworkManager.service
|
||||||
|
%{_datadir}/doc/NetworkManager/examples/server.conf
|
||||||
|
|
||||||
%ifnarch s390 s390x
|
%ifnarch s390 s390x
|
||||||
%files wimax
|
%files wimax
|
||||||
@ -364,6 +367,14 @@ exit 0
|
|||||||
%{_datadir}/gtk-doc/html/libnm-util/*
|
%{_datadir}/gtk-doc/html/libnm-util/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue May 14 2013 Dan Williams <dcbw@redhat.com> - 0.9.9.0-1.git20130514
|
||||||
|
- Enable hardened build
|
||||||
|
- Update to 0.9.10 snapshot
|
||||||
|
- cli: new capabilities and somewhat re-arranged syntax
|
||||||
|
- core: generic interface support
|
||||||
|
- core: split config support; new "server mode" options
|
||||||
|
- core: allow locking connections to interface names
|
||||||
|
|
||||||
* Tue May 7 2013 Dan Williams <dcbw@redhat.com> - 0.9.8.1-2.git20130507
|
* Tue May 7 2013 Dan Williams <dcbw@redhat.com> - 0.9.8.1-2.git20130507
|
||||||
- core: fix issue with UI not showing disconnected on rfkill
|
- core: fix issue with UI not showing disconnected on rfkill
|
||||||
- core: memory leak fixes
|
- core: memory leak fixes
|
||||||
|
@ -1,11 +0,0 @@
|
|||||||
--- NetworkManager-0.9.8.1/gtk-doc.make 2013-04-30 15:16:13.049980141 -0500
|
|
||||||
+++ NetworkManager-0.9.8.1/gtk-doc.make 2013-04-30 15:17:41.525874040 -0500
|
|
||||||
@@ -108,7 +108,7 @@ scan-build.stamp: $(HFILE_GLOB) $(CFILE_
|
|
||||||
scanobj_options="--verbose"; \
|
|
||||||
fi; \
|
|
||||||
fi; \
|
|
||||||
- CC="$(GTKDOC_CC)" LD="$(GTKDOC_LD)" RUN="$(GTKDOC_RUN)" CFLAGS="$(GTKDOC_CFLAGS) $(CFLAGS)" LDFLAGS="$(GTKDOC_LIBS) $(LDFLAGS)" \
|
|
||||||
+ CC="$(GTKDOC_CC)" LD="$(GTKDOC_LD)" RUN="$(GTKDOC_RUN)" CFLAGS="$(GTKDOC_CFLAGS)" LDFLAGS="$(GTKDOC_LIBS)" \
|
|
||||||
gtkdoc-scangobj $(SCANGOBJ_OPTIONS) $$scanobj_options --module=$(DOC_MODULE); \
|
|
||||||
else \
|
|
||||||
for i in $(SCANOBJ_FILES) ; do \
|
|
Loading…
Reference in New Issue
Block a user