You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
66 lines
2.0 KiB
66 lines
2.0 KiB
autofs-5.0.7 - fix libtirpc build option |
|
|
|
From: Ian Kent <raven@themaw.net> |
|
|
|
|
|
--- |
|
CHANGELOG | 1 + |
|
autofs.spec | 17 ++++++++++++++++- |
|
2 files changed, 17 insertions(+), 1 deletion(-) |
|
|
|
diff --git a/CHANGELOG b/CHANGELOG |
|
index e848bcd..b6b2679 100644 |
|
--- a/CHANGELOG |
|
+++ b/CHANGELOG |
|
@@ -34,6 +34,7 @@ |
|
- depricate nosymlink pseudo option. |
|
- add symlink pseudo option. |
|
- fix requires in spec file. |
|
+- fix libtirpc build option to require libtirpc-devel if needed. |
|
|
|
25/07/2012 autofs-5.0.7 |
|
======================= |
|
diff --git a/autofs.spec b/autofs.spec |
|
index 703f7a9..f77acc1 100644 |
|
--- a/autofs.spec |
|
+++ b/autofs.spec |
|
@@ -12,6 +12,10 @@ |
|
# disable them. |
|
%define with_systemd %{?_without_systemd: 0} %{?!_without_systemd: 1} |
|
|
|
+# Use --without libtirpc in your rpmbuild command or force values to 0 to |
|
+# disable them. |
|
+%define with_libtirpc %{?_without_libtirpc: 0} %{?!_without_libtirpc: 1} |
|
+ |
|
Summary: A tool from automatically mounting and umounting filesystems. |
|
Name: autofs |
|
%define version 5.0.7 |
|
@@ -25,6 +29,9 @@ Buildroot: %{_tmppath}/%{name}-tmp |
|
%if %{with_systemd} |
|
BuildRequires: systemd-units |
|
%endif |
|
+%if %{with_libtirpc} |
|
+BuildRequires: libtirpc-devel |
|
+%endif |
|
BuildRequires: autoconf, hesiod-devel, openldap-devel, bison, flex, cyrus-sasl-devel |
|
Requires: chkconfig |
|
Requires: /bin/bash mktemp sed textutils sh-utils grep /bin/ps |
|
@@ -72,9 +79,17 @@ echo %{version}-%{release} > .version |
|
%define _unitdir %{?_unitdir:/lib/systemd/system} |
|
%define systemd_configure_arg --with-systemd |
|
%endif |
|
+%if %{with_libtirpc} |
|
+ %define libtirpc_configure_arg --with-libtirpc |
|
+%endif |
|
|
|
%build |
|
-CFLAGS="$RPM_OPT_FLAGS -Wall" ./configure --libdir=%{_libdir} --disable-mount-locking --enable-ignore-busy --with-libtirpc %{?systemd_configure_arg:} |
|
+CFLAGS="$RPM_OPT_FLAGS -Wall" \ |
|
+./configure --libdir=%{_libdir} \ |
|
+ --disable-mount-locking \ |
|
+ --enable-ignore-busy \ |
|
+ %{?systemd_configure_arg:} \ |
|
+ %{?libtirpc_configure_arg:} |
|
CFLAGS="$RPM_OPT_FLAGS -Wall" make initdir=/etc/rc.d/init.d DONTSTRIP=1 |
|
|
|
%install
|
|
|