[packages/spirv-tools] new package

jajcus jajcus at pld-linux.org
Fri Feb 19 20:51:03 CET 2016


commit dc0fdaa7a1f9cdf1cec212d9c56a95c6dc779f05
Author: Jacek Konieczny <jajcus at jajcus.net>
Date:   Fri Feb 19 20:50:49 2016 +0100

    new package

 cmake-lib64.patch | 14 +++++++++
 spirv-tools.spec  | 88 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 102 insertions(+)
---
diff --git a/spirv-tools.spec b/spirv-tools.spec
new file mode 100644
index 0000000..3d929bf
--- /dev/null
+++ b/spirv-tools.spec
@@ -0,0 +1,88 @@
+%define	_ver	%(echo %{version} | tr _ -)
+Summary:	SPIR-V Tools
+Name:		spirv-tools
+Version:	1.0_rev3
+Release:	0.1
+License:	MIT-like
+Group:		Applications
+Source0:	https://github.com/KhronosGroup/SPIRV-Tools/archive/spirv-%{_ver}/%{name}-%{version}.tar.gz
+# Source0-md5:	81a72c33f7d50d010de760d55a96683f
+Patch0:		cmake-lib64.patch
+URL:		https://github.com/KhronosGroup/SPIRV-Tools
+BuildRequires:	cmake
+Requires:	%{name}-libs = %{version}-%{release}
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+The SPIR-V Tools project provides an API and commands for processing
+SPIR-V modules.
+
+The project includes an assembler, binary module parser, disassembler,
+and validator for SPIR-V, all based on a common static library. The
+library contains all of the implementation details, and is used in the
+standalone tools whilst also enabling integration into other code
+bases directly.
+
+The interfaces are still under development, and are expected to
+change.
+
+SPIR-V is defined by the Khronos Group Inc.
+
+%package libs
+Summary:	SPIR-V Tools library
+Group:		Libraries
+
+%description libs
+The SPIR-V Tools project provides an API for processing SPIR-V
+modules.
+
+%package devel
+Summary:	Header files for %{name} library
+Summary(pl.UTF-8):	Pliki nagłówkowe biblioteki %{name}
+Group:		Development/Libraries
+Requires:	%{name}-libs = %{version}-%{release}
+
+%description devel
+Header files for %{name} library.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe biblioteki %{name}.
+
+%prep
+%setup -q -n SPIRV-Tools-spirv-%{_ver}
+%patch0 -p1
+
+%build
+install -d build
+cd build
+%cmake \
+	../
+
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+cd build
+%{__make} install \
+	DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post	libs -p /sbin/ldconfig
+%postun	libs -p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc LICENSE README.md syntax.md
+%attr(755,root,root) %{_bindir}/spirv-*
+
+%files libs
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libSPIRV-Tools.so
+
+%files devel
+%defattr(644,root,root,755)
+%{_includedir}/spirv
+%{_includedir}/spirv-tools
diff --git a/cmake-lib64.patch b/cmake-lib64.patch
new file mode 100644
index 0000000..7b489f9
--- /dev/null
+++ b/cmake-lib64.patch
@@ -0,0 +1,14 @@
+diff -dur SPIRV-Tools-spirv-1.0-rev3.orig/CMakeLists.txt SPIRV-Tools-spirv-1.0-rev3/CMakeLists.txt
+--- SPIRV-Tools-spirv-1.0-rev3.orig/CMakeLists.txt	2016-02-17 22:01:39.000000000 +0100
++++ SPIRV-Tools-spirv-1.0-rev3/CMakeLists.txt	2016-02-19 20:48:37.671140267 +0100
+@@ -276,8 +276,8 @@
+ 
+ install(TARGETS ${SPIRV_INSTALL_TARGETS}
+   RUNTIME DESTINATION bin
+-  LIBRARY DESTINATION lib
+-  ARCHIVE DESTINATION lib)
++  LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}"
++  ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}")
+ 
+ install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/include/spirv-tools/libspirv.h
+   DESTINATION include/spirv-tools/)
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/spirv-tools.git/commitdiff/dc0fdaa7a1f9cdf1cec212d9c56a95c6dc779f05



More information about the pld-cvs-commit mailing list