mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Clean up some rpmlint errors in the spec file.
Re-arrange doc and defattr to clean up rpmlint warnings Remove conditionals on older releases Move some man pages into admintools subpackage Remove some explicit Requires in client that aren't needed Consistent use of buildroot vs RPM_BUILD_ROOT Ticket 804
This commit is contained in:
parent
ab2ca8022e
commit
1229fd5654
54
ipa.spec.in
54
ipa.spec.in
@ -69,9 +69,7 @@ Requires: 389-ds-base >= 1.2.7.4
|
|||||||
Requires: openldap-clients
|
Requires: openldap-clients
|
||||||
Requires: nss
|
Requires: nss
|
||||||
Requires: nss-tools
|
Requires: nss-tools
|
||||||
%if 0%{?fedora} >= 12 || 0%{?rhel} >= 6
|
|
||||||
Requires: krb5-server
|
Requires: krb5-server
|
||||||
%endif
|
|
||||||
Requires: krb5-server-ldap
|
Requires: krb5-server-ldap
|
||||||
Requires: krb5-pkinit-openssl
|
Requires: krb5-pkinit-openssl
|
||||||
Requires: cyrus-sasl-gssapi
|
Requires: cyrus-sasl-gssapi
|
||||||
@ -79,19 +77,13 @@ Requires: ntp
|
|||||||
Requires: httpd
|
Requires: httpd
|
||||||
Requires: mod_wsgi
|
Requires: mod_wsgi
|
||||||
Requires: mod_auth_kerb
|
Requires: mod_auth_kerb
|
||||||
%if 0%{?fedora} >= 12 || 0%{?rhel} >= 6
|
|
||||||
Requires: mod_nss
|
Requires: mod_nss
|
||||||
%endif
|
|
||||||
Requires: python-ldap
|
Requires: python-ldap
|
||||||
Requires: python-krbV
|
Requires: python-krbV
|
||||||
Requires: acl
|
Requires: acl
|
||||||
Requires: python-pyasn1 >= 0.0.9a
|
Requires: python-pyasn1 >= 0.0.9a
|
||||||
Requires: libcap
|
Requires: libcap
|
||||||
%{?fc12:Requires: selinux-policy >= 3.6.32-123}
|
|
||||||
%{?fc13:Requires: selinux-policy >= 3.7.19-40}
|
|
||||||
%if 0%{?fedora} >= 14 || 0%{?rhel} >= 6
|
|
||||||
Requires: selinux-policy
|
Requires: selinux-policy
|
||||||
%endif
|
|
||||||
Requires(post): selinux-policy-base
|
Requires(post): selinux-policy-base
|
||||||
Requires: slapi-nis >= 0.21
|
Requires: slapi-nis >= 0.21
|
||||||
Requires: pki-ca >= 9.0.0
|
Requires: pki-ca >= 9.0.0
|
||||||
@ -131,12 +123,10 @@ Requires: python-ldap
|
|||||||
Requires: cyrus-sasl-gssapi
|
Requires: cyrus-sasl-gssapi
|
||||||
Requires: ntp
|
Requires: ntp
|
||||||
Requires: krb5-workstation
|
Requires: krb5-workstation
|
||||||
Requires: krb5-libs
|
|
||||||
Requires: authconfig
|
Requires: authconfig
|
||||||
Requires: pam_krb5
|
Requires: pam_krb5
|
||||||
Requires: wget
|
Requires: wget
|
||||||
Requires: xmlrpc-c
|
Requires: xmlrpc-c
|
||||||
Requires: libcurl
|
|
||||||
Requires: sssd >= 1.2.1
|
Requires: sssd >= 1.2.1
|
||||||
Requires: certmonger >= 0.26
|
Requires: certmonger >= 0.26
|
||||||
Requires: nss-tools
|
Requires: nss-tools
|
||||||
@ -196,11 +186,7 @@ export CPPFLAGS="$CPPFLAGS %{optflags}"
|
|||||||
make version-update
|
make version-update
|
||||||
cd ipa-client; ../autogen.sh --prefix=%{_usr} --sysconfdir=%{_sysconfdir} --localstatedir=%{_localstatedir} --libdir=%{_libdir} --mandir=%{_mandir}; cd ..
|
cd ipa-client; ../autogen.sh --prefix=%{_usr} --sysconfdir=%{_sysconfdir} --localstatedir=%{_localstatedir} --libdir=%{_libdir} --mandir=%{_mandir}; cd ..
|
||||||
%if ! %{ONLY_CLIENT}
|
%if ! %{ONLY_CLIENT}
|
||||||
%if 0%{?fedora} >= 14 || 0%{?rhel} >= 6
|
|
||||||
cd daemons; ../autogen.sh --prefix=%{_usr} --sysconfdir=%{_sysconfdir} --localstatedir=%{_localstatedir} --libdir=%{_libdir} --mandir=%{_mandir} --with-openldap; cd ..
|
cd daemons; ../autogen.sh --prefix=%{_usr} --sysconfdir=%{_sysconfdir} --localstatedir=%{_localstatedir} --libdir=%{_libdir} --mandir=%{_mandir} --with-openldap; cd ..
|
||||||
%else
|
|
||||||
cd daemons; ../autogen.sh --prefix=%{_usr} --sysconfdir=%{_sysconfdir} --localstatedir=%{_localstatedir} --libdir=%{_libdir} --mandir=%{_mandir}; cd ..
|
|
||||||
%endif
|
|
||||||
cd install; ../autogen.sh --prefix=%{_usr} --sysconfdir=%{_sysconfdir} --localstatedir=%{_localstatedir} --libdir=%{_libdir} --mandir=%{_mandir}; cd ..
|
cd install; ../autogen.sh --prefix=%{_usr} --sysconfdir=%{_sysconfdir} --localstatedir=%{_localstatedir} --libdir=%{_libdir} --mandir=%{_mandir}; cd ..
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
@ -248,19 +234,19 @@ ln -s ../../../..%{_sysconfdir}/ipa/html/unauthorized.html \
|
|||||||
%{buildroot}%{_usr}/share/ipa/html/unauthorized.html
|
%{buildroot}%{_usr}/share/ipa/html/unauthorized.html
|
||||||
|
|
||||||
# So we can own our Apache configuration
|
# So we can own our Apache configuration
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf.d/
|
mkdir -p %{buildroot}%{_sysconfdir}/httpd/conf.d/
|
||||||
/bin/touch $RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf.d/ipa.conf
|
/bin/touch %{buildroot}%{_sysconfdir}/httpd/conf.d/ipa.conf
|
||||||
/bin/touch $RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf.d/ipa-rewrite.conf
|
/bin/touch %{buildroot}%{_sysconfdir}/httpd/conf.d/ipa-rewrite.conf
|
||||||
install -m755 ipa.init $RPM_BUILD_ROOT%{_initrddir}/ipa
|
install -m755 ipa.init %{buildroot}%{_initrddir}/ipa
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/ipa/
|
mkdir -p %{buildroot}%{_sysconfdir}/ipa/
|
||||||
/bin/touch $RPM_BUILD_ROOT%{_sysconfdir}/ipa/default.conf
|
/bin/touch %{buildroot}%{_sysconfdir}/ipa/default.conf
|
||||||
mkdir -p %{buildroot}/%{_localstatedir}/lib/ipa-client/sysrestore
|
mkdir -p %{buildroot}/%{_localstatedir}/lib/ipa-client/sysrestore
|
||||||
|
|
||||||
%if ! %{ONLY_CLIENT}
|
%if ! %{ONLY_CLIENT}
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d
|
mkdir -p %{buildroot}%{_sysconfdir}/bash_completion.d
|
||||||
install -pm 644 contrib/completion/ipa.bash_completion $RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d/ipa
|
install -pm 644 contrib/completion/ipa.bash_completion %{buildroot}%{_sysconfdir}/bash_completion.d/ipa
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
@ -335,8 +321,8 @@ fi
|
|||||||
|
|
||||||
%if ! %{ONLY_CLIENT}
|
%if ! %{ONLY_CLIENT}
|
||||||
%files server
|
%files server
|
||||||
%doc COPYING README Contributors.txt
|
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
|
%doc COPYING README Contributors.txt
|
||||||
%{_sbindir}/ipa-dns-install
|
%{_sbindir}/ipa-dns-install
|
||||||
%{_sbindir}/ipa-server-install
|
%{_sbindir}/ipa-server-install
|
||||||
%{_sbindir}/ipa-replica-install
|
%{_sbindir}/ipa-replica-install
|
||||||
@ -407,18 +393,16 @@ fi
|
|||||||
%{_mandir}/man1/ipa-dns-install.1.gz
|
%{_mandir}/man1/ipa-dns-install.1.gz
|
||||||
%{_mandir}/man8/ipa_kpasswd.8.gz
|
%{_mandir}/man8/ipa_kpasswd.8.gz
|
||||||
%{_mandir}/man8/ipactl.8.gz
|
%{_mandir}/man8/ipactl.8.gz
|
||||||
%{_mandir}/man1/ipa-compat-manage.1.gz
|
|
||||||
%{_mandir}/man1/ipa-nis-manage.1.gz
|
|
||||||
%{_mandir}/man1/ipa-host-net-manage.1.gz
|
|
||||||
%{_mandir}/man1/ipa-ldap-updater.1.gz
|
|
||||||
|
|
||||||
%files server-selinux
|
%files server-selinux
|
||||||
|
%defattr(-,root,root,-)
|
||||||
%{_usr}/share/selinux/targeted/ipa_kpasswd.pp
|
%{_usr}/share/selinux/targeted/ipa_kpasswd.pp
|
||||||
%{_usr}/share/selinux/targeted/ipa_httpd.pp
|
%{_usr}/share/selinux/targeted/ipa_httpd.pp
|
||||||
%{_usr}/share/selinux/targeted/ipa_dogtag.pp
|
%{_usr}/share/selinux/targeted/ipa_dogtag.pp
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%files client
|
%files client
|
||||||
|
%defattr(-,root,root,-)
|
||||||
%doc COPYING README Contributors.txt
|
%doc COPYING README Contributors.txt
|
||||||
%{_sbindir}/ipa-client-install
|
%{_sbindir}/ipa-client-install
|
||||||
%{_sbindir}/ipa-getkeytab
|
%{_sbindir}/ipa-getkeytab
|
||||||
@ -439,8 +423,8 @@ fi
|
|||||||
|
|
||||||
%if ! %{ONLY_CLIENT}
|
%if ! %{ONLY_CLIENT}
|
||||||
%files admintools
|
%files admintools
|
||||||
%doc COPYING README Contributors.txt
|
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
|
%doc COPYING README Contributors.txt
|
||||||
%{_bindir}/ipa
|
%{_bindir}/ipa
|
||||||
%{_sbindir}/ipa-ldap-updater
|
%{_sbindir}/ipa-ldap-updater
|
||||||
%{_sbindir}/ipa-compat-manage
|
%{_sbindir}/ipa-compat-manage
|
||||||
@ -448,11 +432,15 @@ fi
|
|||||||
%{_sbindir}/ipa-host-net-manage
|
%{_sbindir}/ipa-host-net-manage
|
||||||
%{_sysconfdir}/bash_completion.d
|
%{_sysconfdir}/bash_completion.d
|
||||||
%{_mandir}/man1/ipa.1.gz
|
%{_mandir}/man1/ipa.1.gz
|
||||||
|
%{_mandir}/man1/ipa-compat-manage.1.gz
|
||||||
|
%{_mandir}/man1/ipa-nis-manage.1.gz
|
||||||
|
%{_mandir}/man1/ipa-host-net-manage.1.gz
|
||||||
|
%{_mandir}/man1/ipa-ldap-updater.1.gz
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%files python -f %{gettext_domain}.lang
|
%files python -f %{gettext_domain}.lang
|
||||||
%doc COPYING README Contributors.txt
|
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
|
%doc COPYING README Contributors.txt
|
||||||
%dir %{python_sitelib}/ipapython
|
%dir %{python_sitelib}/ipapython
|
||||||
%{python_sitelib}/ipapython/*.py*
|
%{python_sitelib}/ipapython/*.py*
|
||||||
%dir %{python_sitelib}/ipalib
|
%dir %{python_sitelib}/ipalib
|
||||||
@ -466,10 +454,16 @@ fi
|
|||||||
%config(noreplace) %{_sysconfdir}/ipa/default.conf
|
%config(noreplace) %{_sysconfdir}/ipa/default.conf
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Jan 25 2011 Rob Crittenden <rcritten@redhat.com> - 1.99-41
|
||||||
|
- Re-arrange doc and defattr to clean up rpmlint warnings
|
||||||
|
- Remove conditionals on older releases
|
||||||
|
- Move some man pages into admintools subpackage
|
||||||
|
- Remove some explicit Requires in client that aren't needed
|
||||||
|
- Consistent use of buildroot vs RPM_BUILD_ROOT
|
||||||
|
|
||||||
* Thu Jan 19 2011 Adam Young <ayoung@redhat.com> - 1.99-40
|
* Thu Jan 19 2011 Adam Young <ayoung@redhat.com> - 1.99-40
|
||||||
- Moved directory install/static to install/ui
|
- Moved directory install/static to install/ui
|
||||||
|
|
||||||
|
|
||||||
* Thu Jan 13 2011 Simo Sorce <ssorce@redhat.com> - 1.99-39
|
* Thu Jan 13 2011 Simo Sorce <ssorce@redhat.com> - 1.99-39
|
||||||
- Remove dependency on nss_ldap/nss-pam-ldapd
|
- Remove dependency on nss_ldap/nss-pam-ldapd
|
||||||
- The official client is sssd and that's what we use by default.
|
- The official client is sssd and that's what we use by default.
|
||||||
|
Loading…
Reference in New Issue
Block a user