diff options
author | Karl MacMillan <kmacmillan@mentalrootkit.com> | 2007-07-27 16:03:42 -0400 |
---|---|---|
committer | Karl MacMillan <kmacmillan@mentalrootkit.com> | 2007-07-27 16:03:42 -0400 |
commit | 899daaf04828ddc6a2fc38b31484d648e218dabf (patch) | |
tree | fab57aa9166c8cb4478ea302d616a4f81518e99d | |
parent | 9d5b946fdafa77b7aca360d2d1e8ce48980c559f (diff) | |
download | freeipa.git-899daaf04828ddc6a2fc38b31484d648e218dabf.tar.gz freeipa.git-899daaf04828ddc6a2fc38b31484d648e218dabf.tar.xz freeipa.git-899daaf04828ddc6a2fc38b31484d648e218dabf.zip |
First cut at spec files and Makefile for ipa-server.
-rw-r--r-- | ipa-server/Makefile | 24 | ||||
-rw-r--r-- | ipa-server/freeipa-server.spec | 47 | ||||
-rw-r--r-- | ipa-server/freeipa-server.spec.in | 47 |
3 files changed, 118 insertions, 0 deletions
diff --git a/ipa-server/Makefile b/ipa-server/Makefile index 1417a19d..171efc4f 100644 --- a/ipa-server/Makefile +++ b/ipa-server/Makefile @@ -1,5 +1,16 @@ SUBDIRS=ipa-install +# Version number - this is for the entire server. After +# updating this you should run the version-update +# target. +MAJOR=0 +MINOR=1 +RELEASE=0 +VERSION=$(MAJOR).$(MINOR).$(RELEASE) + +TARBALL_PREFIX=freeipa-server-$(VERSION) +TARBALL=$(TARBALL_PREFIX).tgz + all: @for subdir in $(SUBDIRS); do \ (cd $$subdir && $(MAKE) $@) || exit 1; \ @@ -14,3 +25,16 @@ clean: @for subdir in $(SUBDIRS); do \ (cd $$subdir && $(MAKE) $@) || exit 1; \ done + +version-update: + sed s/VERSION/$(VERSION)/ freeipa-server.spec.in > freeipa-server.spec + +tarball: + -mkdir dist + hg archive -p $(TARBALL_PREFIX) -t tgz dist/$(TARBALL) + +dist: version-update tarball + cp dist/$(TARBALL) ~/rpmbuild/SOURCES/. + rpmbuild -ba freeipa-server.spec + cp ~/rpmbuild/RPMS/noarch/freeipa-server-$(VERSION)-*.rpm dist/. + cp ~/rpmbuild/SRPMS/freeipa-server-$(VERSION)-*.src.rpm dist/. diff --git a/ipa-server/freeipa-server.spec b/ipa-server/freeipa-server.spec new file mode 100644 index 00000000..8bb0480c --- /dev/null +++ b/ipa-server/freeipa-server.spec @@ -0,0 +1,47 @@ +Name: freeipa-server +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 fedora-ds-base krb5-server krb5-server-ldap + +%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} + +%define pkgpythondir %{python_sitelib}/%{name} + +%description +Madison is a set of tools and libraries for SELinux policy generation. + +%prep +%setup -q + +%install +rm -rf $RPM_BUILD_ROOT +make install DESTDIR=$RPM_BUILD_ROOT + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%files +%defattr(-,root,root,-) +%{_sbindir}/* +%{pkgpythondir} + +%dir %{_usr}/share/ipa +%{_usr}/share/ipa/* + + +%changelog +* Fri Jul 27 2007 Karl MacMillan <kmacmill@localhost.localdomain> - 0.1.0-1 +- Initial rpm version + + diff --git a/ipa-server/freeipa-server.spec.in b/ipa-server/freeipa-server.spec.in new file mode 100644 index 00000000..69f73e9c --- /dev/null +++ b/ipa-server/freeipa-server.spec.in @@ -0,0 +1,47 @@ +Name: freeipa-server +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 fedora-ds-base krb5-server krb5-server-ldap + +%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} + +%define pkgpythondir %{python_sitelib}/%{name} + +%description +Madison is a set of tools and libraries for SELinux policy generation. + +%prep +%setup -q + +%install +rm -rf $RPM_BUILD_ROOT +make install DESTDIR=$RPM_BUILD_ROOT + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%files +%defattr(-,root,root,-) +%{_sbindir}/* +%{pkgpythondir} + +%dir %{_usr}/share/ipa +%{_usr}/share/ipa/* + + +%changelog +* Fri Jul 27 2007 Karl MacMillan <kmacmill@localhost.localdomain> - 0.1.0-1 +- Initial rpm version + + |