-
Notifications
You must be signed in to change notification settings - Fork 12
/
python-r305.spec
62 lines (43 loc) · 1.68 KB
/
python-r305.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# Created by pyp2rpm-3.1.3
%global pypi_name R305
Name: python-%{pypi_name}
Version: 1.0.0
Release: 1%{?dist}
Summary: python API for R305 finger print module
License: GPLv3+
URL: https://github.com/girish946/pthon-R305
Source0: https://files.pythonhosted.org/packages/source/R/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildArch: noarch
%description
python API for R305 finger print module over UART. Each module contains getHeader() and parse() methods. getHeader() generates the frame for the command for the specific instruction. The parse() for theat module parses the response of the command and shows the result.
%package -n python-%{pypi_name}
Summary: python API for R305 finger print module.
%{?python_provide:%python_provide python3-%{pypi_name}}
BuildRequires: python3-setuptools
BuildRequires: python3-devel
Requires: pyserial
%description -n python-%{pypi_name}
python API for R305 finger print module over UART.
%prep
%autosetup -n %{pypi_name}-%{version}
# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info
sed -i -e '/^#!\//, 1d' r305/*.py
%build
%py_build
%install
# Must do the subpackages' install first because the scripts in /usr/bin are
# overwritten with every setup.py install.
%py_install
%files -n python-%{pypi_name}
%license LICENSE
%doc
%{_bindir}/Verify.py
%{python2_sitelib}/r305/
%{python2_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info/
%changelog
* Fri Nov 20 2020 girish joshi <[email protected]> - 1.0.0
- Specfile corrected for building on fedora 33
* Sat Nov 5 2016 girish joshi <[email protected]> - 1.0.0
- initial package is created.
- basic functionality of r305 added.