File: python-rtslib.spec.tmpl

package info (click to toggle)
python-rtslib-fb 2.1.57%2Bdebian-4
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 376 kB
  • ctags: 521
  • sloc: python: 3,307; makefile: 172; sh: 132
file content (43 lines) | stat: -rw-r--r-- 1,132 bytes parent folder | download | duplicates (3)
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
%define oname rtslib

Name:           python-rtslib
License:        Apache License 2.0
Group:          System Environment/Libraries
Summary:        A framework to implement simple but nice CLIs.
Version:        VERSION
Release:        1%{?dist}
URL:            http://www.risingtidesystems.com/git/
Source:         %{oname}-%{version}.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-rpmroot
BuildArch:      noarch
BuildRequires:  python-devel, epydoc
Vendor:         Datera, Inc.

%description
API for RisingTide Systems generic SCSI target.

%prep
%setup -q -n %{oname}-%{version}

%build
%{__python} setup.py build
mkdir -p doc
epydoc --no-sourcecode --html -n %{oname} --exclude configobj %{oname}/*.py
mv html doc/

%install
rm -rf %{buildroot}
%{__python} setup.py install --skip-build --root %{buildroot} --prefix usr
mkdir -p %{buildroot}/usr/share/doc/python-rtslib-doc-%{version}
cp -r doc/* %{buildroot}/usr/share/doc/python-rtslib-doc-%{version}/

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root,-)
%{python_sitelib}
/usr/share/doc/python-rtslib-doc-%{version}
%doc COPYING README.md

%changelog