Skip to content

Commit f05476a

Browse files
committed
1 parent 0021186 commit f05476a

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

packaging/samba-master.spec.j2

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,8 @@
7171
%bcond_with etcd_mutex
7272
%endif
7373

74+
%bcond_without gettext
75+
7476
%global baserelease 1
7577

7678
%global samba_version {{ samba_rpm_version }}
@@ -188,6 +190,9 @@ BuildRequires: docbook-style-xsl
188190
BuildRequires: e2fsprogs-devel
189191
BuildRequires: flex
190192
BuildRequires: gawk
193+
%if %{with gettext}
194+
BuildRequires: gettext
195+
%endif
191196
BuildRequires: gnupg2
192197
%if 0%{?centos} == 7
193198
BuildRequires: compat-gnutls37-devel
@@ -1199,6 +1204,9 @@ export python_LDFLAGS="$(echo ${LDFLAGS} | sed -e 's/-Wl,-z,defs//g')"
11991204
%endif
12001205
%if %{with etcd_mutex}
12011206
--enable-etcd-reclock \
1207+
%endif
1208+
%if %{without gettext}
1209+
--without-gettext \
12021210
%endif
12031211
--with-profiling-data \
12041212
--with-systemd \
@@ -1220,6 +1228,8 @@ popd
12201228

12211229
%install
12221230
%make_install
1231+
%find_lang pam_winbind
1232+
%find_lang net
12231233

12241234
install -d -m 0755 %{buildroot}/usr/{sbin,bin}
12251235
install -d -m 0755 %{buildroot}%{_libdir}/security
@@ -1926,7 +1936,11 @@ fi
19261936
%{_libdir}/samba/pdb/smbpasswd.so
19271937
%{_libdir}/samba/pdb/tdbsam.so
19281938

1939+
%if %{with gettext}
1940+
%files common-tools -f net.lang
1941+
%else
19291942
%files common-tools
1943+
%endif
19301944
%{_bindir}/net
19311945
%{_bindir}/pdbedit
19321946
%{_bindir}/profiles
@@ -2642,7 +2656,11 @@ fi
26422656
%{_mandir}/man8/winbind_krb5_locator.8*
26432657

26442658
### WINBIND-MODULES
2659+
%if %{with gettext}
2660+
%files winbind-modules -f pam_winbind.lang
2661+
%else
26452662
%files winbind-modules
2663+
%endif
26462664
%{_libdir}/libnss_winbind.so*
26472665
%{_libdir}/libnss_wins.so*
26482666
%{_libdir}/security/pam_winbind.so

0 commit comments

Comments
 (0)