From 456388febf1cac83fa3aafe7441b668b45301aec Mon Sep 17 00:00:00 2001 From: Alexey Tikhonov Date: Sat, 6 Apr 2024 11:47:06 +0200 Subject: [PATCH] SPEC: don't package man pages --- contrib/sssd.spec.in | 89 +------------------------------------------- 1 file changed, 1 insertion(+), 88 deletions(-) diff --git a/contrib/sssd.spec.in b/contrib/sssd.spec.in index cc6bd604fb5..428e7cc47d2 100644 --- a/contrib/sssd.spec.in +++ b/contrib/sssd.spec.in @@ -562,6 +562,7 @@ autoreconf -ivf --with-ssh-known-hosts-proxy \ %endif --without-selinux \ + --without-manpages \ %{nil} %make_build all docs runstatedir=%{_rundir} @@ -636,64 +637,6 @@ do touch $subpackage.lang done -for man in `find $RPM_BUILD_ROOT/%{_mandir}/??/man?/ -type f | sed -e "s#$RPM_BUILD_ROOT/%{_mandir}/##"` -do - lang=`echo $man | cut -c 1-2` - case `basename $man` in - sss_cache*) - echo \%lang\(${lang}\) \%{_mandir}/${man}\* >> sssd.lang - ;; - sss_ssh*) - echo \%lang\(${lang}\) \%{_mandir}/${man}\* >> sssd.lang - ;; - sss_rpcidmapd*) - echo \%lang\(${lang}\) \%{_mandir}/${man}\* >> sssd_nfs_idmap.lang - ;; - sss_*) - echo \%lang\(${lang}\) \%{_mandir}/${man}\* >> sssd_tools.lang - ;; - sssctl*) - echo \%lang\(${lang}\) \%{_mandir}/${man}\* >> sssd_tools.lang - ;; - sssd_krb5_*) - echo \%lang\(${lang}\) \%{_mandir}/${man}\* >> sssd_client.lang - ;; - pam_sss*) - echo \%lang\(${lang}\) \%{_mandir}/${man}\* >> sssd_client.lang - ;; - sssd-ldap*) - echo \%lang\(${lang}\) \%{_mandir}/${man}\* >> sssd_ldap.lang - ;; - sssd-krb5*) - echo \%lang\(${lang}\) \%{_mandir}/${man}\* >> sssd_krb5.lang - ;; - sssd-ipa*) - echo \%lang\(${lang}\) \%{_mandir}/${man}\* >> sssd_ipa.lang - ;; - sssd-ad*) - echo \%lang\(${lang}\) \%{_mandir}/${man}\* >> sssd_ad.lang - ;; - sssd-proxy*) - echo \%lang\(${lang}\) \%{_mandir}/${man}\* >> sssd_proxy.lang - ;; - sssd-ifp*) - echo \%lang\(${lang}\) \%{_mandir}/${man}\* >> sssd_dbus.lang - ;; - sssd-kcm*) - echo \%lang\(${lang}\) \%{_mandir}/${man}\* >> sssd_kcm.lang - ;; - idmap_sss*) - echo \%lang\(${lang}\) \%{_mandir}/${man}\* >> sssd_winbind_idmap.lang - ;; - sss-certmap*) - echo \%lang\(${lang}\) \%{_mandir}/${man}\* >> libsss_certmap.lang - ;; - *) - echo \%lang\(${lang}\) \%{_mandir}/${man}\* >> sssd.lang - ;; - esac -done - # Print these to the rpmbuild log echo "sssd.lang:" cat sssd.lang @@ -782,17 +725,6 @@ install -D -p -m 0644 contrib/sssd.sysusers %{buildroot}%{_sysusersdir}/sssd.con %{_libdir}/%{name}/conf/sssd.conf %{_datadir}/sssd/cfg_rules.ini -%{_mandir}/man1/sss_ssh_authorizedkeys.1* -%{_mandir}/man1/sss_ssh_knownhosts.1* -%if %{build_ssh_known_hosts_proxy} -%{_mandir}/man1/sss_ssh_knownhostsproxy.1* -%endif -%{_mandir}/man5/sssd.conf.5* -%{_mandir}/man5/sssd-simple.5* -%{_mandir}/man5/sssd-sudo.5* -%{_mandir}/man5/sssd-session-recording.5* -%{_mandir}/man8/sssd.8* -%{_mandir}/man8/sss_cache.8* %if %{use_sysusers} %{_sysusersdir}/sssd.conf %endif @@ -806,8 +738,6 @@ install -D -p -m 0644 contrib/sssd.sysusers %{buildroot}%{_sysusersdir}/sssd.con %files ldap -f sssd_ldap.lang %license COPYING %{_libdir}/%{name}/libsss_ldap.so -%{_mandir}/man5/sssd-ldap.5* -%{_mandir}/man5/sssd-ldap-attributes.5* %files krb5-common %license COPYING @@ -818,7 +748,6 @@ install -D -p -m 0644 contrib/sssd.sysusers %{buildroot}%{_sysusersdir}/sssd.con %files krb5 -f sssd_krb5.lang %license COPYING %{_libdir}/%{name}/libsss_krb5.so -%{_mandir}/man5/sssd-krb5.5* %config(noreplace) %{_sysconfdir}/krb5.conf.d/enable_sssd_conf_dir %dir %{_datadir}/sssd/krb5-snippets %{_datadir}/sssd/krb5-snippets/enable_sssd_conf_dir @@ -831,13 +760,11 @@ install -D -p -m 0644 contrib/sssd.sysusers %{buildroot}%{_sysusersdir}/sssd.con %license COPYING %attr(770,%{sssd_user},%{sssd_user}) %dir %{keytabdir} %{_libdir}/%{name}/libsss_ipa.so -%{_mandir}/man5/sssd-ipa.5* %files ad -f sssd_ad.lang %license COPYING %{_libdir}/%{name}/libsss_ad.so %{_libexecdir}/%{servicename}/gpo_child -%{_mandir}/man5/sssd-ad.5* %files proxy %license COPYING @@ -847,7 +774,6 @@ install -D -p -m 0644 contrib/sssd.sysusers %{buildroot}%{_sysusersdir}/sssd.con %files dbus -f sssd_dbus.lang %license COPYING %{_libexecdir}/%{servicename}/sssd_ifp -%{_mandir}/man5/sssd-ifp.5* # InfoPipe DBus plumbing %{_datadir}/dbus-1/system.d/org.freedesktop.sssd.infopipe.conf %{_datadir}/dbus-1/system-services/org.freedesktop.sssd.infopipe.service @@ -869,10 +795,6 @@ install -D -p -m 0644 contrib/sssd.sysusers %{buildroot}%{_sysusersdir}/sssd.con %dir %{_libdir}/%{name} %dir %{_libdir}/%{name}/modules %{_libdir}/%{name}/modules/sssd_krb5_localauth_plugin.so -%{_mandir}/man8/pam_sss.8* -%{_mandir}/man8/pam_sss_gss.8* -%{_mandir}/man8/sssd_krb5_locator_plugin.8* -%{_mandir}/man8/sssd_krb5_localauth_plugin.8* %files -n libsss_sudo %license src/sss_client/COPYING @@ -892,11 +814,6 @@ install -D -p -m 0644 contrib/sssd.sysusers %{buildroot}%{_sysusersdir}/sssd.con %{_sbindir}/sssctl %{_libexecdir}/%{servicename}/sss_analyze %{python3_sitelib}/sssd/ -%{_mandir}/man8/sss_obfuscate.8* -%{_mandir}/man8/sss_override.8* -%{_mandir}/man8/sss_debuglevel.8* -%{_mandir}/man8/sss_seed.8* -%{_mandir}/man8/sssctl.8* %files -n python3-sssdconfig -f python3_sssdconfig.lang %dir %{python3_sitelib}/SSSDConfig @@ -952,16 +869,13 @@ install -D -p -m 0644 contrib/sssd.sysusers %{buildroot}%{_sysusersdir}/sssd.con %files winbind-idmap -f sssd_winbind_idmap.lang %dir %{_libdir}/samba/idmap %{_libdir}/samba/idmap/sss.so -%{_mandir}/man8/idmap_sss.8* %files nfs-idmap -f sssd_nfs_idmap.lang -%{_mandir}/man5/sss_rpcidmapd.5* %{_libdir}/libnfsidmap/sss.so %files -n libsss_certmap -f libsss_certmap.lang %license src/sss_client/COPYING src/sss_client/COPYING.LESSER %{_libdir}/libsss_certmap.so.* -%{_mandir}/man5/sss-certmap.5* %files -n libsss_certmap-devel %doc certmap_doc/html @@ -974,7 +888,6 @@ install -D -p -m 0644 contrib/sssd.sysusers %{buildroot}%{_sysusersdir}/sssd.con %config(noreplace) %{_sysconfdir}/krb5.conf.d/kcm_default_ccache %dir %{_datadir}/sssd-kcm %{_datadir}/sssd-kcm/kcm_default_ccache -%{_mandir}/man8/sssd-kcm.8* %files idp %{_libexecdir}/%{servicename}/oidc_child