summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Bokovoy <abokovoy@redhat.com>2011-10-13 23:26:58 +0300
committerAlexander Bokovoy <abokovoy@redhat.com>2011-10-13 23:26:58 +0300
commitea703112fc4a08e797bd750c91808e416ba6c7b9 (patch)
treebfec931fdeb8c0279882ca903f31ed324370536a
parent04ba21aaca9c376abab36cf75d764507a3b14802 (diff)
downloadfreeipa-my-master.zip
freeipa-my-master.tar.gz
freeipa-my-master.tar.xz
fixup! Add support for systemd environments and use it to support Fedora 16my-master
-rw-r--r--freeipa.spec.in8
1 files changed, 7 insertions, 1 deletions
diff --git a/freeipa.spec.in b/freeipa.spec.in
index 48aa92c..f31d4ff 100644
--- a/freeipa.spec.in
+++ b/freeipa.spec.in
@@ -285,6 +285,8 @@ export CFLAGS="$CFLAGS %{optflags}"
export CPPFLAGS="$CPPFLAGS %{optflags}"
%if 0%{?fedora} >= 16
export SUPPORTED_PLATFORM=fedora16
+# Force re-generate of platform support
+rm -f ipapython/services.py
%endif
make version-update
cd ipa-client; ../autogen.sh --prefix=%{_usr} --sysconfdir=%{_sysconfdir} --localstatedir=%{_localstatedir} --libdir=%{_libdir} --mandir=%{_mandir}; cd ..
@@ -304,6 +306,11 @@ make IPA_VERSION_IS_GIT_SNAPSHOT=no %{?_smp_mflags} client
%install
rm -rf %{buildroot}
+%if 0%{?fedora} >= 16
+export SUPPORTED_PLATFORM=fedora16
+# Force re-generate of platform support
+rm -f ipapython/services.py
+%endif
%if ! %{ONLY_CLIENT}
make install DESTDIR=%{buildroot}
cd selinux
@@ -349,7 +356,6 @@ mkdir -p %{buildroot}%{_sysconfdir}/httpd/conf.d/
/bin/touch %{buildroot}%{_sysconfdir}/httpd/conf.d/ipa-pki-proxy.conf
/bin/touch %{buildroot}%{_sysconfdir}/httpd/conf.d/ipa-rewrite.conf
mkdir -p %{buildroot}%{_initrddir}
-install -m755 ipa.init %{buildroot}%{_initrddir}/ipa
%if 0%{?fedora} >= 16
# Default to systemd initscripts for F16 and above
mkdir -p %{buildroot}%{_unitdir}