mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Fix ipa-python packaging
Latest Fedora 9 python distutils generates .egg-info files; follow the recommendation at: http://fedoraproject.org/wiki/Packaging/Python/Eggs and just package everything under %{python_sitelib}/ Signed-off-by: Mark McLoughlin <markmc@redhat.com>
This commit is contained in:
parent
b3c39632ea
commit
2dd8c346f3
@ -14,8 +14,6 @@ Requires: PyKerberos
|
|||||||
|
|
||||||
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
||||||
|
|
||||||
%define pkgpythondir %{python_sitelib}/ipa
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Ipa is a server for identity, policy, and audit.
|
Ipa is a server for identity, policy, and audit.
|
||||||
|
|
||||||
@ -33,8 +31,7 @@ rm -rf %{buildroot}
|
|||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%dir %{pkgpythondir}
|
%{python_sitelib}/*
|
||||||
%{pkgpythondir}/*
|
|
||||||
%config(noreplace) %{_sysconfdir}/ipa/ipa.conf
|
%config(noreplace) %{_sysconfdir}/ipa/ipa.conf
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
@ -14,8 +14,6 @@ Requires: PyKerberos
|
|||||||
|
|
||||||
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
||||||
|
|
||||||
%define pkgpythondir %{python_sitelib}/ipa
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Ipa is a server for identity, policy, and audit.
|
Ipa is a server for identity, policy, and audit.
|
||||||
|
|
||||||
@ -33,8 +31,7 @@ rm -rf %{buildroot}
|
|||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%dir %{pkgpythondir}
|
%{python_sitelib}/*
|
||||||
%{pkgpythondir}/*
|
|
||||||
%config(noreplace) %{_sysconfdir}/ipa/ipa.conf
|
%config(noreplace) %{_sysconfdir}/ipa/ipa.conf
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
@ -34,7 +34,7 @@ def setup_package():
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
setup(
|
setup(
|
||||||
name = "freeipa-python",
|
name = "ipa",
|
||||||
version = "0.5.0",
|
version = "0.5.0",
|
||||||
license = "GPL",
|
license = "GPL",
|
||||||
author = "Karl MacMillan, et.al.",
|
author = "Karl MacMillan, et.al.",
|
||||||
|
Loading…
Reference in New Issue
Block a user