]> git.pld-linux.org Git - packages/spirv-tools.git/commitdiff
new package
authorJacek Konieczny <jajcus@jajcus.net>
Fri, 19 Feb 2016 19:50:49 +0000 (20:50 +0100)
committerJacek Konieczny <jajcus@jajcus.net>
Fri, 19 Feb 2016 19:50:49 +0000 (20:50 +0100)
cmake-lib64.patch [new file with mode: 0644]
spirv-tools.spec [new file with mode: 0644]

diff --git a/cmake-lib64.patch b/cmake-lib64.patch
new file mode 100644 (file)
index 0000000..7b489f9
--- /dev/null
@@ -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/)
diff --git a/spirv-tools.spec b/spirv-tools.spec
new file mode 100644 (file)
index 0000000..3d929bf
--- /dev/null
@@ -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
This page took 0.150046 seconds and 4 git commands to generate.