-
Notifications
You must be signed in to change notification settings - Fork 5
/
python-ihashmap.spec
41 lines (32 loc) · 1.18 KB
/
python-ihashmap.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
%define package_version 1.0.10
%global dist_raw %(%{__grep} -oP "release \\K[0-9]+\\.[0-9]+" /etc/system-release | tr -d ".")
%define pkgname ihashmap
%define buildid @BUILDID@
Name: python-%{pkgname}
Version: %package_version
Release: 1.ROCKIT3%{dist}
Summary: Indexed hashmap wrapper in Python
Group: Libraries
License: MIT
Source: %{name}-%{version}.tar.gz
BuildArch: noarch
%description
Automaticly indexed hashmap for quick search and wrapper for things that don't expose .keys method
%package -n python%{python3_pkgversion}-%{pkgname}
Summary: Indexed hashmap wrapper in Python
BuildRequires: python%{python3_pkgversion}-devel python%{python3_pkgversion}-setuptools
Provides: python-%{pkgname}
Obsoletes: python-ihashmap
%description -n python%{python3_pkgversion}-%{pkgname}
Automaticly indexed hashmap for quick search and wrapper for things that don't expose .keys method
%prep
%setup -q
%build
%{py3_build}
%install
%{py3_install}
%clean
rm -rf %buildroot
%files -n python%{python3_pkgversion}-%{pkgname}
%{python3_sitelib}/%{pkgname}/
%{python3_sitelib}/%{pkgname}-%{version}-py%{python3_version}.egg-info/