Skip to content

Commit 42265cd

Browse files
committed
Packit configuration
1 parent b0419ab commit 42265cd

File tree

2 files changed

+75
-0
lines changed

2 files changed

+75
-0
lines changed

packit.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# https://packit.dev/docs/configuration/
2+
3+
specfile_path: python-colormath2.spec
4+
5+
notifications:
6+
pull_request:
7+
successful_build: true
8+
9+
jobs:
10+
- job: copr_build
11+
trigger: pull_request
12+
targets:
13+
- fedora-rawhide-aarch64
14+
- fedora-rawhide-i386
15+
- fedora-rawhide-ppc64le
16+
- fedora-rawhide-s390x
17+
- fedora-rawhide-x86_64

python-colormath2.spec

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
%global srcname python-colormath2
2+
%global shortname colormath2
3+
%global forgeurl https://github.com/bkmgit/python-colormath2
4+
Version: 3.0.3
5+
6+
Name: %{srcname}
7+
Release: %{autorelease}
8+
Summary: A python module that abstracts common color math operations
9+
10+
License: BSD-3-Clause
11+
URL: %forgeurl
12+
Source: %{forgeurl}/archive/%{version}/%{name}-%{version}.tar.gz
13+
Patch: cie2000-calculation.patch
14+
15+
BuildRequires: python3-devel
16+
BuildRequires: python3-nose2
17+
BuildRequires: python3-tox
18+
BuildRequires: python3-tox-current-env
19+
20+
BuildArch: noarch
21+
22+
%global _description %{expand:
23+
This module implements a large number of different color operations
24+
such as color space conversions, Delta E, and density to spectral.
25+
}
26+
27+
%description %_description
28+
29+
%package -n python3-%{shortname}
30+
Summary: %{summary}
31+
%{?python_provide:%python_provide python3-%{shortname}}
32+
33+
%description -n python3-%{shortname} %_description
34+
35+
36+
%prep
37+
%autosetup -n %{srcname}-%{version} -p 1
38+
39+
%generate_buildrequires
40+
%pyproject_buildrequires
41+
42+
43+
%build
44+
%pyproject_wheel
45+
46+
47+
%install
48+
%pyproject_install
49+
%pyproject_save_files %{shortname}
50+
51+
%check
52+
%pyproject_check_import
53+
%tox
54+
55+
%files -n python3-%{shortname} -f %{pyproject_files}
56+
57+
%changelog
58+
%autochangelog

0 commit comments

Comments
 (0)