forked from pool/python-libusbsio
		
	Accepting request 1098309 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1098309 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-libusbsio?expand=0&rev=2
This commit is contained in:
		
							
								
								
									
										3
									
								
								libusbsio-2.1.11-src.zip
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								libusbsio-2.1.11-src.zip
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,3 @@
 | 
				
			|||||||
 | 
					version https://git-lfs.github.com/spec/v1
 | 
				
			||||||
 | 
					oid sha256:b854d4ecbaab19c33cb1e77f59eec2442f67acc8911705ccaf838f7547449dae
 | 
				
			||||||
 | 
					size 2534221
 | 
				
			||||||
@@ -1,3 +1,14 @@
 | 
				
			|||||||
 | 
					-------------------------------------------------------------------
 | 
				
			||||||
 | 
					Tue Jul 11 14:44:29 UTC 2023 - Johannes Kastl <kastl@b1-systems.de>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					- fix wrong URL for src.zip file that contains the sources for the
 | 
				
			||||||
 | 
					  bin files, that are being compiled during package build
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					-------------------------------------------------------------------
 | 
				
			||||||
 | 
					Thu Jun 29 08:45:33 UTC 2023 - Andreas Schwab <schwab@suse.de>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					- Build from source
 | 
				
			||||||
 | 
					
 | 
				
			||||||
-------------------------------------------------------------------
 | 
					-------------------------------------------------------------------
 | 
				
			||||||
Fri May 12 12:56:09 UTC 2023 - Johannes Kastl <kastl@b1-systems.de>
 | 
					Fri May 12 12:56:09 UTC 2023 - Johannes Kastl <kastl@b1-systems.de>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -24,28 +24,37 @@ Summary:        Python wrapper around NXP LIBUSBSIO library
 | 
				
			|||||||
License:        BSD-3-Clause
 | 
					License:        BSD-3-Clause
 | 
				
			||||||
URL:            https://www.nxp.com/design/software/development-software/library-for-windows-macos-and-ubuntu-linux:LIBUSBSIO
 | 
					URL:            https://www.nxp.com/design/software/development-software/library-for-windows-macos-and-ubuntu-linux:LIBUSBSIO
 | 
				
			||||||
Source:         https://files.pythonhosted.org/packages/source/l/libusbsio/libusbsio-%{version}.tar.gz
 | 
					Source:         https://files.pythonhosted.org/packages/source/l/libusbsio/libusbsio-%{version}.tar.gz
 | 
				
			||||||
BuildRequires:  python-rpm-macros
 | 
					Source2:        https://www.nxp.com/downloads/en/libraries/libusbsio-%{version}-src.zip
 | 
				
			||||||
BuildRequires:  %{python_module pip}
 | 
					BuildRequires:  %{python_module pip}
 | 
				
			||||||
BuildRequires:  %{python_module setuptools}
 | 
					BuildRequires:  %{python_module setuptools}
 | 
				
			||||||
BuildRequires:  %{python_module wheel}
 | 
					BuildRequires:  %{python_module wheel}
 | 
				
			||||||
 | 
					BuildRequires:  python-rpm-macros
 | 
				
			||||||
# SECTION test requirements
 | 
					# SECTION test requirements
 | 
				
			||||||
BuildRequires:  %{python_module pytest}
 | 
					BuildRequires:  %{python_module pytest}
 | 
				
			||||||
BuildRequires:  libudev1
 | 
					 | 
				
			||||||
BuildRequires:  libusb
 | 
					 | 
				
			||||||
# /SECTION
 | 
					# /SECTION
 | 
				
			||||||
BuildRequires:  %{python_module setuptools >= 42.0}
 | 
					BuildRequires:  %{python_module setuptools >= 42.0}
 | 
				
			||||||
BuildRequires:  %{python_module wheel >= 0.36.2}
 | 
					BuildRequires:  %{python_module wheel >= 0.36.2}
 | 
				
			||||||
BuildRequires:  fdupes
 | 
					 | 
				
			||||||
BuildRequires:  dos2unix
 | 
					BuildRequires:  dos2unix
 | 
				
			||||||
 | 
					BuildRequires:  fdupes
 | 
				
			||||||
 | 
					BuildRequires:  unzip
 | 
				
			||||||
 | 
					BuildRequires:  pkgconfig(libudev)
 | 
				
			||||||
 | 
					BuildRequires:  pkgconfig(libusb-1.0)
 | 
				
			||||||
%python_subpackages
 | 
					%python_subpackages
 | 
				
			||||||
 | 
					
 | 
				
			||||||
%description
 | 
					%description
 | 
				
			||||||
Python wrapper around NXP LIBUSBSIO library
 | 
					Python wrapper around NXP LIBUSBSIO library
 | 
				
			||||||
 | 
					
 | 
				
			||||||
%prep
 | 
					%prep
 | 
				
			||||||
%setup -q -n libusbsio-%{version}
 | 
					%setup -q -n libusbsio-%{version} -b 2
 | 
				
			||||||
 | 
					rm -f libusbsio/bin/*/libusbsio*
 | 
				
			||||||
 | 
					
 | 
				
			||||||
%build
 | 
					%build
 | 
				
			||||||
 | 
					pushd ../libusbsio-%{version}-src
 | 
				
			||||||
 | 
					export CFLAGS="%{optflags}"
 | 
				
			||||||
 | 
					%make_build
 | 
				
			||||||
 | 
					popd
 | 
				
			||||||
 | 
					mkdir -p libusbsio/bin/linux_$(uname -m)
 | 
				
			||||||
 | 
					cp ../libusbsio-%{version}-src/bin/linux_$(uname -m)/libusbsio*.so libusbsio/bin/linux_$(uname -m)
 | 
				
			||||||
%pyproject_wheel
 | 
					%pyproject_wheel
 | 
				
			||||||
dos2unix README.md
 | 
					dos2unix README.md
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user