mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Added spec files for python and admintools.
This commit is contained in:
parent
8cf45633fe
commit
66ee656155
28
Makefile
28
Makefile
@ -23,7 +23,7 @@ PYTHON_MAJOR=0
|
|||||||
PYTHON_MINOR=1
|
PYTHON_MINOR=1
|
||||||
PYTHON_RELEASE=0
|
PYTHON_RELEASE=0
|
||||||
PYTHON_VERSION=$(PYTHON_MAJOR).$(PYTHON_MINOR).$(PYTHON_RELEASE)
|
PYTHON_VERSION=$(PYTHON_MAJOR).$(PYTHON_MINOR).$(PYTHON_RELEASE)
|
||||||
PYTHON_TARBALL_PREFIX=$(PRJ_PREFIX)-admintools-$(PYTHON_VERSION)
|
PYTHON_TARBALL_PREFIX=$(PRJ_PREFIX)-python-$(PYTHON_VERSION)
|
||||||
PYTHON_TARBALL=$(PYTHON_TARBALL_PREFIX).tgz
|
PYTHON_TARBALL=$(PYTHON_TARBALL_PREFIX).tgz
|
||||||
|
|
||||||
all:
|
all:
|
||||||
@ -45,6 +45,14 @@ clean:
|
|||||||
version-update:
|
version-update:
|
||||||
sed s/VERSION/$(SERV_VERSION)/ ipa-server/freeipa-server.spec.in \
|
sed s/VERSION/$(SERV_VERSION)/ ipa-server/freeipa-server.spec.in \
|
||||||
> ipa-server/freeipa-server.spec
|
> ipa-server/freeipa-server.spec
|
||||||
|
|
||||||
|
sed s/VERSION/$(ADMIN_VERSION)/ ipa-admintools/freeipa-admintools.spec.in \
|
||||||
|
> ipa-admintools/freeipa-admintools.spec
|
||||||
|
|
||||||
|
sed s/VERSION/$(PYTHON_VERSION)/ ipa-python/freeipa-python.spec.in \
|
||||||
|
> ipa-python/freeipa-python.spec
|
||||||
|
|
||||||
|
|
||||||
tarballs:
|
tarballs:
|
||||||
-mkdir -p dist
|
-mkdir -p dist
|
||||||
hg archive -t files dist/freeipa
|
hg archive -t files dist/freeipa
|
||||||
@ -70,11 +78,27 @@ tarballs:
|
|||||||
# cleanup
|
# cleanup
|
||||||
rm -fr dist/freeipa
|
rm -fr dist/freeipa
|
||||||
|
|
||||||
dist: version-update tarballs
|
rpm-ipa-server:
|
||||||
cp dist/$(SERV_TARBALL) ~/rpmbuild/SOURCES/.
|
cp dist/$(SERV_TARBALL) ~/rpmbuild/SOURCES/.
|
||||||
rpmbuild -ba ipa-server/freeipa-server.spec
|
rpmbuild -ba ipa-server/freeipa-server.spec
|
||||||
cp ~/rpmbuild/RPMS/noarch/$(PRJ_PREFIX)-server-$(SERV_VERSION)-*.rpm dist/.
|
cp ~/rpmbuild/RPMS/noarch/$(PRJ_PREFIX)-server-$(SERV_VERSION)-*.rpm dist/.
|
||||||
cp ~/rpmbuild/SRPMS/$(PRJ_PREFIX)-server-$(SERV_VERSION)-*.src.rpm dist/.
|
cp ~/rpmbuild/SRPMS/$(PRJ_PREFIX)-server-$(SERV_VERSION)-*.src.rpm dist/.
|
||||||
|
|
||||||
|
rpm-ipa-admin:
|
||||||
|
cp dist/$(ADMIN_TARBALL) ~/rpmbuild/SOURCES/.
|
||||||
|
rpmbuild -ba ipa-admintools/freeipa-admintools.spec
|
||||||
|
cp ~/rpmbuild/RPMS/noarch/$(PRJ_PREFIX)-admintools-$(ADMIN_VERSION)-*.rpm dist/.
|
||||||
|
cp ~/rpmbuild/SRPMS/$(PRJ_PREFIX)-admintools-$(ADMIN_VERSION)-*.src.rpm dist/.
|
||||||
|
|
||||||
|
rpm-ipa-python:
|
||||||
|
cp dist/$(PYTHON_TARBALL) ~/rpmbuild/SOURCES/.
|
||||||
|
rpmbuild -ba ipa-python/freeipa-python.spec
|
||||||
|
cp ~/rpmbuild/RPMS/noarch/$(PRJ_PREFIX)-python-$(PYTHON_VERSION)-*.rpm dist/.
|
||||||
|
cp ~/rpmbuild/SRPMS/$(PRJ_PREFIX)-python-$(PYTHON_VERSION)-*.src.rpm dist/.
|
||||||
|
|
||||||
|
rpms: rpm-ipa-server rpm-ipa-admin rpm-ipa-python
|
||||||
|
|
||||||
|
dist: version-update tarballs rpms
|
||||||
|
|
||||||
dist-clean: clean
|
dist-clean: clean
|
||||||
rm -fr dist
|
rm -fr dist
|
||||||
|
42
ipa-admintools/freeipa-admintools.spec
Executable file
42
ipa-admintools/freeipa-admintools.spec
Executable file
@ -0,0 +1,42 @@
|
|||||||
|
Name: freeipa-admintools
|
||||||
|
Version: 0.1.0
|
||||||
|
Release: 1%{?dist}
|
||||||
|
Summary: FreeIPA authentication server
|
||||||
|
|
||||||
|
Group: System Environment/Base
|
||||||
|
License: GPL
|
||||||
|
URL: http://www.freeipa.org
|
||||||
|
Source0: %{name}-%{version}.tgz
|
||||||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
|
BuildArch: noarch
|
||||||
|
|
||||||
|
Requires: python freeipa-python
|
||||||
|
|
||||||
|
%description
|
||||||
|
FreeIPA is a server for identity, policy, and audit.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q
|
||||||
|
|
||||||
|
%install
|
||||||
|
rm -rf %{buildroot}
|
||||||
|
mkdir -p %{buildroot}%{_sbindir}
|
||||||
|
|
||||||
|
make install DESTDIR=%{buildroot}
|
||||||
|
|
||||||
|
|
||||||
|
%clean
|
||||||
|
rm -rf %{buildroot}
|
||||||
|
|
||||||
|
|
||||||
|
%files
|
||||||
|
%defattr(-,root,root,-)
|
||||||
|
%{_sbindir}/ipa-adduser
|
||||||
|
%{_sbindir}/ipa-finduser
|
||||||
|
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Fri Jul 27 2007 Karl MacMillan <kmacmill@localhost.localdomain> - 0.1.0-1
|
||||||
|
- Initial rpm version
|
||||||
|
|
||||||
|
|
42
ipa-admintools/freeipa-admintools.spec.in
Executable file
42
ipa-admintools/freeipa-admintools.spec.in
Executable file
@ -0,0 +1,42 @@
|
|||||||
|
Name: freeipa-admintools
|
||||||
|
Version: 0.1.0
|
||||||
|
Release: 1%{?dist}
|
||||||
|
Summary: FreeIPA authentication server
|
||||||
|
|
||||||
|
Group: System Environment/Base
|
||||||
|
License: GPL
|
||||||
|
URL: http://www.freeipa.org
|
||||||
|
Source0: %{name}-%{version}.tgz
|
||||||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
|
BuildArch: noarch
|
||||||
|
|
||||||
|
Requires: python freeipa-python
|
||||||
|
|
||||||
|
%description
|
||||||
|
FreeIPA is a server for identity, policy, and audit.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q
|
||||||
|
|
||||||
|
%install
|
||||||
|
rm -rf %{buildroot}
|
||||||
|
mkdir -p %{buildroot}%{_sbindir}
|
||||||
|
|
||||||
|
make install DESTDIR=%{buildroot}
|
||||||
|
|
||||||
|
|
||||||
|
%clean
|
||||||
|
rm -rf %{buildroot}
|
||||||
|
|
||||||
|
|
||||||
|
%files
|
||||||
|
%defattr(-,root,root,-)
|
||||||
|
%{_sbindir}/ipa-adduser
|
||||||
|
%{_sbindir}/ipa-finduser
|
||||||
|
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Fri Jul 27 2007 Karl MacMillan <kmacmill@localhost.localdomain> - 0.1.0-1
|
||||||
|
- Initial rpm version
|
||||||
|
|
||||||
|
|
45
ipa-python/freeipa-python.spec
Executable file
45
ipa-python/freeipa-python.spec
Executable file
@ -0,0 +1,45 @@
|
|||||||
|
Name: freeipa-python
|
||||||
|
Version: 0.1.0
|
||||||
|
Release: 1%{?dist}
|
||||||
|
Summary: FreeIPA authentication server
|
||||||
|
|
||||||
|
Group: System Environment/Base
|
||||||
|
License: GPL
|
||||||
|
URL: http://www.freeipa.org
|
||||||
|
Source0: %{name}-%{version}.tgz
|
||||||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
|
BuildArch: noarch
|
||||||
|
|
||||||
|
Requires: python
|
||||||
|
|
||||||
|
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
||||||
|
|
||||||
|
%define pkgpythondir %{python_sitelib}/ipa
|
||||||
|
|
||||||
|
%description
|
||||||
|
FreeIPA is a server for identity, policy, and audit.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q
|
||||||
|
|
||||||
|
%install
|
||||||
|
rm -rf %{buildroot}
|
||||||
|
mkdir -p %{buildroot}%{pkgpythondir}
|
||||||
|
|
||||||
|
make install DESTDIR=%{buildroot}
|
||||||
|
|
||||||
|
|
||||||
|
%clean
|
||||||
|
rm -rf %{buildroot}
|
||||||
|
|
||||||
|
|
||||||
|
%files
|
||||||
|
%defattr(-,root,root,-)
|
||||||
|
%{pkgpythondir}/*
|
||||||
|
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Fri Jul 27 2007 Karl MacMillan <kmacmill@localhost.localdomain> - 0.1.0-1
|
||||||
|
- Initial rpm version
|
||||||
|
|
||||||
|
|
45
ipa-python/freeipa-python.spec.in
Executable file
45
ipa-python/freeipa-python.spec.in
Executable file
@ -0,0 +1,45 @@
|
|||||||
|
Name: freeipa-python
|
||||||
|
Version: VERSION
|
||||||
|
Release: 1%{?dist}
|
||||||
|
Summary: FreeIPA authentication server
|
||||||
|
|
||||||
|
Group: System Environment/Base
|
||||||
|
License: GPL
|
||||||
|
URL: http://www.freeipa.org
|
||||||
|
Source0: %{name}-%{version}.tgz
|
||||||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
|
BuildArch: noarch
|
||||||
|
|
||||||
|
Requires: python
|
||||||
|
|
||||||
|
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
||||||
|
|
||||||
|
%define pkgpythondir %{python_sitelib}/ipa
|
||||||
|
|
||||||
|
%description
|
||||||
|
FreeIPA is a server for identity, policy, and audit.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q
|
||||||
|
|
||||||
|
%install
|
||||||
|
rm -rf %{buildroot}
|
||||||
|
mkdir -p %{buildroot}%{pkgpythondir}
|
||||||
|
|
||||||
|
make install DESTDIR=%{buildroot}
|
||||||
|
|
||||||
|
|
||||||
|
%clean
|
||||||
|
rm -rf %{buildroot}
|
||||||
|
|
||||||
|
|
||||||
|
%files
|
||||||
|
%defattr(-,root,root,-)
|
||||||
|
%{pkgpythondir}/*
|
||||||
|
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Fri Jul 27 2007 Karl MacMillan <kmacmill@localhost.localdomain> - 0.1.0-1
|
||||||
|
- Initial rpm version
|
||||||
|
|
||||||
|
|
@ -10,7 +10,7 @@ Source0: %{name}-%{version}.tgz
|
|||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
Requires: python fedora-ds-base krb5-server krb5-server-ldap nss-tools openldap-clients httpd mod_python
|
Requires: python fedora-ds-base krb5-server krb5-server-ldap nss-tools openldap-clients httpd mod_python python-ldap freeipa-python
|
||||||
|
|
||||||
%define httpd_conf /etc/httpd/conf.d
|
%define httpd_conf /etc/httpd/conf.d
|
||||||
|
|
||||||
|
@ -10,7 +10,7 @@ Source0: %{name}-%{version}.tgz
|
|||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
Requires: python fedora-ds-base krb5-server krb5-server-ldap nss-tools openldap-clients httpd mod_python python-ldap
|
Requires: python fedora-ds-base krb5-server krb5-server-ldap nss-tools openldap-clients httpd mod_python python-ldap freeipa-python
|
||||||
|
|
||||||
%define httpd_conf /etc/httpd/conf.d
|
%define httpd_conf /etc/httpd/conf.d
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user