From b86b0c6dbc62a544aa637896dc0c6623d343ed1b Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Sat, 18 Feb 2023 00:14:39 +0000 Subject: [PATCH] Auto sync2gitlab import of ansible-collection-microsoft-sql-1.3.0-2.el8.src.rpm --- ansible-collection-microsoft-sql.spec | 31 ++++++++++++++++++--------- sources | 2 +- 2 files changed, 22 insertions(+), 11 deletions(-) diff --git a/ansible-collection-microsoft-sql.spec b/ansible-collection-microsoft-sql.spec index fa45993..5a27e85 100644 --- a/ansible-collection-microsoft-sql.spec +++ b/ansible-collection-microsoft-sql.spec @@ -25,7 +25,7 @@ Name: ansible-collection-microsoft-sql Url: https://github.com/linux-system-roles/mssql Summary: The Ansible collection for Microsoft SQL Server management Version: 1.3.0 -Release: 1%{?dist} +Release: 2%{?dist} License: MIT @@ -161,13 +161,11 @@ cp %{rolename}/.collection/galaxy.yml ./ mv galaxy.yml.tmp galaxy.yml %if 0%{?rhel} -# Replace fedora.linux_system_roles with redhat.rhel_system_roles -sed -i 's/fedora\.linux_system_roles/redhat.rhel_system_roles/g' \ - %{rolename}/CHANGELOG.md \ - %{rolename}/README.md \ - %{rolename}/tasks/*.yml \ - %{rolename}/tests/*.yml \ - %{rolename}/meta/*.yml +# Replace "fedora.linux_system_roles" with "redhat.rhel_system_roles" +# This is for the "roles calling other roles" case +find %{rolename} -type f -exec \ + sed -e "s/fedora[.]linux_system_roles[.]/redhat.rhel_system_roles./g" \ + -i {} \; %endif # Convert to the collection format @@ -181,6 +179,11 @@ python3 lsr_role2collection.py --role "%{rolename}" \ --new-role "%{collection_rolename}" \ --meta-runtime lsr_role2collection/runtime.yml +# Replace remnants of "linux-system-roles.mssql" with collection FQDN +find .collections/ansible_collections/%{collection_namespace}/%{collection_name}/ -type f -exec \ + sed -e "s/linux-system-roles[.]%{rolename}\\>/%{collection_namespace}.%{collection_name}.%{collection_rolename}/g" \ + -i {} \; + # removing dot files/dirs rm -r .collections/ansible_collections/%{collection_namespace}/%{collection_name}/.[A-Za-z]* rm -r .collections/ansible_collections/%{collection_namespace}/%{collection_name}/tests/%{collection_rolename}/.[A-Za-z]* @@ -202,8 +205,9 @@ mkdir -p %{buildroot}%{ansible_roles_dir} # Copy role in legacy format and rename rolename in tests cp -pR "%{rolename}" "%{buildroot}%{ansible_roles_dir}/%{legacy_rolename}" -sed -i "s/linux-system-roles\.%{rolename}/microsoft\.%{legacy_rolename}/g" \ - %{buildroot}%{ansible_roles_dir}/%{legacy_rolename}/tests/*.yml +find %{buildroot}%{ansible_roles_dir}/%{legacy_rolename} -type f -exec \ + sed -e "s/linux-system-roles\.%{rolename}/%{legacy_rolename}/g" \ + -i {} \; # Copy README, COPYING, and LICENSE files to the corresponding directories mkdir -p %{buildroot}%{_pkglicensedir} @@ -343,6 +347,13 @@ find %{buildroot}%{ansible_roles_dir} -mindepth 1 -maxdepth 1 | \ %endif %changelog +* Thu Feb 16 2023 Sergei Petrosian - 1.3.0-2 +- Replace fedora.linux_system_roles/redhat.rhel_system_roles and + linux-system-roles.mssql with microsoft.sql.server in the role. + Resolves: rhbz#2129106 +- Use latest 1.3.0 to fix ad_Integration issues + Resolves: rhbz#2163696 + * Wed Feb 1 2023 Sergei Petrosian - 1.3.0-1 - Keep spec consistent with linux-system-roles - Return conditionals related to EL to keep up- and downstream consistent diff --git a/sources b/sources index f70bcf5..7800f29 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ SHA512 (auto-maintenance-73800682a3293ef5ab5ed5880329ce792cd34bbf.tar.gz) = 327a9381f7051661cd75742c3c2542d67c0220bdeb9d11bb6c982d7bf053c232d9a192511dc4a90b678bafbbd8e5b08664a8570c62ab652ddf089a98b083b99b -SHA512 (mssql-1.3.0.tar.gz) = d1732b2c65e829b9d455f3cc71d158bb889a39a160c0d830503ca3b9dbf2ebc785eb755a25a2145c1cfd7a71e83cf9bdd6f83965d11cb5a520ed3d14c37b0b31 +SHA512 (mssql-1.3.0.tar.gz) = 596fbdda190e0c3fcbe5d5e9419767f170e2c7931c8198c990ff0b3ac2035f64d4c9e306f21fbcb275ffd0e16436936a727b271876ab3c603e6f3456bc77f8a2