From d493df113c4e54202838533412b205b3953c68ca Mon Sep 17 00:00:00 2001 From: Xiaoqiang Wang Date: Fri, 31 Mar 2017 04:47:43 +0000 Subject: [PATCH] spec file for RPM --- MANIFEST.in | 1 + python-epicsQt.spec | 68 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 69 insertions(+) create mode 100644 python-epicsQt.spec diff --git a/MANIFEST.in b/MANIFEST.in index bf66537..15e7dfa 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -3,3 +3,4 @@ include README.rst include setup.py include epicsQt/*.py include epicsQt/plugin/*.py +include python-epicsQt.spec diff --git a/python-epicsQt.spec b/python-epicsQt.spec new file mode 100644 index 0000000..9c134f1 --- /dev/null +++ b/python-epicsQt.spec @@ -0,0 +1,68 @@ +%define name python-epicsQt +%define version 1.0.0 +%define release 1 + +Summary: Qt widgets with epics +Name: %{name} +Version: %{version} +Release: %{release} +Source0: epicsQt-%{version}.tar.gz +License: BSD +Group: Development/Libraries +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot +Prefix: %{_prefix} +BuildArch: noarch +Vendor: Xiaoqiang Wang +Requires: PyQt4 python-CaChannel +Url: http://github.com/CaChanel/epicsQt/ + +%description +epicsQt +======= + +`epicsQt` is a QObject representing an EPICS PV connection. + +Based on it there is a set of PyQt widgets which has epics awareness. +They are here to integrate epics into existing PyQt applications. + ++--------------+----------------+ +| Widget type | Description | ++==============+================+ +| eButton | Push button | ++--------------+----------------+ +| eButtonGroup | Choice button | ++--------------+----------------+ +| eCheckbox | Boolean button | ++--------------+----------------+ +| eCombo | Choice menu | ++--------------+----------------+ +| eDoubleSpin | Numeric input | ++--------------+----------------+ +| eIntSpin | Integer input | ++--------------+----------------+ +| eLCD | Integer dislay | ++--------------+----------------+ +| eLabel | Text display | ++--------------+----------------+ +| eTextEdit | Text input | ++--------------+----------------+ + +Their designer plugins can be used, if PyQt installed, + $ export PYQTDESIGNERPATH=/plugin/ + + + +%prep +%setup -n epicsQt-%{version} + +%build +python setup.py build + +%install +python setup.py install -O1 --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES + +%clean +rm -rf $RPM_BUILD_ROOT + +%files -f INSTALLED_FILES +%defattr(-,root,root)