|
|
4f71d3 |
# NOTE: Even though ansible-core is in 8.6, it is only available
|
|
|
4f71d3 |
# at *runtime*, not at *buildtime* - so we can't have
|
|
|
4f71d3 |
# ansible-core as a build_dep on RHEL8
|
|
|
ff17ee |
%if 0%{?rhel} >= 9
|
|
|
4f71d3 |
%bcond_without ansible
|
|
|
4f71d3 |
%global ansible_build_dep ansible-core >= 2.11.0
|
|
|
4f71d3 |
%else
|
|
|
5a6d80 |
%if 0%{?rhel} && ! 0%{?epel}
|
|
|
5a6d80 |
%bcond_with ansible
|
|
|
5a6d80 |
%else
|
|
|
5a6d80 |
%bcond_without ansible
|
|
|
4f71d3 |
%global ansible_build_dep ansible >= 2.9.10
|
|
|
4f71d3 |
%endif
|
|
|
5a6d80 |
%endif
|
|
|
5a6d80 |
|
|
|
5a6d80 |
%bcond_with collection_artifact
|
|
|
5a6d80 |
|
|
|
5a6d80 |
# Do not convert .md to .html on RHEL 7 because tools the conversion are not available
|
|
|
ff17ee |
%if 0%{?rhel} >= 8
|
|
|
5a6d80 |
%bcond_without html
|
|
|
5a6d80 |
%else
|
|
|
5a6d80 |
%bcond_with html
|
|
|
5a6d80 |
%endif
|
|
|
5a6d80 |
|
|
|
5a6d80 |
Name: ansible-collection-microsoft-sql
|
|
|
5a6d80 |
Url: https://github.com/linux-system-roles/mssql
|
|
|
5a6d80 |
Summary: The Ansible collection for Microsoft SQL Server management
|
|
|
ff17ee |
Version: 1.2.4
|
|
|
ff17ee |
Release: 1%{?dist}
|
|
|
5a6d80 |
|
|
|
5a6d80 |
License: MIT
|
|
|
5a6d80 |
|
|
|
ff17ee |
%global rolename mssql
|
|
|
5a6d80 |
%global collection_namespace microsoft
|
|
|
5a6d80 |
%global collection_name sql
|
|
|
ff17ee |
%global collection_rolename server
|
|
|
ff17ee |
%global legacy_rolename %{collection_namespace}.sql-server
|
|
|
5a6d80 |
|
|
|
ff17ee |
%global installbase %{_datadir}/ansible/roles
|
|
|
ff17ee |
%global _pkglicensedir %{_licensedir}/%{name}
|
|
|
5a6d80 |
|
|
|
5a6d80 |
# Helper macros originally from macros.ansible by Igor Raits <ignatenkobrain>
|
|
|
5a6d80 |
# Not available on RHEL, so we must define those macros locally here without using ansible-galaxy
|
|
|
5a6d80 |
|
|
|
5a6d80 |
# Not used (yet). Could be made to point to AH in RHEL - but what about CentOS Stream?
|
|
|
5a6d80 |
#%%{!?ansible_collection_url:%%define ansible_collection_url() https://galaxy.ansible.com/%%{collection_namespace}/%%{collection_name}}
|
|
|
ff17ee |
%if 0%{?rhel} >= 8
|
|
|
5a6d80 |
%{!?ansible_collection_files:%define ansible_collection_files %{_datadir}/ansible/collections/ansible_collections/%{collection_namespace}/}
|
|
|
5a6d80 |
%else
|
|
|
5a6d80 |
# Define undefined macro using "!?ansible_collection_files:..." does not work for rhel-7
|
|
|
5a6d80 |
%if %{?ansible_collection_files:0}%{!?ansible_collection_files:1}
|
|
|
5a6d80 |
%define ansible_collection_files %{_datadir}/ansible/collections/ansible_collections/%{collection_namespace}/
|
|
|
5a6d80 |
%endif
|
|
|
5a6d80 |
%endif
|
|
|
5a6d80 |
|
|
|
4f71d3 |
# ansible-core is in rhel 8.6 and later - default to ansible-core, but allow
|
|
|
4f71d3 |
# the use of ansible if present - we may revisit this if the automatic dependency
|
|
|
4f71d3 |
# generator is added to ansible-core in RHEL
|
|
|
4f71d3 |
# EL7 - no dependency on ansible because there is no ansible in el7 - user is
|
|
|
4f71d3 |
# responsible for knowing they have to install ansible
|
|
|
4f71d3 |
%if 0%{?rhel} >= 8
|
|
|
4f71d3 |
Requires: (ansible-core >= 2.11.0 or ansible >= 2.9.0)
|
|
|
4f71d3 |
%endif
|
|
|
ff17ee |
|
|
|
ff17ee |
Requires: rhel-system-roles
|
|
|
ff17ee |
|
|
|
5a6d80 |
%if %{with ansible}
|
|
|
4f71d3 |
BuildRequires: %{ansible_build_dep}
|
|
|
5a6d80 |
%endif
|
|
|
5a6d80 |
|
|
|
5a6d80 |
%if %{without ansible}
|
|
|
5a6d80 |
# We don't have ansible-galaxy.
|
|
|
5a6d80 |
# Simply copy everything instead of galaxy-installing the built artifact.
|
|
|
5a6d80 |
%define ansible_collection_build_install() tar -cf %{_tmppath}/%{collection_namespace}-%{collection_name}-%{version}.tar.gz .; mkdir -p %{buildroot}%{ansible_collection_files}%{collection_name}; (cd %{buildroot}%{ansible_collection_files}%{collection_name}; tar -xf %{_tmppath}/%{collection_namespace}-%{collection_name}-%{version}.tar.gz)
|
|
|
5a6d80 |
%else
|
|
|
ff17ee |
%define ansible_collection_build_install() ansible-galaxy collection build -v; ansible-galaxy collection install -n -p %{buildroot}%{_datadir}/ansible/collections %{collection_namespace}-%{collection_name}-%{version}.tar.gz
|
|
|
5a6d80 |
%endif
|
|
|
5a6d80 |
|
|
|
5a6d80 |
%global mainid cdc706f14614ef5e80bbce8db10beb369e889df9
|
|
|
ff17ee |
%global parenturl https://github.com/linux-system-roles
|
|
|
5a6d80 |
Source: %{parenturl}/auto-maintenance/archive/%{mainid}/auto-maintenance-%{mainid}.tar.gz
|
|
|
ff17ee |
Source1: %{parenturl}/%{rolename}/archive/%{version}/%{rolename}-%{version}.tar.gz
|
|
|
5a6d80 |
|
|
|
5a6d80 |
BuildArch: noarch
|
|
|
5a6d80 |
|
|
|
5a6d80 |
%if %{with html}
|
|
|
5a6d80 |
# Requirements for md2html.sh to build the documentation
|
|
|
ff17ee |
%if 0%{?rhel} >= 9
|
|
|
5a6d80 |
BuildRequires: rubygem-kramdown-parser-gfm
|
|
|
5a6d80 |
%else
|
|
|
5a6d80 |
BuildRequires: pandoc
|
|
|
5a6d80 |
BuildRequires: asciidoc
|
|
|
5a6d80 |
BuildRequires: highlight
|
|
|
5a6d80 |
%endif
|
|
|
5a6d80 |
%endif
|
|
|
5a6d80 |
|
|
|
5a6d80 |
# Requirements for galaxy_transform.py
|
|
|
5a6d80 |
BuildRequires: python3
|
|
|
ff17ee |
%if 0%{?rhel} >= 8
|
|
|
4f71d3 |
BuildRequires: %{py3_dist ruamel.yaml}
|
|
|
5a6d80 |
%else
|
|
|
5a6d80 |
BuildRequires: python3-ruamel-yaml
|
|
|
5a6d80 |
%endif
|
|
|
5a6d80 |
|
|
|
5a6d80 |
%if %{undefined __ansible_provides}
|
|
|
ff17ee |
Provides: ansible-collection(%{collection_namespace}.%{collection_name}) = %{version}
|
|
|
5a6d80 |
%endif
|
|
|
5a6d80 |
# be compatible with the usual Fedora Provides:
|
|
|
5a6d80 |
Provides: ansible-collection-%{collection_namespace}-%{collection_name} = %{version}-%{release}
|
|
|
5a6d80 |
|
|
|
5a6d80 |
%description
|
|
|
ff17ee |
This RPM installs the %{collection_namespace}.%{collection_name} Ansible
|
|
|
ff17ee |
collection that provides the %{collection_rolename} role for Microsoft SQL
|
|
|
ff17ee |
Server management. This RPM also installs the %{legacy_rolename} role
|
|
|
ff17ee |
in the legacy roles format for users of Ansible < 2.9.
|
|
|
5a6d80 |
|
|
|
5a6d80 |
%if %{with collection_artifact}
|
|
|
5a6d80 |
%package collection-artifact
|
|
|
5a6d80 |
Summary: Collection artifact to import to Automation Hub / Ansible Galaxy
|
|
|
5a6d80 |
|
|
|
5a6d80 |
%description collection-artifact
|
|
|
5a6d80 |
Collection artifact for %{name}. This package contains %{collection_namespace}-%{collection_name}-%{version}.tar.gz
|
|
|
5a6d80 |
%endif
|
|
|
5a6d80 |
|
|
|
5a6d80 |
%prep
|
|
|
ff17ee |
%setup -q -a1 -n auto-maintenance-%{mainid}
|
|
|
5a6d80 |
|
|
|
ff17ee |
mv %{rolename}-%{version} %{rolename}
|
|
|
ff17ee |
|
|
|
ff17ee |
# Remove symlinks in tests/roles
|
|
|
ff17ee |
if [ -d %{rolename}/tests/roles ]; then
|
|
|
ff17ee |
find %{rolename}/tests/roles -type l -exec rm {} \;
|
|
|
ff17ee |
if [ -d %{rolename}/tests/roles/linux-system-roles.%{rolename} ]; then
|
|
|
ff17ee |
rm -r %{rolename}/tests/roles/linux-system-roles.%{rolename}
|
|
|
ff17ee |
fi
|
|
|
ff17ee |
fi
|
|
|
5a6d80 |
|
|
|
5a6d80 |
%build
|
|
|
5a6d80 |
%if %{with html}
|
|
|
5a6d80 |
# Convert README.md to README.html in the source roles
|
|
|
ff17ee |
sh md2html.sh %{rolename}/README.md
|
|
|
5a6d80 |
%endif
|
|
|
5a6d80 |
|
|
|
5a6d80 |
mkdir .collections
|
|
|
5a6d80 |
# Copy README.md for the collection build
|
|
|
ff17ee |
cp %{rolename}/.collection/README.md lsr_role2collection/collection_readme.md
|
|
|
5a6d80 |
# Copy galaxy.yml for the collection build
|
|
|
ff17ee |
cp %{rolename}/.collection/galaxy.yml ./
|
|
|
ff17ee |
|
|
|
5a6d80 |
# Ensure the correct entries in galaxy.yml
|
|
|
ff17ee |
./galaxy_transform.py "%{collection_namespace}" "%{collection_name}" "%{version}" \
|
|
|
ff17ee |
"Ansible collection for Microsoft SQL Server management" \
|
|
|
ff17ee |
"https://github.com/linux-system-roles/mssql" \
|
|
|
ff17ee |
"https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/administration_and_configuration_tasks_using_system_roles_in_rhel/assembly_configuring-microsoft-sql-server-using-microsoft-sql-server-ansible-role_assembly_updating-packages-to-enable-automation-for-the-rhel-system-roles" \
|
|
|
ff17ee |
"https://github.com/linux-system-roles/mssql/blob/master/README.md" \
|
|
|
ff17ee |
"https://bugzilla.redhat.com/enter_bug.cgi?product=Red%20Hat%20Enterprise%20Linux%208&component=ansible-collection-microsoft-sql" \
|
|
|
ff17ee |
> galaxy.yml.tmp
|
|
|
5a6d80 |
mv galaxy.yml.tmp galaxy.yml
|
|
|
5a6d80 |
|
|
|
ff17ee |
# Replace fedora.linux_system_roles with redhat.rhel_system_roles
|
|
|
ff17ee |
sed -i 's/fedora\.linux_system_roles/redhat.rhel_system_roles/g' \
|
|
|
ff17ee |
%{rolename}/CHANGELOG.md \
|
|
|
ff17ee |
%{rolename}/README.md \
|
|
|
ff17ee |
%{rolename}/tasks/*.yml \
|
|
|
ff17ee |
%{rolename}/tests/*.yml \
|
|
|
ff17ee |
%{rolename}/meta/*.yml
|
|
|
ff17ee |
|
|
|
ff17ee |
# Convert to the collection format
|
|
|
ff17ee |
python3 lsr_role2collection.py --role "%{rolename}" \
|
|
|
ff17ee |
--src-path "%{rolename}" \
|
|
|
ff17ee |
--src-owner linux-system-roles \
|
|
|
ff17ee |
--dest-path .collections \
|
|
|
ff17ee |
--readme lsr_role2collection/collection_readme.md \
|
|
|
ff17ee |
--namespace %{collection_namespace} \
|
|
|
ff17ee |
--collection %{collection_name} \
|
|
|
ff17ee |
--new-role "%{collection_rolename}" \
|
|
|
ff17ee |
--meta-runtime lsr_role2collection/runtime.yml
|
|
|
5a6d80 |
|
|
|
5a6d80 |
# removing dot files/dirs
|
|
|
5a6d80 |
rm -r .collections/ansible_collections/%{collection_namespace}/%{collection_name}/.[A-Za-z]*
|
|
|
ff17ee |
rm -r .collections/ansible_collections/%{collection_namespace}/%{collection_name}/tests/%{collection_rolename}/.[A-Za-z]*
|
|
|
5a6d80 |
|
|
|
5a6d80 |
# Copy galaxy.yml to the collection directory
|
|
|
5a6d80 |
cp -p galaxy.yml .collections/ansible_collections/%{collection_namespace}/%{collection_name}
|
|
|
5a6d80 |
|
|
|
ff17ee |
# Copy CHANGELOG.md from mssql to collection dir
|
|
|
ff17ee |
mv .collections/ansible_collections/%{collection_namespace}/%{collection_name}/roles/%{collection_rolename}/CHANGELOG.md \
|
|
|
ff17ee |
.collections/ansible_collections/%{collection_namespace}/%{collection_name}/
|
|
|
5a6d80 |
|
|
|
ff17ee |
%install
|
|
|
ff17ee |
mkdir -p %{buildroot}%{installbase}
|
|
|
5a6d80 |
|
|
|
ff17ee |
# Copy role in legacy format and rename rolename in tests
|
|
|
ff17ee |
cp -pR "%{rolename}" "%{buildroot}%{installbase}/%{legacy_rolename}"
|
|
|
ff17ee |
sed -i "s/linux-system-roles\.%{rolename}/microsoft\.%{legacy_rolename}/g" \
|
|
|
ff17ee |
%{buildroot}%{installbase}/%{legacy_rolename}/tests/*.yml
|
|
|
5a6d80 |
|
|
|
5a6d80 |
# Copy README, COPYING, and LICENSE files to the corresponding directories
|
|
|
ff17ee |
mkdir -p %{buildroot}%{_pkglicensedir}
|
|
|
ff17ee |
mkdir -p "%{buildroot}%{_pkgdocdir}/%{legacy_rolename}"
|
|
|
ff17ee |
cp -p "%{buildroot}%{installbase}/%{legacy_rolename}/README.md" \
|
|
|
ff17ee |
"%{buildroot}%{_pkgdocdir}/%{legacy_rolename}"
|
|
|
5a6d80 |
%if %{with html}
|
|
|
ff17ee |
cp -p "%{buildroot}%{installbase}/%{legacy_rolename}/README.html" \
|
|
|
ff17ee |
"%{buildroot}%{_pkgdocdir}/%{legacy_rolename}"
|
|
|
5a6d80 |
%endif
|
|
|
ff17ee |
if [ -f "%{buildroot}%{installbase}/%{legacy_rolename}/COPYING" ]; then
|
|
|
ff17ee |
cp -p "%{buildroot}%{installbase}/%{legacy_rolename}/COPYING" \
|
|
|
ff17ee |
"%{buildroot}%{_pkglicensedir}/%{legacy_rolename}.COPYING"
|
|
|
ff17ee |
fi
|
|
|
ff17ee |
if [ -f "%{buildroot}%{installbase}/%{legacy_rolename}/LICENSE" ]; then
|
|
|
ff17ee |
cp -p "%{buildroot}%{installbase}/%{legacy_rolename}/LICENSE" \
|
|
|
ff17ee |
"%{buildroot}%{_pkglicensedir}/%{legacy_rolename}.LICENSE"
|
|
|
ff17ee |
fi
|
|
|
5a6d80 |
|
|
|
5a6d80 |
# Remove dot files
|
|
|
ff17ee |
rm -r %{buildroot}%{installbase}/*/.[A-Za-z]*
|
|
|
ff17ee |
rm -r %{buildroot}%{installbase}/%{legacy_rolename}/tests/.[A-Za-z]*
|
|
|
ff17ee |
|
|
|
5a6d80 |
|
|
|
5a6d80 |
# Remove the molecule directory
|
|
|
ff17ee |
rm -r %{buildroot}%{installbase}/*/molecule
|
|
|
5a6d80 |
|
|
|
5a6d80 |
pushd .collections/ansible_collections/%{collection_namespace}/%{collection_name}/
|
|
|
5a6d80 |
%ansible_collection_build_install
|
|
|
5a6d80 |
popd
|
|
|
5a6d80 |
|
|
|
ff17ee |
mkdir -p %{buildroot}%{_pkgdocdir}/collection
|
|
|
ff17ee |
mkdir -p %{buildroot}%{_pkgdocdir}/collection/roles
|
|
|
5a6d80 |
|
|
|
5a6d80 |
# Copy the collection README files to the collection
|
|
|
5a6d80 |
cp -p %{buildroot}%{ansible_collection_files}%{collection_name}/README.md \
|
|
|
ff17ee |
%{buildroot}%{_pkgdocdir}/collection
|
|
|
5a6d80 |
|
|
|
ff17ee |
if [ -f "%{buildroot}%{ansible_collection_files}%{collection_name}/roles/%{collection_rolename}/README.md" ]; then
|
|
|
ff17ee |
mkdir -p %{buildroot}%{_pkgdocdir}/collection/roles/%{collection_rolename}
|
|
|
ff17ee |
cp -p %{buildroot}%{ansible_collection_files}%{collection_name}/roles/%{collection_rolename}/README.md \
|
|
|
ff17ee |
%{buildroot}%{_pkgdocdir}/collection/roles/%{collection_rolename}
|
|
|
ff17ee |
fi
|
|
|
5a6d80 |
|
|
|
5a6d80 |
%if %{with html}
|
|
|
ff17ee |
# Convert README.md to README.html for collection in %%{buildroot}%%{_pkgdocdir}/collection
|
|
|
ff17ee |
sh md2html.sh %{buildroot}%{_pkgdocdir}/collection/roles/%{collection_rolename}/README.md
|
|
|
5a6d80 |
%endif
|
|
|
5a6d80 |
|
|
|
5a6d80 |
%if %{with collection_artifact}
|
|
|
5a6d80 |
# Copy collection artifact to /usr/share/ansible/collections/ for collection-artifact
|
|
|
5a6d80 |
pushd .collections/ansible_collections/%{collection_namespace}/%{collection_name}/
|
|
|
5a6d80 |
if [ -f %{collection_namespace}-%{collection_name}-%{version}.tar.gz ]; then
|
|
|
5a6d80 |
mv %{collection_namespace}-%{collection_name}-%{version}.tar.gz \
|
|
|
ff17ee |
%{buildroot}%{_datadir}/ansible/collections/
|
|
|
5a6d80 |
fi
|
|
|
5a6d80 |
popd
|
|
|
5a6d80 |
%endif
|
|
|
5a6d80 |
|
|
|
5a6d80 |
# generate the %files section in the file files_section.txt
|
|
|
5a6d80 |
format_item_for_files() {
|
|
|
5a6d80 |
# $1 is directory or file name in buildroot
|
|
|
5a6d80 |
# $2 - if true, and item is a directory, use %dir
|
|
|
5a6d80 |
local item
|
|
|
5a6d80 |
local files_item
|
|
|
5a6d80 |
item="$1"
|
|
|
5a6d80 |
files_item=${item##"%{buildroot}"}
|
|
|
5a6d80 |
if [ -L "$item" ]; then
|
|
|
5a6d80 |
echo "$files_item"
|
|
|
5a6d80 |
elif [ -d "$item" ]; then
|
|
|
5a6d80 |
if [[ "$item" == */doc* ]]; then
|
|
|
5a6d80 |
echo "%doc $files_item"
|
|
|
5a6d80 |
elif [ "${2:-false}" = true ]; then
|
|
|
5a6d80 |
echo "%dir $files_item"
|
|
|
5a6d80 |
else
|
|
|
5a6d80 |
echo "$files_item"
|
|
|
5a6d80 |
fi
|
|
|
5a6d80 |
elif [[ "$item" == */README.md ]] || [[ "$item" == */README.html ]]; then
|
|
|
5a6d80 |
if [[ "$item" == */private_* ]]; then
|
|
|
5a6d80 |
# mark as regular file, not %doc
|
|
|
5a6d80 |
echo "$files_item"
|
|
|
5a6d80 |
else
|
|
|
5a6d80 |
echo "%doc $files_item"
|
|
|
5a6d80 |
fi
|
|
|
5a6d80 |
elif [[ "$item" != */COPYING* ]] && [[ "$item" != */LICENSE* ]]; then
|
|
|
5a6d80 |
# Avoid dynamically using the license macro since the license macro
|
|
|
5a6d80 |
# is replaced with the value of License directive in the older rpmbuild.
|
|
|
5a6d80 |
echo "$files_item"
|
|
|
5a6d80 |
fi
|
|
|
5a6d80 |
}
|
|
|
5a6d80 |
|
|
|
5a6d80 |
files_section=files_section.txt
|
|
|
5a6d80 |
rm -f $files_section
|
|
|
5a6d80 |
touch $files_section
|
|
|
5a6d80 |
%if %{without ansible}
|
|
|
5a6d80 |
echo '%dir %{_datadir}/ansible' >> $files_section
|
|
|
5a6d80 |
echo '%dir %{_datadir}/ansible/roles' >> $files_section
|
|
|
5a6d80 |
%endif
|
|
|
5a6d80 |
echo '%dir %{ansible_collection_files}' >> $files_section
|
|
|
5a6d80 |
echo '%dir %{ansible_collection_files}%{collection_name}' >> $files_section
|
|
|
5a6d80 |
find %{buildroot}%{ansible_collection_files}%{collection_name} -mindepth 1 -maxdepth 1 | \
|
|
|
5a6d80 |
while read item; do
|
|
|
5a6d80 |
if [[ "$item" == */roles ]]; then
|
|
|
5a6d80 |
format_item_for_files "$item" true >> $files_section
|
|
|
5a6d80 |
find "$item" -mindepth 1 -maxdepth 1 | while read roles_dir; do
|
|
|
5a6d80 |
format_item_for_files "$roles_dir" true >> $files_section
|
|
|
5a6d80 |
find "$roles_dir" -mindepth 1 -maxdepth 1 | while read roles_item; do
|
|
|
5a6d80 |
format_item_for_files "$roles_item" >> $files_section
|
|
|
5a6d80 |
done
|
|
|
5a6d80 |
done
|
|
|
5a6d80 |
else
|
|
|
5a6d80 |
format_item_for_files "$item" >> $files_section
|
|
|
5a6d80 |
fi
|
|
|
5a6d80 |
done
|
|
|
5a6d80 |
|
|
|
5a6d80 |
find %{buildroot}%{installbase} -mindepth 1 -maxdepth 1 | \
|
|
|
5a6d80 |
while read item; do
|
|
|
5a6d80 |
if [ -d "$item" ]; then
|
|
|
5a6d80 |
format_item_for_files "$item" true >> $files_section
|
|
|
5a6d80 |
find "$item" -mindepth 1 -maxdepth 1 | while read roles_item; do
|
|
|
5a6d80 |
format_item_for_files "$roles_item" >> $files_section
|
|
|
5a6d80 |
done
|
|
|
5a6d80 |
else
|
|
|
5a6d80 |
format_item_for_files "$item" >> $files_section
|
|
|
5a6d80 |
fi
|
|
|
5a6d80 |
done
|
|
|
5a6d80 |
if [ "%{installbase}" != "%{_datadir}/ansible/roles" ]; then
|
|
|
5a6d80 |
find %{buildroot}%{_datadir}/ansible/roles -mindepth 1 -maxdepth 1 | \
|
|
|
5a6d80 |
while read item; do
|
|
|
5a6d80 |
if [ -d "$item" ]; then
|
|
|
5a6d80 |
format_item_for_files "$item" true >> $files_section
|
|
|
5a6d80 |
find "$item" -mindepth 1 -maxdepth 1 | while read roles_item; do
|
|
|
5a6d80 |
format_item_for_files "$roles_item" >> $files_section
|
|
|
5a6d80 |
done
|
|
|
5a6d80 |
else
|
|
|
5a6d80 |
format_item_for_files "$item" >> $files_section
|
|
|
5a6d80 |
fi
|
|
|
5a6d80 |
done
|
|
|
5a6d80 |
fi
|
|
|
5a6d80 |
# cat files_section.txt
|
|
|
5a6d80 |
# done with files_section.txt generation
|
|
|
5a6d80 |
|
|
|
5a6d80 |
%files -f files_section.txt
|
|
|
ff17ee |
%{_pkgdocdir}
|
|
|
ff17ee |
%license %{_pkglicensedir}
|
|
|
5a6d80 |
%license %{installbase}/*/LICENSE*
|
|
|
5a6d80 |
%license %{ansible_collection_files}/%{collection_name}/LICENSE*
|
|
|
5a6d80 |
|
|
|
5a6d80 |
%if %{with collection_artifact}
|
|
|
5a6d80 |
%files collection-artifact
|
|
|
5a6d80 |
%{_datadir}/ansible/collections/%{collection_namespace}-%{collection_name}-%{version}.tar.gz
|
|
|
5a6d80 |
%endif
|
|
|
5a6d80 |
|
|
|
5a6d80 |
%changelog
|
|
|
ff17ee |
* Fri Sep 23 2022 Sergei Petrosian <spetrosi@redhat.com> - 1.2.4-1
|
|
|
ff17ee |
- Simplify spec file
|
|
|
ff17ee |
- Do not install roles to /usr/share/microsoft and then create symlinks
|
|
|
ff17ee |
to /usr/share/ansible/roles/, instead install directly to
|
|
|
ff17ee |
/usr/share/ansible/roles/
|
|
|
ff17ee |
- Remove unused removal of ambiguous python shebangs
|
|
|
ff17ee |
- Remove all loops because this RPM contains only one role
|
|
|
ff17ee |
- Remove defsource - simply define the source for mssql
|
|
|
ff17ee |
- 's|$RPM_BUILD_ROOT|%%{buildroot}|' for consistency
|
|
|
ff17ee |
- Remove getarchivedir for simplicity
|
|
|
ff17ee |
- Wrap description by 80 symbols and clarify it
|
|
|
ff17ee |
- Remove tests/.fmf dir from the RPM
|
|
|
ff17ee |
Resolves: rhbz#2129108
|
|
|
ff17ee |
- Input multiple sql scripts
|
|
|
ff17ee |
- Allow _input_sql_file vars to accept list of files
|
|
|
ff17ee |
- Flush handlers prior to inputting post sql script
|
|
|
ff17ee |
Resolves: rhbz#2129333
|
|
|
ff17ee |
- Use firewall role to configure firewall for SQL Server
|
|
|
ff17ee |
Resolves: rhbz#2129334
|
|
|
ff17ee |
|
|
|
4f71d3 |
* Mon May 23 2022 Sergei Petrosian <spetrosi@redhat.com> - 1.1.1-3
|
|
|
4f71d3 |
- Insert the "Ansible managed" comment to /var/opt/mssql/mssql.conf
|
|
|
4f71d3 |
Resolves: rhbz#2006233 (EL7)
|
|
|
4f71d3 |
|
|
|
4f71d3 |
- Add Requires: ansible-core or ansible to the spec file
|
|
|
4f71d3 |
Resolves: rhbz#2089290 (EL7)
|
|
|
4f71d3 |
|
|
|
4f71d3 |
- Users now can provide a custom URLs to pull packages and RPM key from
|
|
|
4f71d3 |
Resolves: rhbz#2089292 (EL7)
|
|
|
4f71d3 |
|
|
|
4f71d3 |
* Wed Jan 19 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-3
|
|
|
4f71d3 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
4f71d3 |
|
|
|
4f71d3 |
* Wed Jul 21 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-2
|
|
|
4f71d3 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
4f71d3 |
|
|
|
5a6d80 |
* Wed Jul 21 2021 Sergei Petrosian <spetrosi@redhat.com> - 1.1.0-1
|
|
|
5a6d80 |
- Add support for Microsoft SQL Server 2017
|
|
|
5a6d80 |
|
|
|
5a6d80 |
* Mon Jul 19 2021 Sergei Petrosian <spetrosi@redhat.com> - 1.0.12-2
|
|
|
5a6d80 |
- Copy fix for RHEL 7 builds from rhel-system-roles
|
|
|
5a6d80 |
Link to the original fix:
|
|
|
5a6d80 |
https://src.fedoraproject.org/rpms/linux-system-roles/c/093981119f99ac51a6e06a2714b587e4e2fe287c
|
|
|
5a6d80 |
|
|
|
5a6d80 |
* Tue Jul 13 2021 Sergei Petrosian <spetrosi@redhat.com> - 1.0.12-1
|
|
|
5a6d80 |
- Add the meta-runtime option from the latest auto-maintenance
|
|
|
5a6d80 |
- Use the latest mssql that ships fixes for issues #24,#25,#26,#27,#28,35
|
|
|
5a6d80 |
|
|
|
5a6d80 |
* Tue Jun 29 2021 Sergei Petrosian <spetrosi@redhat.com> - 1.0.11-3
|
|
|
5a6d80 |
- Add a missing slash at the {ansible_collection_files} definition for rhel 7
|
|
|
5a6d80 |
|
|
|
5a6d80 |
* Thu Jun 17 2021 Sergei Petrosian <spetrosi@redhat.com> - 1.0.11-2
|
|
|
5a6d80 |
- Make the ansible_collection_files macro defined in Fedora automatically and
|
|
|
5a6d80 |
in RHEL manually consistent - having slash at the end to clean double-slashes
|
|
|
5a6d80 |
|
|
|
5a6d80 |
* Thu Jun 17 2021 Sergei Petrosian <spetrosi@redhat.com> - 1.0.11-1
|
|
|
5a6d80 |
- Update the version to be consistent with the Galaxy collection at
|
|
|
5a6d80 |
https://galaxy.ansible.com/microsoft/sql
|
|
|
5a6d80 |
|
|
|
5a6d80 |
* Wed Jun 16 2021 Sergei Petrosian <spetrosi@redhat.com> - 0.0.1-5
|
|
|
5a6d80 |
- Update commit hash for mssql
|
|
|
5a6d80 |
|
|
|
5a6d80 |
* Wed Jun 16 2021 Sergei Petrosian <spetrosi@redhat.com> - 0.0.1-4
|
|
|
5a6d80 |
- Generate symlinks for roles in /usr/share/ansible/roles
|
|
|
5a6d80 |
|
|
|
5a6d80 |
* Wed Jun 16 2021 Sergei Petrosian <spetrosi@redhat.com> - 0.0.1-3
|
|
|
5a6d80 |
- Copy changes made to linux-system-roles in this PR:
|
|
|
5a6d80 |
https://src.fedoraproject.org/rpms/linux-system-roles/pull-request/13#
|
|
|
5a6d80 |
- Make spec file available for older versions of OSes.
|
|
|
5a6d80 |
- Drop python3-six dependency which was used by lsr_role2collection.py.
|
|
|
5a6d80 |
- Drop html files from rpm if the version has no markdown parser.
|
|
|
5a6d80 |
- Drop unnecessary python scripts which include python3 only code, e.g.,
|
|
|
5a6d80 |
f-strings.
|
|
|
5a6d80 |
Resolves rhbz#1970165
|
|
|
5a6d80 |
|
|
|
5a6d80 |
* Mon Jun 14 2021 Sergei Petrosian <spetrosi@redhat.com> - 0.0.1-2
|
|
|
5a6d80 |
- Fix long description lines
|
|
|
5a6d80 |
- Fix incorrect role includes in microsoft/sql-server/tests/
|
|
|
5a6d80 |
|
|
|
5a6d80 |
* Thu Jun 3 2021 Sergei Petrosian <spetrosi@redhat.com> - 0.0.1-1
|
|
|
5a6d80 |
- Initial release
|