summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSooChan Lim <sc1.lim@samsung.com>2018-11-30 18:57:44 +0900
committerSooChan Lim <sc1.lim@samsung.com>2018-12-06 15:31:04 +0900
commitdb6c5971dbacc6ef54cb581d2980ad7142799143 (patch)
tree5ac46d5f6d9e3489269b14143afb4eae8e95a8fc
parentdda8f7b02ff505fc90a1adc38b53b2483be16a8b (diff)
downloadSPIRV-Tools-accepted/tizen_5.0_unified.tar.gz
SPIRV-Tools-accepted/tizen_5.0_unified.tar.bz2
SPIRV-Tools-accepted/tizen_5.0_unified.zip
-rw-r--r--packaging/spirv-tools.spec26
1 files changed, 11 insertions, 15 deletions
diff --git a/packaging/spirv-tools.spec b/packaging/spirv-tools.spec
index b7f1eee4..9be949b8 100644
--- a/packaging/spirv-tools.spec
+++ b/packaging/spirv-tools.spec
@@ -1,5 +1,5 @@
Name: spirv-tools
-Version: 0.1
+Version: 2018.6
Release: 0
Summary: Khronos SPIRV Tools
Group: Graphics & UI Framework/GL
@@ -12,7 +12,7 @@ BuildRequires: pkg-config
BuildRequires: libtool
BuildRequires: python
BuildRequires: python-xml
-BuildRequires: spirv-headers
+BuildRequires: spirv-headers-devel
%define BUILD_TYPE Debug
@@ -33,32 +33,28 @@ Khronos SPIRV Tools
cp %{SOURCE1001} .
# build SPIRV tools
-mkdir build
-cd build
-cmake ../
+cmake -DCMAKE_BUILD_TYPE=%{BUILD_TYPE} \
+ -DCMAKE_INSTALL_LIBDIR=%{_libdir} -DCMAKE_INSTALL_INCLUDEDIR=%{_includedir} \
+ -DCMAKE_INSTALL_DATADIR=%{_datadir} -DCMAKE_INSTALL_BINDIR=%{_bindir}
make
%install
rm -rf %{buildroot}
-# release pkg
-mkdir -p %{buildroot}%{_libdir}/pkgconfig
-cd build
+%make_install
+mkdir -p %{buildroot}%{_libdir}
cp -a source/libSPIRV* %{buildroot}%{_libdir}/
cp -a source/opt/libSPIRV* %{buildroot}%{_libdir}/
cp -a source/link/libSPIRV* %{buildroot}%{_libdir}/
-cp -f SPIRV-Tools.pc %{buildroot}%{_libdir}/pkgconfig/SPIRV-Tools.pc
-cp -f SPIRV-Tools-shared.pc %{buildroot}%{_libdir}/pkgconfig/SPIRV-Tools-shared.pc
-cd ..
-
-# devel pkg
-mkdir -p %{buildroot}%{_includedir}
-cp -a include/spirv-tools %{buildroot}%{_includedir}
%files
%manifest %{name}.manifest
%license LICENSE
%defattr(-,root,root,-)
%{_libdir}/libSPIRV*
+%{_libdir}/libSPIRV-Tools-link.a
+%{_libdir}/libSPIRV-Tools-opt.a
+%{_libdir}/libSPIRV-Tools.a
+%{_bindir}/*
%files devel
%defattr(-,root,root,-)