mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
First cut at spec files and Makefile for ipa-server.
This commit is contained in:
parent
9d5b946fda
commit
899daaf048
@ -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/.
|
||||
|
47
ipa-server/freeipa-server.spec
Normal file
47
ipa-server/freeipa-server.spec
Normal file
@ -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
|
||||
|
||||
|
47
ipa-server/freeipa-server.spec.in
Normal file
47
ipa-server/freeipa-server.spec.in
Normal file
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user