Add spec file and manifect file master tizen_20181206 accepted/tizen/5.0/unified/20181102.022702 accepted/tizen/unified/20180426.062555 submit/tizen/20180425.094529 submit/tizen_5.0/20181101.000005
authorXuelian <xuelian.bai@samsung.com>
Wed, 18 Apr 2018 11:12:00 +0000 (19:12 +0800)
committerXuelian <xuelian.bai@samsung.com>
Wed, 18 Apr 2018 11:40:22 +0000 (19:40 +0800)
Change-Id: I6652f57937a7440ab437f9ee8f88d60fe9687ad9

packaging/spirv-headers.manifest [new file with mode: 0644]
packaging/spirv-headers.spec [new file with mode: 0644]

diff --git a/packaging/spirv-headers.manifest b/packaging/spirv-headers.manifest
new file mode 100644 (file)
index 0000000..75b0fa5
--- /dev/null
@@ -0,0 +1,5 @@
+<manifest>
+    <request>
+        <domain name="_"/>
+    </request>
+</manifest>
diff --git a/packaging/spirv-headers.spec b/packaging/spirv-headers.spec
new file mode 100644 (file)
index 0000000..73ee0ca
--- /dev/null
@@ -0,0 +1,57 @@
+Name:       spirv-headers
+Version:    0.1
+Release:    0
+Summary:    Khronos SPIRV Headers
+Group:      Graphics & UI Framework/GL
+License:    MIT
+Source:     %{name}-%{version}.tar.gz
+Source1001: %{name}.manifest
+
+BuildRequires:  cmake
+BuildRequires:  pkg-config
+BuildRequires:  libtool
+
+%define BUILD_TYPE Debug
+
+%description
+Khronos SPIRV Headers
+
+%package devel
+Summary:    Khronos SPIRV Headers
+Group:      System/Libraries
+
+%description devel
+Khronos SPIRV Headers
+
+%prep
+%setup -q
+
+%build
+cp %{SOURCE1001} .
+
+# build SPIRV headers
+mkdir build
+cd build
+cmake ..
+cd ..
+
+%install
+rm -rf %{buildroot}
+# release pkg
+mkdir -p  %{buildroot}%{_includedir}/
+cp -Rf  include/spirv %{buildroot}%{_includedir}/
+
+# devel pkg
+cp -rf  include/* %{buildroot}%{_includedir}/
+
+%files
+%manifest %{name}.manifest
+%license LICENSE
+%defattr(-,root,root,-)
+%{_includedir}/spirv/*
+
+%files devel
+%defattr(-,root,root,-)
+%{_includedir}/spirv/*
+
+