forked from pool/lua-vstruct
		
	Accepting request 998932 from home:Pi-Cla
New lua package OBS-URL: https://build.opensuse.org/request/show/998932 OBS-URL: https://build.opensuse.org/package/show/devel:languages:lua/lua-vstruct?expand=0&rev=1
This commit is contained in:
		
							
								
								
									
										23
									
								
								.gitattributes
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										23
									
								
								.gitattributes
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,23 @@ | ||||
| ## Default LFS | ||||
| *.7z filter=lfs diff=lfs merge=lfs -text | ||||
| *.bsp filter=lfs diff=lfs merge=lfs -text | ||||
| *.bz2 filter=lfs diff=lfs merge=lfs -text | ||||
| *.gem filter=lfs diff=lfs merge=lfs -text | ||||
| *.gz filter=lfs diff=lfs merge=lfs -text | ||||
| *.jar filter=lfs diff=lfs merge=lfs -text | ||||
| *.lz filter=lfs diff=lfs merge=lfs -text | ||||
| *.lzma filter=lfs diff=lfs merge=lfs -text | ||||
| *.obscpio filter=lfs diff=lfs merge=lfs -text | ||||
| *.oxt filter=lfs diff=lfs merge=lfs -text | ||||
| *.pdf filter=lfs diff=lfs merge=lfs -text | ||||
| *.png filter=lfs diff=lfs merge=lfs -text | ||||
| *.rpm filter=lfs diff=lfs merge=lfs -text | ||||
| *.tbz filter=lfs diff=lfs merge=lfs -text | ||||
| *.tbz2 filter=lfs diff=lfs merge=lfs -text | ||||
| *.tgz filter=lfs diff=lfs merge=lfs -text | ||||
| *.ttf filter=lfs diff=lfs merge=lfs -text | ||||
| *.txz filter=lfs diff=lfs merge=lfs -text | ||||
| *.whl filter=lfs diff=lfs merge=lfs -text | ||||
| *.xz filter=lfs diff=lfs merge=lfs -text | ||||
| *.zip filter=lfs diff=lfs merge=lfs -text | ||||
| *.zst filter=lfs diff=lfs merge=lfs -text | ||||
							
								
								
									
										1
									
								
								.gitignore
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								.gitignore
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1 @@ | ||||
| .osc | ||||
							
								
								
									
										5
									
								
								_multibuild
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								_multibuild
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,5 @@ | ||||
| <multibuild> | ||||
| <package>lua51</package> | ||||
| <package>lua53</package> | ||||
| <package>lua54</package> | ||||
| </multibuild> | ||||
							
								
								
									
										17
									
								
								_service
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										17
									
								
								_service
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,17 @@ | ||||
| <services> | ||||
|   <service mode="manual" name="obs_scm"> | ||||
|     <param name="url">https://github.com/ToxicFrog/vstruct</param> | ||||
|     <param name="versionformat">@PARENT_TAG@+git@TAG_OFFSET@</param> | ||||
|     <param name="scm">git</param> | ||||
|     <param name="revision">b6889e3b275e9f9532b5dff4917e903b17e22730</param> | ||||
|     <param name="versionrewrite-pattern">v(\d+.\d+.\d+)</param> | ||||
|     <param name="versionrewrite-replacement">\1</param> | ||||
|   </service> | ||||
|   <service mode="manual" name="tar" /> | ||||
|   <service mode="manual" name="recompress"> | ||||
|     <param name="file">*.tar</param> | ||||
|     <param name="compression">xz</param> | ||||
|   </service> | ||||
|   <service mode="manual" name="set_version"/> | ||||
| </services> | ||||
|  | ||||
							
								
								
									
										4
									
								
								lua-vstruct.changes
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								lua-vstruct.changes
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,4 @@ | ||||
| ------------------------------------------------------------------- | ||||
| Wed Aug 24 01:59:32 UTC 2022 - Gordon Leung <pirateclip@protonmail.com> | ||||
|  | ||||
| - initial commit  | ||||
							
								
								
									
										71
									
								
								lua-vstruct.spec
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										71
									
								
								lua-vstruct.spec
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,71 @@ | ||||
| # | ||||
| # spec file | ||||
| # | ||||
| # Copyright (c) 2022 SUSE LLC | ||||
| # | ||||
| # All modifications and additions to the file contributed by third parties | ||||
| # remain the property of their copyright owners, unless otherwise agreed | ||||
| # upon. The license for this file, and modifications and additions to the | ||||
| # file, is the same license as for the pristine package itself (unless the | ||||
| # license for the pristine package is not an Open Source License, in which | ||||
| # case the license is the MIT License). An "Open Source License" is a | ||||
| # license that conforms to the Open Source Definition (Version 1.9) | ||||
| # published by the Open Source Initiative. | ||||
|  | ||||
| # Please submit bugfixes or comments via https://bugs.opensuse.org/ | ||||
| # | ||||
|  | ||||
|  | ||||
| %define flavor @BUILD_FLAVOR@ | ||||
| %define mod_name vstruct | ||||
| %define rock_version 2.1.1-1 | ||||
|  | ||||
| Version:        2.1.1+git2 | ||||
| Release:        0 | ||||
| Summary:        Lua library to manipulate binary data | ||||
| License:        MIT | ||||
| Group:          Development/Languages/Other | ||||
| URL:            https://github.com/ToxicFrog/vstruct | ||||
| Source:         %{mod_name}-%{version}.tar.xz | ||||
| BuildRequires:  %{flavor}-luarocks | ||||
| BuildRequires:  %{flavor}-devel | ||||
| Requires:       %{flavor} | ||||
| %lua_provides | ||||
| %if "%{flavor}" == "" | ||||
| Name:           lua-%{mod_name} | ||||
| ExclusiveArch:  do_not_build | ||||
| %else | ||||
| Name:           %{flavor}-%{mod_name} | ||||
| %endif | ||||
| BuildArch:      noarch | ||||
|  | ||||
| %description | ||||
| A Lua library for packing and unpacking binary data, supporting arbitrary | ||||
| (byte-aligned) widths, named fields, and repetition. | ||||
|  | ||||
| %prep | ||||
| %autosetup -n %{mod_name}-%{version} | ||||
|  | ||||
| %build | ||||
|  | ||||
| %install | ||||
| luarocks --lua-version="%{lua_version}" --tree="%{buildroot}/usr/" \ | ||||
|  make --deps-mode=none --no-manifest "%{mod_name}-%{rock_version}.rockspec" | ||||
|  | ||||
| # Seperate out documentation and licence | ||||
| mv %{buildroot}/usr/lib/luarocks/rocks-%{lua_version}/%{mod_name}/%{rock_version}/doc/COPYING . | ||||
| mkdir -p docs | ||||
| mv %{buildroot}/usr/lib/luarocks/rocks-%{lua_version}/%{mod_name}/%{rock_version}/doc/* docs/ | ||||
| rmdir %{buildroot}/usr/lib/luarocks/rocks-%{lua_version}/%{mod_name}/%{rock_version}/doc | ||||
|  | ||||
| # Move pure lua modules to lua_noarchdir | ||||
| mkdir -p %{buildroot}%{lua_noarchdir}/luarocks/rocks-%{lua_version}/%{mod_name}/%{rock_version} | ||||
| mv %{buildroot}/usr/lib/luarocks/rocks-%{lua_version}/%{mod_name}/%{rock_version}/* \ | ||||
| %{buildroot}%{lua_noarchdir}/luarocks/rocks-%{lua_version}/%{mod_name}/%{rock_version} | ||||
|  | ||||
| %files | ||||
| %license COPYING | ||||
| %doc docs/* | ||||
| %{lua_noarchdir} | ||||
|  | ||||
| %changelog | ||||
							
								
								
									
										3
									
								
								vstruct-2.1.1+git2.tar.xz
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								vstruct-2.1.1+git2.tar.xz
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,3 @@ | ||||
| version https://git-lfs.github.com/spec/v1 | ||||
| oid sha256:c08828e6faf16b75a41227890e818a153f51ca6bcf343ef6b2a6acac2492eb79 | ||||
| size 35216 | ||||
		Reference in New Issue
	
	Block a user