Skip to content

Commit

Permalink
spec file for RPM
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoqiangwang committed Mar 31, 2017
1 parent a098afb commit d493df1
Show file tree
Hide file tree
Showing 2 changed files with 69 additions and 0 deletions.
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ include README.rst
include setup.py
include epicsQt/*.py
include epicsQt/plugin/*.py
include python-epicsQt.spec
68 changes: 68 additions & 0 deletions python-epicsQt.spec
Original file line number Diff line number Diff line change
@@ -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 <xiaoqiangwang@gmail.com>
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=<epicsQt>/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)

0 comments on commit d493df1

Please sign in to comment.