]> git.pld-linux.org Git - packages/samba.git/blobdiff - samba.spec
- unconditional noarch subpackages
[packages/samba.git] / samba.spec
index 6efd49ed077c1461774c39544f0c8ec071fd35fd..e335e65f97a7583350333311ead787c59afcb065 100644 (file)
@@ -1,6 +1,6 @@
 # TODO:
-# - tracker support (--enable-spotlight)?
-# - ressurect ceph
+# - bcond/subpackage for Spotlight tracker backend (BR: glib2-devel tracker-devel >= 2.0)?
+# - gpfs.h (nfs-ganesha?)
 #
 # Note:
 # - unpredictible build failures:
@@ -9,8 +9,9 @@
 #
 # Conditional build:
 %bcond_without ads             # ActiveDirectory support
-%bcond_with    ceph            # Ceph (RADOS) storage support
+%bcond_without ceph            # Ceph (RADOS) storage support
 %bcond_without cups            # CUPS support
+%bcond_without glusterfs       # GlusterFS storage support
 %bcond_without ldap            # LDAP support
 %bcond_without avahi           # Avahi support
 %bcond_without dmapi           # DMAPI support
 %bcond_with    replace
 
 %if %{with system_libs}
-%define                ldb_ver         2.1.1
-%define                talloc_ver      2:2.3.0
-%define                tdb_ver         2:1.4.2
-%define                tevent_ver      0.10.0
+%define                ldb_ver         2.2.0
+%define                talloc_ver      2:2.3.1
+%define                tdb_ver         2:1.4.3
+%define                tevent_ver      0.10.2
 %endif
 
 # dmapi-devel with xfsprogs-devel >= 4.11(?) needs largefile (64bit off_t) that isn't detected properly
 Summary:       Samba Active Directory and SMB server
 Summary(pl.UTF-8):     Serwer Samba Active Directory i SMB
 Name:          samba
-Version:       4.12.0
-Release:       1
+Version:       4.13.3
+Release:       3
 Epoch:         1
 License:       GPL v3
 Group:         Networking/Daemons
 Source0:       https://download.samba.org/pub/samba/stable/%{name}-%{version}.tar.gz
-# Source0-md5: 387dd6b03bd01ac17534e439562af3f5
+# Source0-md5: 8a412bc5b58f35cd4721fa6ec4629ce0
 Source1:       smb.init
 Source2:       samba.pamd
 Source4:       samba.sysconfig
@@ -61,7 +62,7 @@ Source10:     https://bitbucket.org/fumiyas/samba-virusfilter/downloads/samba-virusf
 Patch0:                system-heimdal.patch
 Patch1:                %{name}-c++-nofail.patch
 Patch2:                %{name}-lprng-no-dot-printers.patch
-
+Patch3:                samba-force-user.patch
 Patch4:                unicodePwd-nthash-values-over-LDAP.patch
 Patch5:                %{name}-heimdal.patch
 Patch6:                server-role.patch
@@ -70,7 +71,8 @@ Patch8:               %{name}-no_libbsd.patch
 URL:           https://www.samba.org/
 BuildRequires: acl-devel
 %{?with_avahi:BuildRequires:   avahi-devel}
-%{?with_ceph:BuildRequires:    ceph-devel >= 0.73}
+BuildRequires: bison
+%{?with_ceph:BuildRequires:    ceph-devel >= 11}
 BuildRequires: cmocka-devel >= 1.1.3
 %if %{with winexe}
 BuildRequires: crossmingw32-gcc
@@ -81,28 +83,39 @@ BuildRequires:      cyrus-sasl-devel >= 2
 BuildRequires: dbus-devel
 %{?with_dmapi:BuildRequires:   dmapi-devel}
 BuildRequires: docbook-style-xsl-nons
+BuildRequires: flex
 # just FAM API
 BuildRequires: gamin-devel
-BuildRequires: gdbm-devel
 BuildRequires: gettext-tools
-BuildRequires: glusterfs-devel
+BuildRequires: glib2-devel >= 2.0
+%{?with_glusterfs:BuildRequires:       glusterfs-devel >= 4}
 BuildRequires: gnutls-devel >= 3.4.7
+BuildRequires: gpgme-devel
 %{?with_system_heimdal:BuildRequires:  heimdal-devel >= 1.5.3-1}
 BuildRequires: iconv
+BuildRequires: jansson-devel
 BuildRequires: keyutils-devel
 BuildRequires: libaio-devel
 BuildRequires: libarchive-devel >= 3.1.2
 %{?with_system_libbsd:BuildRequires:   libbsd-devel}
 BuildRequires: libcap-devel
 BuildRequires: libcom_err-devel
+BuildRequires: libicu-devel
 BuildRequires: libmagic-devel
 BuildRequires: libnscd-devel
+BuildRequires: libnsl-devel
+BuildRequires: libtasn1-devel >= 3.8
+BuildRequires: libtirpc-devel
+BuildRequires: libunwind-devel
 BuildRequires: liburing-devel
+BuildRequires: lttng-ust-devel
 BuildRequires: make >= 3.81
 BuildRequires: ncurses-devel >= 5.2
 BuildRequires: ncurses-ext-devel >= 5.2
 BuildRequires: nss_wrapper >= 1.0.2
 %{?with_ldap:BuildRequires:    openldap-devel >= 2.3.0}
+# detected and used for linking, but dropped by -Wl,--as-needed
+#BuildRequires:        openssl-devel
 BuildRequires: pam-devel >= 0.99.8.1
 %{?with_ctdb_pcp:BuildRequires:        pcp-devel}
 BuildRequires: perl-ExtUtils-MakeMaker
@@ -117,17 +130,20 @@ BuildRequires:    python3-modules >= 1:3.5
 BuildRequires: python3-subunit
 BuildRequires: python3-testtools
 BuildRequires: readline-devel >= 4.2
+BuildRequires: rpcsvc-proto
 BuildRequires: rpm-perlprov
 BuildRequires: rpm-pythonprov
-BuildRequires: rpmbuild(macros) >= 1.647
+BuildRequires: rpmbuild(macros) >= 1.752
 BuildRequires: sed >= 4.0
 BuildRequires: socket_wrapper >= 1.1.2
 BuildRequires: subunit-devel
 %{?with_systemd:BuildRequires: systemd-devel}
+BuildRequires: tracker-devel >= 2.0
 BuildRequires: xfsprogs-devel
 BuildRequires: zlib-devel >= 1.2.3
 %if %{with system_libs}
 BuildRequires: ldb-devel >= %{ldb_ver}
+BuildRequires: ldb-devel < 2.3
 BuildRequires: python3-ldb-devel >= %{ldb_ver}
 BuildRequires: python3-talloc-devel >= %{talloc_ver}
 BuildRequires: python3-tdb >= %{tdb_ver}
@@ -214,6 +230,7 @@ Summary:    VFS module to host shares on Ceph file system
 Summary(pl.UTF-8):     Moduł VFS do serwowania zasobów z systemu plików Ceph
 Group:         Networking/Daemons
 Requires:      %{name} = %{epoch}:%{version}-%{release}
+Requires:      ceph-libs >= 11
 
 %description vfs-ceph
 VFS module to host shares on Ceph file system.
@@ -474,9 +491,7 @@ Group:              Networking/Daemons
 Requires(post,postun): sed >= 4.0
 Requires:      openldap-servers
 Obsoletes:     openldap-schema-samba3
-%if "%{_rpmversion}" >= "5"
 BuildArch:     noarch
-%endif
 
 %description -n openldap-schema-samba
 This package contains samba.schema for OpenLDAP.
@@ -544,7 +559,7 @@ wyeksportowania do PMCD.
 %{?with_system_heimdal:%patch0 -p1}
 %patch1 -p1
 %patch2 -p1
-
+%patch3 -p1
 %patch4 -p1
 %{?with_system_heimdal:%patch5 -p1}
 %patch6 -p1
@@ -619,6 +634,7 @@ CPPFLAGS="${CPPFLAGS:-%rpmcppflags}" \
        --with-winbind \
        --%{?with_avahi:en}%{!?with_avahi:dis}able-avahi \
        --enable-cups \
+       %{__enable_disable glusterfs} \
        --enable-iprint
 
 %{__make} V=1
@@ -864,6 +880,8 @@ fi
 %attr(755,root,root) %{_libdir}/samba/bind9/dlz_bind9_10.so
 %attr(755,root,root) %{_libdir}/samba/bind9/dlz_bind9_11.so
 %attr(755,root,root) %{_libdir}/samba/bind9/dlz_bind9_12.so
+%attr(755,root,root) %{_libdir}/samba/bind9/dlz_bind9_14.so
+%attr(755,root,root) %{_libdir}/samba/bind9/dlz_bind9_16.so
 %dir %{_libdir}/samba/gensec
 %attr(755,root,root) %{_libdir}/samba/gensec/krb5.so
 %if %{with system_heimdal}
@@ -977,8 +995,13 @@ fi
 %attr(755,root,root) %{_libdir}/samba/vfs/time_audit.so
 %attr(755,root,root) %{_libdir}/samba/vfs/unityed_media.so
 %attr(755,root,root) %{_libdir}/samba/vfs/virusfilter.so
+%attr(755,root,root) %{_libdir}/samba/vfs/widelinks.so
 %attr(755,root,root) %{_libdir}/samba/vfs/worm.so
 %attr(755,root,root) %{_libdir}/samba/vfs/xattr_tdb.so
+%dir %{_datadir}/samba/admx
+%{_datadir}/samba/admx/samba.admx
+%lang(en) %{_datadir}/samba/admx/en-US
+%{_datadir}/samba/mdssvc
 %{_datadir}/samba/setup
 %{_mandir}/man1/oLschema2ldif.1*
 %{_mandir}/man1/profiles.1*
@@ -1032,6 +1055,7 @@ fi
 %{_mandir}/man8/vfs_shell_snap.8*
 %{_mandir}/man8/vfs_unityed_media.8*
 %{_mandir}/man8/vfs_virusfilter.8*
+%{_mandir}/man8/vfs_widelinks.8*
 
 %dir %{_sambahome}
 %dir /var/lib/samba
@@ -1054,14 +1078,16 @@ fi
 
 %files vfs-glusterfs
 %defattr(644,root,root,755)
+%if %{with glusterfs}
 %attr(755,root,root) %{_libdir}/samba/vfs/glusterfs.so
-%attr(755,root,root) %{_libdir}/samba/vfs/glusterfs_fuse.so
 %{_mandir}/man8/vfs_glusterfs.8*
+%endif
+%attr(755,root,root) %{_libdir}/samba/vfs/glusterfs_fuse.so
 %{_mandir}/man8/vfs_glusterfs_fuse.8*
 
 %files common
 %defattr(644,root,root,755)
-%doc BUILD_SYSTEMS.txt PFIF.txt README.cifs-utils README.Coding README.contributing README.md WHATSNEW.txt
+%doc PFIF.txt README.cifs-utils README.md SECURITY.md WHATSNEW.txt
 %dir %{_sysconfdir}/samba
 %attr(664,root,fileshare) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/samba/smb.conf
 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/samba/lmhosts
@@ -1123,6 +1149,9 @@ fi
 %{_mandir}/man1/smbcquotas.1*
 %{_mandir}/man1/smbtar.1*
 %{_mandir}/man1/smbtree.1*
+%if %{with winexe}
+%attr(755,root,root) %{_mandir}/man1/winexe.1*
+%endif
 %{_mandir}/man8/cifsdd.8*
 
 %files winbind
@@ -1432,7 +1461,6 @@ fi
 %dir %{_includedir}/samba-4.0/util
 %{_includedir}/samba-4.0/util/attr.h
 %{_includedir}/samba-4.0/util/blocking.h
-%{_includedir}/samba-4.0/util/byteorder.h
 %{_includedir}/samba-4.0/util/data_blob.h
 %{_includedir}/samba-4.0/util/debug.h
 %{_includedir}/samba-4.0/util/discard.h
@@ -1544,6 +1572,9 @@ fi
 %dir %{py3_sitedir}/samba/tests/kcc
 %{py3_sitedir}/samba/tests/kcc/*.py
 %{py3_sitedir}/samba/tests/kcc/__pycache__
+%dir %{py3_sitedir}/samba/tests/krb5
+%{py3_sitedir}/samba/tests/krb5/*.py
+%{py3_sitedir}/samba/tests/krb5/__pycache__
 %dir %{py3_sitedir}/samba/tests/samba_tool
 %{py3_sitedir}/samba/tests/samba_tool/*.py
 %{py3_sitedir}/samba/tests/samba_tool/__pycache__
@@ -1574,6 +1605,7 @@ fi
 %{_mandir}/man1/masktest.1*
 %{_mandir}/man1/ndrdump.1*
 %{_mandir}/man1/smbtorture.1*
+%{_mandir}/man1/vfstest.1*
 
 %files -n libsmbclient
 %defattr(644,root,root,755)
@@ -1646,6 +1678,7 @@ fi
 %{_datadir}/ctdb/events/legacy/31.clamd.script
 %{_datadir}/ctdb/events/legacy/40.vsftpd.script
 %{_datadir}/ctdb/events/legacy/41.httpd.script
+%{_datadir}/ctdb/events/legacy/48.netbios.script
 %{_datadir}/ctdb/events/legacy/49.winbind.script
 %{_datadir}/ctdb/events/legacy/50.samba.script
 %{_datadir}/ctdb/events/legacy/60.nfs.script
This page took 0.121951 seconds and 4 git commands to generate.