diff options
author | Simo Sorce <ssorce@redhat.com> | 2008-03-25 15:17:21 -0400 |
---|---|---|
committer | Simo Sorce <ssorce@redhat.com> | 2008-03-25 15:17:21 -0400 |
commit | 934ac494b9c4f7e66dfbacaa0cc74944e9cc108a (patch) | |
tree | 15556b7ea5964253e8de79c5fd0e0cb3204dfb74 /contrib/RHEL4/ipa-client.spec | |
parent | c3a14e978ce39b1bbef5e7b6f76e6a84f0fc7df6 (diff) | |
download | freeipa-934ac494b9c4f7e66dfbacaa0cc74944e9cc108a.tar.gz freeipa-934ac494b9c4f7e66dfbacaa0cc74944e9cc108a.tar.xz freeipa-934ac494b9c4f7e66dfbacaa0cc74944e9cc108a.zip |
Add autoconf and automake stuff and provide a spec file.
To build a package one need to run autoconf and then create a tarball of the
RHEL4 directory so that the content is like this:
$ ls -1 ipa-client-0.99.0
aclocal.m4
AUTHORS
autom4te.cache
ChangeLog
configure
configure.ac
COPYING
INSTALL
install-sh
ipachangeconf.py
ipa-client-setup
ipa.conf
Makefile.am
Makefile.in
missing
NEWS
README
setup.py
the spec file will then be able to build a package for RHEL4
Diffstat (limited to 'contrib/RHEL4/ipa-client.spec')
-rw-r--r-- | contrib/RHEL4/ipa-client.spec | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/contrib/RHEL4/ipa-client.spec b/contrib/RHEL4/ipa-client.spec new file mode 100644 index 000000000..c62c79f4a --- /dev/null +++ b/contrib/RHEL4/ipa-client.spec @@ -0,0 +1,50 @@ +Name: ipa-client +Version: 0.99.0 +Release: 1%{?dist} +Summary: IPA client Setup script for RHEL-4 + +Group: System Environment/Base +License: GPLv2 +URL: http://www.freeipa.org +Source0: %{name}-%{version}.tgz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildArch: noarch +#BuildRequires: python-devel + +Requires: python + +%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} + +%description +IPA is a server for identity, policy, and audit. +The client package provide install and configuration scripts for RHEL-4 clients. + +%prep +%setup -q +%configure --prefix=/usr + +%build + +make + +%install +rm -rf %{buildroot} +%{__python} setup.py install --no-compile --root=%{buildroot} +%makeinstall \ + SBINDIR=$RPM_BUILD_ROOT%{_sbindir} +mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/ipa +install -m644 ipa.conf $RPM_BUILD_ROOT%{_sysconfdir}/ipa/ipa.conf + +%clean +rm -rf %{buildroot} + +%files +%defattr(-,root,root,-) +%{_sbindir}/ipa-client-setup +%{python_sitelib}/ipachangeconf.py* +%config(noreplace) %{_sysconfdir}/ipa/ipa.conf + +%changelog +* Mon Mar 25 2008 Simo Sorce <ssorce@redhat.com> - 0.99.0-1 +- First RHEL-4 release + |