From ca21541d967d43369c222331f2937ad053f0cdbd Mon Sep 17 00:00:00 2001 From: Sandro Mani Date: Thu, 28 Jun 2018 23:41:10 +0200 Subject: [PATCH] Initial import --- .gitignore | 1 + README.md | 3 -- mingw-vulkan-headers.spec | 80 +++++++++++++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 82 insertions(+), 3 deletions(-) create mode 100644 .gitignore delete mode 100644 README.md create mode 100644 mingw-vulkan-headers.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..152bfc5 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/Vulkan-Headers-1.1.77.tar.gz diff --git a/README.md b/README.md deleted file mode 100644 index e3150e7..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# mingw-vulkan-headers - -The mingw-vulkan-headers package \ No newline at end of file diff --git a/mingw-vulkan-headers.spec b/mingw-vulkan-headers.spec new file mode 100644 index 0000000..f0c2784 --- /dev/null +++ b/mingw-vulkan-headers.spec @@ -0,0 +1,80 @@ +%{?mingw_package_header} + +%global pkgname vulkan-headers +%global srcname Vulkan-Headers + +#global commit 634e3658d6fa8f95f9062a3a7831d5567baf0eb3 +#global shortcommit %(c=%{commit}; echo ${c:0:7}) + +Name: mingw-%{pkgname} +Version: 1.1.77 +Release: 1%{?commit:.git%{shortcommit}}%{?dist} +Summary: MinGW Windows %{pkgname} + +License: ASL 2.0 +BuildArch: noarch +URL: https://github.com/KhronosGroup/%{srcname} +%if 0%{?commit:1} +Source0: https://github.com/KhronosGroup/%{srcname}/archive/%{commit}/%{srcname}-%{shortcommit}.tar.gz +%else +Source0: https://github.com/KhronosGroup/%{srcname}/archive/sdk-%{version}/%{srcname}-%{version}.tar.gz +%endif + +BuildRequires: cmake +BuildRequires: mingw32-filesystem >= 95 +BuildRequires: mingw64-filesystem >= 95 + + +%description +MinGW Windows %{pkgname} + + +%package -n mingw32-%{pkgname} +Summary: MinGW Windows %{pkgname} + +%description -n mingw32-%{pkgname} +MinGW Windows %{pkgname}. + + +%package -n mingw64-%{pkgname} +Summary: MinGW Windows %{pkgname} + +%description -n mingw64-%{pkgname} +MinGW Windows %{pkgname}. + + + +%prep +%if 0%{?commit:1} +%autosetup -p1 -n %{srcname}-%{commit} +%else +%autosetup -p1 -n %{srcname}-sdk-%{version} +%endif + + +%build +%mingw_cmake +%mingw_make + + +%install +%mingw_make DESTDIR=%{buildroot} install + + +%files -n mingw32-%{pkgname} +%license LICENSE.txt +%{mingw32_includedir}/vulkan/ +%{mingw32_datadir}/vulkan/ + +%files -n mingw64-%{pkgname} +%license LICENSE.txt +%{mingw64_includedir}/vulkan/ +%{mingw64_datadir}/vulkan/ + + +%changelog +* Tue Jun 26 2018 Sandro Mani - 1.1.77-1 +- Update to 1.1.77 + +* Fri Jun 08 2018 Sandro Mani - 1.1.76-0.1.git634e365 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..807a381 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (Vulkan-Headers-1.1.77.tar.gz) = cc33739df898c2c0ba9ddd55e01ba5bbac29b190240ddbbad87f708be8dc58175185c273eb442d5dd465a35e1ccea97926352e235c7b817f127be8ccd6a4a849