Auto sync2gitlab import of ansible-collection-microsoft-sql-1.3.0-2.el8.src.rpm

This commit is contained in:
CentOS Sources 2023-02-18 00:14:39 +00:00
parent 697720a0d1
commit b86b0c6dbc
2 changed files with 22 additions and 11 deletions

View File

@ -25,7 +25,7 @@ Name: ansible-collection-microsoft-sql
Url: https://github.com/linux-system-roles/mssql Url: https://github.com/linux-system-roles/mssql
Summary: The Ansible collection for Microsoft SQL Server management Summary: The Ansible collection for Microsoft SQL Server management
Version: 1.3.0 Version: 1.3.0
Release: 1%{?dist} Release: 2%{?dist}
License: MIT License: MIT
@ -161,13 +161,11 @@ cp %{rolename}/.collection/galaxy.yml ./
mv galaxy.yml.tmp galaxy.yml mv galaxy.yml.tmp galaxy.yml
%if 0%{?rhel} %if 0%{?rhel}
# Replace fedora.linux_system_roles with redhat.rhel_system_roles # Replace "fedora.linux_system_roles" with "redhat.rhel_system_roles"
sed -i 's/fedora\.linux_system_roles/redhat.rhel_system_roles/g' \ # This is for the "roles calling other roles" case
%{rolename}/CHANGELOG.md \ find %{rolename} -type f -exec \
%{rolename}/README.md \ sed -e "s/fedora[.]linux_system_roles[.]/redhat.rhel_system_roles./g" \
%{rolename}/tasks/*.yml \ -i {} \;
%{rolename}/tests/*.yml \
%{rolename}/meta/*.yml
%endif %endif
# Convert to the collection format # Convert to the collection format
@ -181,6 +179,11 @@ python3 lsr_role2collection.py --role "%{rolename}" \
--new-role "%{collection_rolename}" \ --new-role "%{collection_rolename}" \
--meta-runtime lsr_role2collection/runtime.yml --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 # 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}/.[A-Za-z]*
rm -r .collections/ansible_collections/%{collection_namespace}/%{collection_name}/tests/%{collection_rolename}/.[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 # Copy role in legacy format and rename rolename in tests
cp -pR "%{rolename}" "%{buildroot}%{ansible_roles_dir}/%{legacy_rolename}" cp -pR "%{rolename}" "%{buildroot}%{ansible_roles_dir}/%{legacy_rolename}"
sed -i "s/linux-system-roles\.%{rolename}/microsoft\.%{legacy_rolename}/g" \ find %{buildroot}%{ansible_roles_dir}/%{legacy_rolename} -type f -exec \
%{buildroot}%{ansible_roles_dir}/%{legacy_rolename}/tests/*.yml sed -e "s/linux-system-roles\.%{rolename}/%{legacy_rolename}/g" \
-i {} \;
# Copy README, COPYING, and LICENSE files to the corresponding directories # Copy README, COPYING, and LICENSE files to the corresponding directories
mkdir -p %{buildroot}%{_pkglicensedir} mkdir -p %{buildroot}%{_pkglicensedir}
@ -343,6 +347,13 @@ find %{buildroot}%{ansible_roles_dir} -mindepth 1 -maxdepth 1 | \
%endif %endif
%changelog %changelog
* Thu Feb 16 2023 Sergei Petrosian <spetrosi@redhat.com> - 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 <spetrosi@redhat.com> - 1.3.0-1 * Wed Feb 1 2023 Sergei Petrosian <spetrosi@redhat.com> - 1.3.0-1
- Keep spec consistent with linux-system-roles - Keep spec consistent with linux-system-roles
- Return conditionals related to EL to keep up- and downstream consistent - Return conditionals related to EL to keep up- and downstream consistent

View File

@ -1,2 +1,2 @@
SHA512 (auto-maintenance-73800682a3293ef5ab5ed5880329ce792cd34bbf.tar.gz) = 327a9381f7051661cd75742c3c2542d67c0220bdeb9d11bb6c982d7bf053c232d9a192511dc4a90b678bafbbd8e5b08664a8570c62ab652ddf089a98b083b99b SHA512 (auto-maintenance-73800682a3293ef5ab5ed5880329ce792cd34bbf.tar.gz) = 327a9381f7051661cd75742c3c2542d67c0220bdeb9d11bb6c982d7bf053c232d9a192511dc4a90b678bafbbd8e5b08664a8570c62ab652ddf089a98b083b99b
SHA512 (mssql-1.3.0.tar.gz) = d1732b2c65e829b9d455f3cc71d158bb889a39a160c0d830503ca3b9dbf2ebc785eb755a25a2145c1cfd7a71e83cf9bdd6f83965d11cb5a520ed3d14c37b0b31 SHA512 (mssql-1.3.0.tar.gz) = 596fbdda190e0c3fcbe5d5e9419767f170e2c7931c8198c990ff0b3ac2035f64d4c9e306f21fbcb275ffd0e16436936a727b271876ab3c603e6f3456bc77f8a2