-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpython-caffi.spec
More file actions
49 lines (38 loc) · 1.37 KB
/
python-caffi.spec
File metadata and controls
49 lines (38 loc) · 1.37 KB
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
Name: python-caffi
Summary: Channel Access Foreign Function Interface
Version: 1.0.4
Release: 1%{?dist}
Source0: https://pypi.io/packages/source/c/caffi/caffi-%{version}.tar.gz
License: BSD
Group: Development/Libraries
Vendor: Xiaoqiang Wang <xiaoqiang.wang AT psi DOT ch>
Url: https://github.com/CaChannel/caffi
BuildRequires: python-setuptools
Requires: python-cffi python-enum34
# Do not check .so files in the python_sitelib directory
# or any files in the application's directory for provides
%global __provides_exclude_from ^%{python_sitelib}/.*\\.so$
%global __requires_exclude_from ^%{python_sitelib}/.*\\.so$
%global _unpackaged_files_terminate_build 0
%global _binaries_in_noarch_packages_terminate_build 0
%description
caffi
=====
caffi is the Channel Access Foreign Function Interface.
It uses `CFFI <https://pypi.python.org/pypi/cffi>`_ to call EPICS channel access library.
This package provides direct low level interface to channel access, alike the C API.
%prep
%setup -n caffi-%{version}
%build
# remove libraries for other platform
rm -fr caffi/lib/darwin-x86
rm -fr caffi/lib/win32-x86
rm -fr caffi/lib/windows-x64
rm -fr caffi/lib/linux-x86
python setup.py build
%install
python setup.py install --single-version-externally-managed -O1 --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES
%clean
rm -rf $RPM_BUILD_ROOT
%files -f INSTALLED_FILES
%defattr(-,root,root)