update spec file to make it more similar to the upstream contrib spec file

also fix --with-teamdctl
This commit is contained in:
Thomas Haller 2014-06-25 16:46:50 +02:00
parent e09ac81902
commit 41a1662e75

View File

@ -7,8 +7,10 @@
%define ppp_version 2.4.6 %define ppp_version 2.4.6
%define snapshot .git20140609 %define snapshot .git20140609
%define git_sha .1963adda %define git_sha 1963adda
%define realversion 0.9.9.95 %define realversion 0.9.9.95
%define release_version 1
%define epoch_version 1
%define obsoletes_nmver 1:0.9.9.95-1 %define obsoletes_nmver 1:0.9.9.95-1
@ -17,7 +19,6 @@
%if 0%{?fedora} %if 0%{?fedora}
%global regen_docs 1 %global regen_docs 1
%else %else
#%global regen_docs 0
%global regen_docs 1 %global regen_docs 1
%endif %endif
@ -56,16 +57,18 @@
%global _hardened_build 1 %global _hardened_build 1
%define git_sha_version %(test -n '%{git_sha}' && echo '.%{git_sha}')
Name: NetworkManager Name: NetworkManager
Summary: Network connection manager and user applications Summary: Network connection manager and user applications
Epoch: 1 Epoch: %{epoch_version}
Version: 0.9.9.95 Version: %{realversion}
Release: 1%{snapshot}%{?dist} Release: %{release_version}%{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/
Source: %{name}-%{realversion}%{snapshot}%{git_sha}.tar.bz2 Source: %{name}-%{realversion}%{snapshot}%{git_sha_version}.tar.bz2
Source1: NetworkManager.conf Source1: NetworkManager.conf
Source2: 00-server.conf Source2: 00-server.conf
@ -336,9 +339,9 @@ by nm-connection-editor and nm-applet in a non-graphical environment.
--with-wext=no \ --with-wext=no \
%endif %endif
%if 0%{?with_teamctl} %if 0%{?with_teamctl}
--enable-teamctl=yes \ --enable-teamdctl=yes \
%else %else
--enable-teamctl=no \ --enable-teamdctl=no \
%endif %endif
--enable-polkit=yes \ --enable-polkit=yes \
--enable-modify-system=yes \ --enable-modify-system=yes \
@ -559,7 +562,7 @@ fi
%endif %endif
%changelog %changelog
* Fri Jun 06 2014 Dan Williams <dcbw@redhat.com> - 0.9.9.95-1.git20140609.1963adda * Fri Jun 06 2014 Dan Williams <dcbw@redhat.com> - 0.9.9.95-1.git20140609
- Update to upstream 0.9.9.95 (0.9.10-beta1) release snapshot - Update to upstream 0.9.9.95 (0.9.10-beta1) release snapshot
* Fri Jun 06 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:0.9.9.1-6.git20140319 * Fri Jun 06 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:0.9.9.1-6.git20140319