forked from pool/python-nh3
		
	Accepting request 1099240 from home:mcalabkova:branches:devel:languages:python
needed by Weblate OBS-URL: https://build.opensuse.org/request/show/1099240 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-nh3?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
 | 
				
			||||||
							
								
								
									
										9
									
								
								_service
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								_service
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,9 @@
 | 
				
			|||||||
 | 
					<services>
 | 
				
			||||||
 | 
					  <service name="download_files" mode="disabled"/>
 | 
				
			||||||
 | 
					  <service name="cargo_vendor" mode="disabled">
 | 
				
			||||||
 | 
					    <param name="srcdir">nh3-0.2.13</param>
 | 
				
			||||||
 | 
					    <param name="compression">zst</param>
 | 
				
			||||||
 | 
					  </service>
 | 
				
			||||||
 | 
					  <service name="cargo_audit" mode="disabled">
 | 
				
			||||||
 | 
					  </service>
 | 
				
			||||||
 | 
					</services>
 | 
				
			||||||
							
								
								
									
										5
									
								
								cargo_config
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								cargo_config
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,5 @@
 | 
				
			|||||||
 | 
					[source.crates-io]
 | 
				
			||||||
 | 
					replace-with = "vendored-sources"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[source.vendored-sources]
 | 
				
			||||||
 | 
					directory = "vendor"
 | 
				
			||||||
							
								
								
									
										3
									
								
								nh3-0.2.13.tar.gz
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								nh3-0.2.13.tar.gz
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,3 @@
 | 
				
			|||||||
 | 
					version https://git-lfs.github.com/spec/v1
 | 
				
			||||||
 | 
					oid sha256:ec6a841795b129bcee1eda73feeb8e7f5f83a354979d3719fb77f3da60f6fa96
 | 
				
			||||||
 | 
					size 14489
 | 
				
			||||||
							
								
								
									
										4
									
								
								python-nh3.changes
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								python-nh3.changes
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,4 @@
 | 
				
			|||||||
 | 
					-------------------------------------------------------------------
 | 
				
			||||||
 | 
					Mon Jun 12 09:52:49 UTC 2023 - Markéta Machová <mmachova@suse.com>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					- Initial packaging of v0.2.13, needed by Weblate
 | 
				
			||||||
							
								
								
									
										63
									
								
								python-nh3.spec
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										63
									
								
								python-nh3.spec
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,63 @@
 | 
				
			|||||||
 | 
					#
 | 
				
			||||||
 | 
					# spec file for package python-nh3
 | 
				
			||||||
 | 
					#
 | 
				
			||||||
 | 
					# Copyright (c) 2023 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/
 | 
				
			||||||
 | 
					#
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					Name:           python-nh3
 | 
				
			||||||
 | 
					Version:        0.2.13
 | 
				
			||||||
 | 
					Release:        0
 | 
				
			||||||
 | 
					Summary:        Ammonia HTML sanitizer Python binding
 | 
				
			||||||
 | 
					License:        MIT
 | 
				
			||||||
 | 
					URL:            https://github.com/messense/nh3
 | 
				
			||||||
 | 
					Source:         https://files.pythonhosted.org/packages/source/n/nh3/nh3-%{version}.tar.gz
 | 
				
			||||||
 | 
					Source1:        vendor.tar.zst
 | 
				
			||||||
 | 
					Source2:        cargo_config
 | 
				
			||||||
 | 
					BuildRequires:  python-rpm-macros
 | 
				
			||||||
 | 
					BuildRequires:  %{python_module maturin >= 1.0}
 | 
				
			||||||
 | 
					BuildRequires:  %{python_module pip}
 | 
				
			||||||
 | 
					BuildRequires:  %{python_module pytest}
 | 
				
			||||||
 | 
					BuildRequires:  cargo
 | 
				
			||||||
 | 
					BuildRequires:  fdupes
 | 
				
			||||||
 | 
					BuildRequires:  zstd
 | 
				
			||||||
 | 
					%python_subpackages
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					%description
 | 
				
			||||||
 | 
					Ammonia HTML sanitizer Python binding
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					%prep
 | 
				
			||||||
 | 
					%autosetup -a1 -p1 -n nh3-%{version}
 | 
				
			||||||
 | 
					mkdir .cargo
 | 
				
			||||||
 | 
					cp %{SOURCE2} .cargo/config
 | 
				
			||||||
 | 
					rm -v Cargo.lock
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					%build
 | 
				
			||||||
 | 
					export CFLAGS="%{optflags} -fno-strict-aliasing"
 | 
				
			||||||
 | 
					%pyproject_wheel
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					%install
 | 
				
			||||||
 | 
					%pyproject_install
 | 
				
			||||||
 | 
					%python_expand %fdupes %{buildroot}%{$python_sitearch}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					%check
 | 
				
			||||||
 | 
					%pytest_arch
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					%files %{python_files}
 | 
				
			||||||
 | 
					%doc README.md
 | 
				
			||||||
 | 
					%license LICENSE
 | 
				
			||||||
 | 
					%{python_sitearch}/nh3
 | 
				
			||||||
 | 
					%{python_sitearch}/nh3-%{version}.dist-info
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					%changelog
 | 
				
			||||||
							
								
								
									
										3
									
								
								vendor.tar.zst
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								vendor.tar.zst
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,3 @@
 | 
				
			|||||||
 | 
					version https://git-lfs.github.com/spec/v1
 | 
				
			||||||
 | 
					oid sha256:4340947e4a4249012fef4e926ea2081e54059ac7df1853531e07ec325202d017
 | 
				
			||||||
 | 
					size 6228668
 | 
				
			||||||
		Reference in New Issue
	
	Block a user