c533e4
Name:		realmd
c1b752
Version:	0.16.1
871079
Release:	12%{?dist}.1
c533e4
Summary:	Kerberos realm enrollment service
c533e4
License:	LGPLv2+
c533e4
URL:		http://cgit.freedesktop.org/realmd/realmd/
c533e4
Source0:	http://www.freedesktop.org/software/realmd/releases/realmd-%{version}.tar.gz
c533e4
c1b752
Patch0:         ipa-packages.patch
c1b752
Patch2:		remove-spurious-print.patch
c1b752
Patch3:         increase-packagekit-timeout.patch
c1b752
Patch4:         dns-domain-name-liberal.patch
c1b752
8e731f
Patch11:        install-diagnostic.patch
8e731f
Patch12:        computer-ou.patch
c1b752
Patch13:        duplicate-test-path.patch
c1b752
c1b752
Patch20:        samba-by-default.patch
8e731f
Patch21:        Fix-invalid-unrefs-on-realm_invocation_get_cancellab.patch
8e731f
Patch22:        0001-Support-manually-setting-computer-name.patch
8e731f
Patch23:        0002-Add-computer-name-support-to-realm-join-CLI.patch
8e731f
Patch24:        0003-Add-documentation-for-computer-name-setting.patch
8e731f
Patch25:        0001-Make-DBus-aware-of-systemd.patch
8e731f
Patch26:        0001-Add-os-name-and-os-version-command-line-options.patch
8e731f
Patch27:        0001-doc-add-computer-name-to-realm-man-page.patch
8e731f
Patch28:        0001-Fix-man-page-reference-in-systemd-service-file.patch
717641
Patch29:        0001-Use-current-idmap-options-for-smb.conf.patch
717641
Patch30:        0001-Find-NetBIOS-name-in-keytab-while-leaving.patch
717641
Patch31:        0001-Fix-issues-found-by-Coverity.patch
c1b752
ed0ebb
# rhbz#1625001 - realmd.conf documentation incorrect
ed0ebb
Patch32:        0001-doc-fix-discover-name-only.patch
ed0ebb
Patch33:        0002-doc-add-see-also-to-man-pages.patch
ed0ebb
ed0ebb
# rhbz#1625005 - Document realmd.conf and how realmd reads the configuration
ed0ebb
Patch34:        0001-doc-extend-description-of-config-handling.patch
ed0ebb
ed0ebb
# rhbz#1638396 - rebuild fails if DISTRO variable is exported
ed0ebb
Patch35:        0001-configure-do-not-inherit-DISTRO-from-the-environment.patch
ed0ebb
ed0ebb
# rhbz#1714223 - realm join should not enable use_fully_qualified_names by default
ed0ebb
Patch36:        0001-Change-qualified-names-default-for-IPA.patch
ed0ebb
ed0ebb
# rhbz#1832134 - realmdjoin to AD server with client-software winbind
ed0ebb
#                membership-software samba does not set 'kerberos method =
ed0ebb
#                secrets and keytab'
ed0ebb
Patch37:        0001-service-use-kerberos-method-secrets-and-keytab.patch
ed0ebb
871079
# rhbz#1849696 - realm command to use option like dnshostname=fqdn
871079
Patch38:        0001-service-use-additional-dns-hostnames-with-net-ads-jo.patch
871079
c1b752
BuildRequires:  automake
c1b752
BuildRequires:  autoconf
c533e4
BuildRequires:	intltool pkgconfig
c533e4
BuildRequires:	gettext-devel
c533e4
BuildRequires:	glib2-devel >= 2.32.0
c533e4
BuildRequires:	openldap-devel
c533e4
BuildRequires:	polkit-devel
c533e4
BuildRequires:	krb5-devel
c533e4
BuildRequires:	systemd-devel
c533e4
BuildRequires:	libxslt
c533e4
BuildRequires:	xmlto
df3356
BuildRequires:	automake
c533e4
c533e4
Requires:	authconfig
c533e4
Requires:	oddjob-mkhomedir
c533e4
c533e4
%description
c533e4
realmd is a DBus system service which manages discovery and enrollment in realms
c533e4
and domains like Active Directory or IPA. The control center uses realmd as the
c533e4
back end to 'join' a domain simply and automatically configure things correctly.
c533e4
c533e4
%package devel-docs
c533e4
Summary:	Developer documentation files for %{name}
c533e4
c533e4
%description devel-docs
c533e4
The %{name}-devel package contains developer documentation for developing
c533e4
applications that use %{name}.
c533e4
c533e4
%define _hardened_build 1
c533e4
c533e4
%prep
c533e4
%setup -q
c533e4
%patch0 -p1
df3356
%patch2 -p1
df3356
%patch3 -p1
c1b752
%patch4 -p1
8e731f
%patch11 -p1
8e731f
%patch12 -p1
c1b752
%patch13 -p1
c1b752
%patch20 -p1
8e731f
%patch21 -p1
8e731f
%patch22 -p1
8e731f
%patch23 -p1
8e731f
%patch24 -p1
8e731f
%patch25 -p1
8e731f
%patch26 -p1
8e731f
%patch27 -p1
8e731f
%patch28 -p1
717641
%patch29 -p1
717641
%patch30 -p1
717641
%patch31 -p1
ed0ebb
%patch32 -p1
ed0ebb
%patch33 -p1
ed0ebb
%patch34 -p1
ed0ebb
%patch35 -p1
ed0ebb
%patch36 -p1
ed0ebb
%patch37 -p1
871079
%patch38 -p1
c533e4
c533e4
%build
c1b752
aclocal
c1b752
automake --add-missing
c1b752
autoconf
c533e4
%configure --disable-silent-rules
c533e4
make %{?_smp_mflags}
c533e4
c533e4
%check
c533e4
make check
c533e4
c533e4
%install
c533e4
make install DESTDIR=%{buildroot}
c533e4
c533e4
%find_lang realmd
c533e4
8e731f
%post
8e731f
%systemd_post realmd.service
8e731f
8e731f
%preun
8e731f
%systemd_preun realmd.service
8e731f
8e731f
%postun
8e731f
%systemd_postun_with_restart realmd.service
8e731f
c533e4
%files -f realmd.lang
c1b752
%doc AUTHORS COPYING NEWS README
c533e4
%{_sysconfdir}/dbus-1/system.d/org.freedesktop.realmd.conf
c533e4
%{_sbindir}/realm
c533e4
%dir %{_libdir}/realmd
c533e4
%{_libdir}/realmd/realmd
c533e4
%{_libdir}/realmd/realmd-defaults.conf
c533e4
%{_libdir}/realmd/realmd-distro.conf
c533e4
%{_unitdir}/realmd.service
c533e4
%{_datadir}/dbus-1/system-services/org.freedesktop.realmd.service
c533e4
%{_datadir}/polkit-1/actions/org.freedesktop.realmd.policy
c533e4
%{_mandir}/man8/realm.8.gz
c533e4
%{_mandir}/man5/realmd.conf.5.gz
c533e4
%{_localstatedir}/cache/realmd/
c533e4
c533e4
%files devel-docs
c533e4
%doc %{_datadir}/doc/realmd/
c1b752
%doc ChangeLog
c533e4
c533e4
%changelog
871079
* Wed Nov 25 2020 Sumit Bose <sbose@redhat.com> - 0.16.1-12.1
871079
use 'additional dns hostnames' with net ads join
871079
- Resolves: rhbz#1849696
871079
ed0ebb
* Fri May 08 2020 Sumit Bose <sbose@redhat.com> - 0.16.1-12
ed0ebb
Fixes for RHEL-7.9
ed0ebb
- Resolves: rhbz#1625001
ed0ebb
- Resolves: rhbz#1625005
ed0ebb
- Resolves: rhbz#1638396
ed0ebb
- Resolves: rhbz#1714223
ed0ebb
- Resolves: rhbz#1832134
ed0ebb
717641
* Tue Aug 21 2018 Sumit Bose <sbose@redhat.com> - 0.16.1-11
717641
Improve fix for rhbz#1370457 and fix Coverity issues
717641
- Resolves: rhbz#1370457
717641
717641
* Thu Jun 14 2018 Sumit Bose <sbose@redhat.com> - 0.16.1-10
717641
Use current Samba options and read NetBIOS name from keytab
717641
- Resolves: rhbz#1484072
717641
- Resolves: rhbz#1370457
717641
8e731f
* Wed Sep 07 2016 Sumit Bose <sbose@redhat.com> - 0.16.1-9
8e731f
Rebuild to fix wrong doc path
8e731f
- Resolves: rhbz#1360702
8e731f
8e731f
* Wed Jul 27 2016 Sumit Bose <sbose@redhat.com> - 0.16.1-8
8e731f
Fix man page reference in systemd service file
8e731f
- Resolves: rhbz#1360702
8e731f
8e731f
* Mon Jul 25 2016 Sumit Bose <sbose@redhat.com> - 0.16.1-7
8e731f
doc: add computer-name to realm man page
8e731f
- Related: rhbz#1293390
8e731f
8e731f
* Tue Jun 28 2016 Sumit Bose <sbose@redhat.com> - 0.16.1-6
8e731f
- Resolves: rhbz#1258745
8e731f
- Resolves: rhbz#1258488
8e731f
- Resolves: rhbz#1267563
8e731f
- Resolves: rhbz#1293390
8e731f
- Resolves: rhbz#1273924
8e731f
- Resolves: rhbz#1274368
8e731f
- Resolves: rhbz#1291924
8e731f
c1b752
* Fri Oct 16 2015 Stef Walter <stefw@redhat.com> - 0.16.1-5
c1b752
- Revert 0.16.1-4
c1b752
- Use samba by default
c1b752
- Resolves: rhbz#1271618
c1b752
c1b752
* Fri Sep 11 2015 Stef Walter <stefw@redhat.com> - 0.16.1-4
c1b752
- Fix regressions in 0.16.x releases
c1b752
- Resolves: rhbz#1258745
c1b752
- Resolves: rhbz#1258488
c1b752
c1b752
* Fri Jul 31 2015 Stef Walter <stefw@redhat.com> - 0.16.1-3
c1b752
- Fix regression accepting DNS domain names
c1b752
- Resolves: rhbz#1243771
c1b752
c1b752
* Fri Jul 24 2015 Stef Walter <stefw@redhat.com> - 0.16.1-2
c1b752
- Fix discarded patch: ipa-packages.patch
c1b752
c1b752
* Tue Jul 14 2015 Stef Walter <stefw@redhat.com> - 0.16.1-1
c1b752
- Updated to upstream 0.16.1
c1b752
- Resolves: rhbz#1241832
c1b752
- Resolves: rhbz#1230941
c1b752
c1b752
* Tue Apr 14 2015 Stef Walter <stefw@redhat.com> - 0.16.0-1
c1b752
- Updated to upstream 0.16.0
c1b752
- Resolves: rhbz#1174911
c1b752
- Resolves: rhbz#1142191
c1b752
- Resolves: rhbz#1142148
df3356
df3356
* Fri Jan 10 2014 Stef Walter <stefw@redhat.com> - 0.14.6-5
df3356
- Don't crash when full_name_format is not in sssd.conf [#1051033]
df3356
  This is a regression from a prior update.
df3356
df3356
* Tue Jan 07 2014 Stef Walter <stefw@redhat.com> - 0.14.6-4
df3356
- Fix full_name_format printf(3) related failure [#1048087]
df3356
df3356
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 0.14.6-3
df3356
- Mass rebuild 2013-12-27
df3356
c533e4
* Fri Sep 20 2013 Stef Walter <stefw@redhat.com> - 0.14.6-2
c533e4
- Start oddjob after joining a domain [#967023]
c533e4
c533e4
* Mon Sep 09 2013 Stef Walter <stefw@redhat.com> - 0.14.6-1
c533e4
- Update to upstream 0.14.6 point release
c533e4
- Set 'kerberos method = system keytab' in smb.conf properly [#997580]
c533e4
- Limit Netbios name to 15 chars when joining AD domain [#1001667]
c533e4
c533e4
* Thu Aug 15 2013 Stef Walter <stefw@redhat.com> - 0.14.5-1
c533e4
- Update to upstream 0.14.5 point release
c533e4
- Fix regression conflicting --unattended and -U as in --user args [#996223]
c533e4
- Pass discovered server address to adcli tool [#996995]
c533e4
c533e4
* Wed Aug 07 2013 Stef Walter <stefw@redhot.com> - 0.14.4-1
c533e4
- Update to upstream 0.14.4 point release
c533e4
- Fix up the [sssd] section in sssd.conf if it's screwed up [#987491]
c533e4
- Add an --unattended argument to realm command line client [#976593]
c533e4
- Clearer 'realm permit' manual page example [#985800]
c533e4
c533e4
* Mon Jul 22 2013 Stef Walter <stefw@redhat.com> - 0.14.3-1
c533e4
- Update to upstream 0.14.3 point release
c533e4
- Populate LoginFormats correctly [#967011]
c533e4
- Documentation clarifications [#985773] [#967565]
c533e4
- Set sssd.conf default_shell per domain [#967569]
c533e4
- Notify in terminal output when installing packages [#984960]
c533e4
- If joined via adcli, delete computer with adcli too [#967008]
c533e4
- If input is not a tty, then read from stdin without getpass()
c533e4
- Configure pam_winbind.conf appropriately [#985819]
c533e4
- Refer to FreeIPA as IPA [#967019]
c533e4
- Support use of kerberos ccache to join when winbind [#985817]
c533e4
c533e4
* Tue Jun 11 2013 Stef Walter <stefw@redhat.com> - 0.14.2-3
c533e4
- Run test suite when building the package
c533e4
- Fix rpmlint errors
c533e4
c533e4
* Thu Jun 06 2013 Stef Walter <stefw@redhat.com> - 0.14.2-2
c533e4
- Install oddjobd and oddjob-mkhomedir when joining domains [#969441]
c533e4
c533e4
* Mon May 27 2013 Stef Walter <stefw@redhat.com> - 0.14.2-1
c533e4
- Update to upstream 0.14.2 version
c533e4
- Discover FreeIPA 3.0 with AD trust correctly [#966148]
c533e4
- Only allow joining one realm by default [#966650]
c533e4
- Enable the oddjobd service after joining a domain [#964971]
c533e4
- Remove sssd.conf allow lists when permitting all [#965760]
c533e4
- Add dependency on authconfig [#964675]
c533e4
- Remove glib-networking dependency now that we no longer use SSL.
c533e4
c533e4
* Mon May 13 2013 Stef Walter <stefw@redhat.com> - 0.14.1-1
c533e4
- Update to upstream 0.14.1 version
c533e4
- Fix crasher/regression using passwords with joins [#961435]
c533e4
- Make second Ctrl-C just quit realm tool [#961325]
c533e4
- Fix critical warning when leaving IPA realm [#961320]
c533e4
- Don't print out journalctl command in obvious situations [#961230]
c533e4
- Document the --all option to 'realm discover' [#961279]
c533e4
- No need to require sssd-tools package [#961254]
c533e4
- Enable services even in install mode [#960887]
c533e4
- Use the AD domain name in sssd.conf directly [#960270]
c533e4
- Fix critical warning when service Release() method [#961385]
c533e4
c533e4
* Mon May 06 2013 Stef Walter <stefw@redhat.com> - 0.14.0-1
c533e4
- Work around broken krb5 with empty passwords [#960001]
c533e4
- Add manual page for realmd.conf [#959357]
c533e4
- Update to upstream 0.14.0 version
c533e4
c533e4
* Thu May 02 2013 Stef Walter <stefw@redhat.com> - 0.13.91-1
c533e4
- Fix regression when using one time password [#958667]
c533e4
- Support for permitting logins by group [#887675]
c533e4
c533e4
* Mon Apr 29 2013 Stef Walter <stefw@redhat.com> - 0.13.90-1
c533e4
- Add option to disable package-kit installs [#953852]
c533e4
- Add option to use unqualified names [#953825]
c533e4
- Better discovery of domains [#953153]
c533e4
- Concept of managing parts of the system [#914892]
c533e4
- Fix problems with cache directory [#913457]
c533e4
- Clearly explain when realm cannot be joined [#878018]
c533e4
- Many other upstream enhancements and fixes
c533e4
c533e4
* Wed Apr 17 2013 Stef Walter <stefw@redhat.com> - 0.13.3-2
c533e4
- Add missing glib-networking dependency, currently used
c533e4
  for FreeIPA discovery [#953151]
c533e4
c533e4
* Wed Apr 17 2013 Stef Walter <stefw@redhat.com> - 0.13.3-1
c533e4
- Update for upstream 0.13.3 version
c533e4
- Add dependency on systemd for installing service file
c533e4
c533e4
* Tue Apr 16 2013 Stef Walter <stefw@redhat.com> - 0.13.2-2
c533e4
- Fix problem with sssd not starting after joining
c533e4
c533e4
* Mon Feb 18 2013 Stef Walter <stefw@redhat.com> - 0.13.2-1
c533e4
- Update to upstream 0.13.2 version
c533e4
c533e4
* Mon Feb 18 2013 Stef Walter <stefw@redhat.com> - 0.13.1-1
c533e4
- Update to upstream 0.13.1 version for bug fixes
c533e4
c533e4
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.12-2
c533e4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
c533e4
c533e4
* Mon Nov 12 2012 Stef Walter <stefw@redhat.com> - 0.12-1
c533e4
- Update to upstream 0.12 version for bug fixes
c533e4
c533e4
* Tue Oct 30 2012 Stef Walter <stefw@redhat.com> - 0.11-1
c533e4
- Update to upstream 0.11 version
c533e4
c533e4
* Sat Oct 20 2012 Stef Walter <stefw@redhat.com> - 0.10-1
c533e4
- Update to upstream 0.10 version
c533e4
c533e4
* Wed Oct 17 2012 Stef Walter <stefw@redhat.com> - 0.9-1
c533e4
- Update to upstream 0.9 version
c533e4
c533e4
* Wed Sep 19 2012 Stef Walter <stefw@redhat.com> - 0.8-2
c533e4
- Add openldap-devel build requirement
c533e4
c533e4
* Wed Sep 19 2012 Stef Walter <stefw@redhat.com> - 0.8-1
c533e4
- Update to upstream 0.8 version
c533e4
- Add support for translations
c533e4
c533e4
* Mon Aug 20 2012 Stef Walter <stefw@redhat.com> - 0.7-2
c533e4
- Build requires gtk-doc
c533e4
c533e4
* Mon Aug 20 2012 Stef Walter <stefw@redhat.com> - 0.7-1
c533e4
- Update to upstream 0.7 version
c533e4
- Remove files no longer present in upstream version
c533e4
- Put documentation in its own realmd-devel-docs subpackage
c533e4
- Update upstream URLs
c533e4
c533e4
* Mon Aug 6 2012 Stef Walter <stefw@redhat.com> - 0.6-1
c533e4
- Update to upstream 0.6 version
c533e4
c533e4
* Tue Jul 17 2012 Stef Walter <stefw@redhat.com> - 0.5-2
c533e4
- Remove missing SssdIpa.service file from the files list.
c533e4
  This file will return upstream in 0.6
c533e4
c533e4
* Tue Jul 17 2012 Stef Walter <stefw@redhat.com> - 0.5-1
c533e4
- Update to upstream 0.5 version
c533e4
c533e4
* Tue Jun 19 2012 Stef Walter <stefw@redhat.com> - 0.4-1
c533e4
- Update to upstream 0.4 version
c533e4
- Cleanup various rpmlint warnings
c533e4
c533e4
* Tue Jun 19 2012 Stef Walter <stefw@redhat.com> - 0.3-2
c533e4
- Add doc files
c533e4
- Own directories
c533e4
- Remove obsolete parts of spec file
c533e4
- Remove explicit dependencies
c533e4
- Updated License line to LGPLv2+
c533e4
c533e4
* Tue Jun 19 2012 Stef Walter <stefw@redhat.com> - 0.3
c533e4
- Build fixes
c533e4
c533e4
* Mon Jun 18 2012 Stef Walter <stefw@redhat.com> - 0.2
c533e4
- Initial RPM