2 %bcond_with tests # unit tests
5 %define egg_name smspdudecoder
6 %define pypi_name smspdudecoder
7 Summary: SMS-PDU Decoder
8 Name: python3-%{pypi_name}
12 Group: Libraries/Python
13 Source0: https://github.com/Qotto/smspdudecoder/archive/%{version}.tar.gz
14 # Source0-md5: d76e2a506ee62364399cc3e46de41aaf
15 URL: https://github.com/Qotto/smspdudecoder/
16 BuildRequires: python3-modules >= 1:3.6
17 BuildRequires: rpm-pythonprov
18 BuildRequires: rpmbuild(macros) >= 1.714
20 BuildRequires: python3-bitstring
22 BuildRequires: python3-setuptools
24 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 This library will help you to decode raw SMS data you can get from a
30 It has some encoding functionality as well.
32 It is recommended to read GSM 03.40 to facilitate understanding.
35 %setup -q -n %{pypi_name}-%{version}
38 %py3_build %{?with_tests:test}
41 rm -rf $RPM_BUILD_ROOT
46 rm -rf $RPM_BUILD_ROOT
49 %defattr(644,root,root,755)
51 %{py3_sitescriptdir}/%{module}
52 %{py3_sitescriptdir}/%{egg_name}-%{version}-py*.egg-info