From 3cf087b4307680ae49aca0c4c3bf79790e5a0af0 Mon Sep 17 00:00:00 2001 From: Johnny Hughes Date: Sep 12 2023 14:19:11 +0000 Subject: Manual CentOS Debranding --- diff --git a/SPECS/ipa.spec b/SPECS/ipa.spec index c0f2b6c..6d0d521 100644 --- a/SPECS/ipa.spec +++ b/SPECS/ipa.spec @@ -111,9 +111,9 @@ License: GPLv3+ URL: http://www.freeipa.org/ Source0: https://releases.pagure.org/freeipa/freeipa-%{version}.tar.gz # RHEL spec file only: START: Change branding to IPA and Identity Management -Source1: header-logo.png -Source2: login-screen-background.jpg -Source4: product-name.png +#Source1: header-logo.png +#Source2: login-screen-background.jpg +#Source4: product-name.png # RHEL spec file only: END: Change branding to IPA and Identity Management BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) @@ -415,7 +415,10 @@ Requires: oddjob Requires: gssproxy >= 0.7.0-2 # 1.15.2: FindByNameAndCertificate (https://pagure.io/SSSD/sssd/issue/3050) Requires: sssd-dbus >= 1.15.2 + +%if 0%{?centos} == 0 Requires: system-logos >= 70.7.0 +%endif Provides: %{alt_name}-server = %{version} Conflicts: %{alt_name}-server @@ -972,9 +975,9 @@ cp -r %{_builddir}/freeipa-%{version} %{_builddir}/freeipa-%{version}-python3 # with_python3 # RHEL spec file only: START: Change branding to IPA and Identity Management -cp %SOURCE1 install/ui/images/header-logo.png -cp %SOURCE2 install/ui/images/login-screen-background.jpg -cp %SOURCE4 install/ui/images/product-name.png +#cp %SOURCE1 install/ui/images/header-logo.png +#cp %SOURCE2 install/ui/images/login-screen-background.jpg +#cp %SOURCE4 install/ui/images/product-name.png # RHEL spec file only: END: Change branding to IPA and Identity Management @@ -998,7 +1001,8 @@ find \ %configure --with-vendor-suffix=-%{release} \ %{enable_server_option} \ %{with_ipatests_option} \ - %{linter_options} + %{linter_options} \ + --with-ipaplatform=rhel %make_build @@ -1019,7 +1023,8 @@ find \ %configure --with-vendor-suffix=-%{release} \ %{enable_server_option} \ %{with_ipatests_option} \ - %{linter_options} + %{linter_options} \ + --with-ipaplatform=rhel popd %endif # with_python3 @@ -1106,9 +1111,11 @@ ln -s %{_bindir}/ipa-test-task-%{python2_version} %{buildroot}%{_bindir}/ipa-tes # remove files which are useful only for make uninstall find %{buildroot} -wholename '*/site-packages/*/install_files.txt' -exec rm {} \; +%if 0%{?centos} == 0 # RHEL spec file only: START: Replace login-screen-logo.png with a symlink ln -sf %{_datadir}/pixmaps/fedora-gdm-logo.png %{buildroot}%{_usr}/share/ipa/ui/images/login-screen-logo.png # RHEL spec file only: END: Replace login-screen-logo.png with a symlink +%endif %find_lang %{gettext_domain}