File: python-ihm.spec

package info (click to toggle)
python-ihm 2.7-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,368 kB
  • sloc: python: 30,422; ansic: 5,990; sh: 24; makefile: 20
file content (133 lines) | stat: -rw-r--r-- 3,545 bytes parent folder | download
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
Name:          python3-ihm
License:       MIT
Group:         Applications/Engineering
Version:       2.7
Release:       1%{?dist}
Summary:       Package for handling IHM mmCIF and BinaryCIF files
Packager:      Ben Webb <ben@salilab.org>
URL:           https://pypi.python.org/pypi/ihm
Source:        ihm-%{version}.tar.gz
Patch0:        ihm-force-c-ext.patch
BuildRequires: python3-devel, python3-setuptools, gcc
%if 0%{?rhel} != 7
BuildRequires: python3-msgpack
Requires: python3-msgpack
%else
BuildRequires: sed
%endif
%if 0%{?fedora} >= 42
BuildRequires: python3-pytest
%endif

%description
This is a Python package to assist in handling mmCIF and BinaryCIF files
compliant with the integrative/hybrid modeling (IHM) extension. It works
with Python 3.6 or later.

%prep
%setup -n ihm-%{version}
%patch -P 0 -p1
%if 0%{?rhel} == 7
sed -i -e "s/install_requires=\['msgpack'\]/#/" setup.py
%endif

%build
%{__python3} setup.py install --root=${RPM_BUILD_ROOT} --record=INSTALLED_FILES

%check
%if 0%{?fedora} >= 42
%pytest ihm/test.py
%else
%{__python3} setup.py test
%endif

%files -f INSTALLED_FILES
%defattr(-,root,root)

%changelog
* Mon Jul 07 2025 Ben Webb <ben@salilab.org>   2.7-1
- Update to latest upstream.

* Mon Jun 09 2025 Ben Webb <ben@salilab.org>   2.6-1
- Update to latest upstream.

* Fri Apr 25 2025 Ben Webb <ben@salilab.org>   2.5-1
- Update to latest upstream.

* Tue Mar 25 2025 Ben Webb <ben@salilab.org>   2.4-1
- Update to latest upstream.

* Thu Mar 13 2025 Ben Webb <ben@salilab.org>   2.3-1
- Update to latest upstream.

* Thu Feb 13 2025 Ben Webb <ben@salilab.org>   2.2-1
- Update to latest upstream.

* Wed Feb 12 2025 Ben Webb <ben@salilab.org>   2.1-1
- Update to latest upstream.

* Tue Feb 11 2025 Ben Webb <ben@salilab.org>   2.0-1
- Update to latest upstream.

* Tue Nov 26 2024 Ben Webb <ben@salilab.org>   1.8-1
- Update to latest upstream.

* Tue Oct 22 2024 Ben Webb <ben@salilab.org>   1.7-1
- Update to latest upstream.

* Fri Sep 27 2024 Ben Webb <ben@salilab.org>   1.6-1
- Update to latest upstream.

* Fri Sep 06 2024 Ben Webb <ben@salilab.org>   1.5-1
- Update to latest upstream.

* Fri Aug 30 2024 Ben Webb <ben@salilab.org>   1.4-1
- Update to latest upstream.

* Tue Jul 16 2024 Ben Webb <ben@salilab.org>   1.3-1
- Update to latest upstream.

* Wed Jun 12 2024 Ben Webb <ben@salilab.org>   1.2-1
- Update to latest upstream.

* Thu May 09 2024 Ben Webb <ben@salilab.org>   1.1-1
- Update to latest upstream.

* Tue Feb 13 2024 Ben Webb <ben@salilab.org>   1.0-1
- Update to latest upstream.

* Fri Dec 08 2023 Ben Webb <ben@salilab.org>   0.43-1
- Update to latest upstream.

* Thu Nov 30 2023 Ben Webb <ben@salilab.org>   0.42-1
- Update to latest upstream.

* Mon Oct 02 2023 Ben Webb <ben@salilab.org>   0.41-1
- Update to latest upstream.

* Mon Sep 25 2023 Ben Webb <ben@salilab.org>   0.40-1
- Update to latest upstream.

* Fri Aug 04 2023 Ben Webb <ben@salilab.org>   0.39-1
- Update to latest upstream.

* Mon Jul 31 2023 Ben Webb <ben@salilab.org>   0.38-1
- Update to latest upstream.

* Thu Apr 14 2022 Ben Webb <ben@salilab.org>   0.31-1
- Update to latest upstream.

* Mon Mar 21 2022 Ben Webb <ben@salilab.org>   0.28-1
- Update to latest upstream.

* Thu Jan 27 2022 Ben Webb <ben@salilab.org>   0.27-1
- Update to latest upstream.

* Tue Jan 25 2022 Ben Webb <ben@salilab.org>   0.26-1
- Update to latest upstream.

* Fri Dec 03 2021 Ben Webb <ben@salilab.org>   0.25-1
- Update to latest upstream.

* Fri Jul 09 2021 Ben Webb <ben@salilab.org>   0.20-1
- Initial package.