Blame mingw-vulkan-validation-layers.spec

0cf8da6
%{?mingw_package_header}
0cf8da6
0cf8da6
%global pkgname vulkan-validation-layers
0cf8da6
%global srcname Vulkan-ValidationLayers
0cf8da6
0cf8da6
#global commit 571a886b62cc7092626064376a65c7654f5d9b39
0cf8da6
#global shortcommit %(c=%{commit}; echo ${c:0:7})
0cf8da6
b7bf163
%define baseversion %(echo %{version} | awk -F'.' '{print $1"."$2"."$3".0"}')
b7bf163
0cf8da6
Name:          mingw-%{pkgname}
c18e45f
Version:       1.2.162.1
c18e45f
Release:       1%{?commit:.git%{shortcommit}}%{?dist}
0cf8da6
Summary:       MinGW Windows %{pkgname} library
0cf8da6
0cf8da6
License:       ASL 2.0
0cf8da6
BuildArch:     noarch
0cf8da6
URL:           https://github.com/KhronosGroup/%{srcname}
0cf8da6
%if 0%{?commit:1}
0cf8da6
Source0:       https://github.com/KhronosGroup/%{srcname}/archive/%{commit}/%{srcname}-%{shortcommit}.tar.gz
0cf8da6
%else
0cf8da6
Source0:       https://github.com/KhronosGroup/%{srcname}/archive/sdk-%{version}/%{srcname}-%{version}.tar.gz
0cf8da6
%endif
0cf8da6
c18e45f
# Case sensitivity fix
0cf8da6
Patch0:        vulkan-validation-layers_mingw.patch
0cf8da6
0cf8da6
0cf8da6
BuildRequires: make
0cf8da6
BuildRequires: cmake
0cf8da6
BuildRequires: python3
0cf8da6
0cf8da6
BuildRequires: mingw32-filesystem >= 95
0cf8da6
BuildRequires: mingw32-gcc-c++
0cf8da6
BuildRequires: mingw32-glslang
3f353b5
BuildRequires: mingw32-spirv-headers
0cf8da6
BuildRequires: mingw32-spirv-tools
b7bf163
BuildRequires: mingw32-vulkan-headers >= %{baseversion}
0cf8da6
0cf8da6
BuildRequires: mingw64-filesystem >= 95
0cf8da6
BuildRequires: mingw64-gcc-c++
0cf8da6
BuildRequires: mingw64-glslang
3f353b5
BuildRequires: mingw64-spirv-headers
0cf8da6
BuildRequires: mingw64-spirv-tools
b7bf163
BuildRequires: mingw64-vulkan-headers >= %{baseversion}
0cf8da6
0cf8da6
0cf8da6
%description
0cf8da6
MinGW Windows %{pkgname} library.
0cf8da6
0cf8da6
0cf8da6
%package -n mingw32-%{pkgname}
0cf8da6
Summary:       MinGW Windows %{pkgname} library
0cf8da6
0cf8da6
%description -n mingw32-%{pkgname}
0cf8da6
MinGW Windows %{pkgname} library.
0cf8da6
0cf8da6
0cf8da6
%package -n mingw64-%{pkgname}
0cf8da6
Summary:       MinGW Windows %{pkgname} library
0cf8da6
0cf8da6
%description -n mingw64-%{pkgname}
0cf8da6
MinGW Windows %{pkgname} library.
0cf8da6
0cf8da6
0cf8da6
%{?mingw_debug_package}
0cf8da6
0cf8da6
0cf8da6
%prep
0cf8da6
%if 0%{?commit:1}
0cf8da6
%autosetup -p1 -n %{srcname}-%{commit}
0cf8da6
%else
0cf8da6
%autosetup -p1 -n %{srcname}-sdk-%{version}
0cf8da6
%endif
0cf8da6
0cf8da6
0cf8da6
%build
c18e45f
# Need to specify minimum required windows version to 6.0 (Vista) or newer, else undefined references will occur
c18e45f
MINGW32_CFLAGS="%{mingw32_cflags} -D_WIN32_WINNT=0x0600" \
c18e45f
MINGW64_CFLAGS="%{mingw64_cflags} -D_WIN32_WINNT=0x0600" \
3f353b5
MINGW32_CMAKE_ARGS="-DGLSLANG_INSTALL_DIR=%{mingw32_prefix} -DSPIRV_HEADERS_INSTALL_DIR=%{mingw32_includedir}/spirv -DCMAKE_INSTALL_INCLUDEDIR=%{mingw32_includedir}/vulkan" \
3f353b5
MINGW64_CMAKE_ARGS="-DGLSLANG_INSTALL_DIR=%{mingw64_prefix} -DSPIRV_HEADERS_INSTALL_DIR=%{mingw64_includedir}/spirv -DCMAKE_INSTALL_INCLUDEDIR=%{mingw64_includedir}/vulkan"\
0cf8da6
%mingw_cmake
3f353b5
%mingw_make_build
0cf8da6
0cf8da6
0cf8da6
%install
3f353b5
%mingw_make_install
0cf8da6
0cf8da6
0cf8da6
%files -n mingw32-%{pkgname}
0cf8da6
%doc README.md
0cf8da6
%license LICENSE.txt
2bbcdda
%{mingw32_bindir}/libVkLayer_khronos_validation.dll
2bbcdda
%{mingw32_libdir}/libVkLayer_khronos_validation.dll.a
0cf8da6
%{mingw32_libdir}/libVkLayer_utils.a
2bbcdda
%{mingw32_libdir}/VkLayer_khronos_validation.json
0cf8da6
12931d1
0cf8da6
%files -n mingw64-%{pkgname}
0cf8da6
%doc README.md
0cf8da6
%license LICENSE.txt
2bbcdda
%{mingw64_bindir}/libVkLayer_khronos_validation.dll
2bbcdda
%{mingw64_libdir}/libVkLayer_khronos_validation.dll.a
0cf8da6
%{mingw64_libdir}/libVkLayer_utils.a
2bbcdda
%{mingw64_libdir}/VkLayer_khronos_validation.json
0cf8da6
0cf8da6
0cf8da6
%changelog
c18e45f
* Thu Feb 04 2021 Sandro Mani <manisandro@gmail.com> - 1.2.162.1-1
c18e45f
- Update to 1.2.162.1
c18e45f
7456915
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.154.0-2
7456915
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
7456915
b7bf163
* Wed Nov 04 2020 Sandro Mani <manisandro@gmail.com> - 1.2.154.0-1
b7bf163
- Update to 1.2.154.0
b7bf163
3f353b5
* Mon Aug 10 2020 Sandro Mani <manisandro@gmail.com> - 1.2.148.0-1
3f353b5
- Update to 1.2.148.0
3f353b5
6f396d8
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.135.0-2
6f396d8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
6f396d8
b80be93
* Wed Apr 22 2020 Sandro Mani <manisandro@gmail.com> - 1.2.135.0-1
b80be93
- Update to 1.2.135.0
b80be93
1a06a2c
* Sun Feb 02 2020 Sandro Mani <manisandro@gmail.com> - 1.2.131.1-1
1a06a2c
- Update to 1.2.131.1
1a06a2c
c5a2c29
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.126.0-2
c5a2c29
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
c5a2c29
2cb4fb8
* Wed Nov 13 2019 Sandro Mani <manisandro@gmail.com> - 1.1.126.0-1
2cb4fb8
- Update to 1.1.126.0
2cb4fb8
7e0f85c
* Tue Oct 08 2019 Sandro Mani <manisandro@gmail.com> - 1.1.114.0-2
7e0f85c
- Rebuild (Changes/Mingw32GccDwarf2)
7e0f85c
f87427d
* Wed Jul 31 2019 Sandro Mani <manisandro@gmail.com> - 1.1.114.0-1
f87427d
- Update to 1.1.114.0
f87427d
91044a4
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.108.0-2
91044a4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
91044a4
2bbcdda
* Fri Jun 28 2019 Sandro Mani <manisandro@gmail.com> - 1.1.108.0-1
2bbcdda
- Update to 1.1.108.0
2bbcdda
2bbcdda
* Sat Apr 20 2019 Sandro Mani <manisandro@gmail.com> - 1.1.106.0-1
2bbcdda
- Update to 1.1.106.0
2bbcdda
72e718e
* Tue Apr 02 2019 Sandro Mani <manisandro@gmail.com> - 1.1.101.0-1
72e718e
- Update to 1.1.101.0
72e718e
72e718e
* Thu Feb 14 2019 Sandro Mani <manisandro@gmail.com> - 1.1.97.0-1
12931d1
- Update to 1.1.97.0
12931d1
229e2e9
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.82.0-2
229e2e9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
229e2e9
c0b6322
* Tue Aug 07 2018 Sandro Mani <manisandro@gmail.com> - 1.1.82.0-1
c0b6322
- Update to 1.1.82.0
c0b6322
1b2534a
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.77-2
1b2534a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
1b2534a
0cf8da6
* Wed Jun 27 2018 Sandro Mani <manisandro@gmail.com> - 1.1.77-1
0cf8da6
- Update to 1.1.77
0cf8da6
0cf8da6
* Sat Jun 09 2018 Sandro Mani <manisandro@gmail.com> - 1.1.74-0.1.git571a886
0cf8da6
- Initial package