summaryrefslogtreecommitdiff
path: root/python3-dip.spec
blob: edbb4a6103c4c09880259ff2c568fec3b6142c7f (plain)
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
Summary:	Application Framework for Python 3 and PyQt
Summary(pl.UTF-8):	Szkielet dla aplikacji opartych na Pythonie 3 i PyQt
Name:		python3-dip
Version:	0.4.3
Release:	1
License:	GPL v2 with exception or commercial
Group:		Development/Languages/Python
Source0:	http://www.riverbankcomputing.com/static/Downloads/dip/dip-gpl-%{version}.tar.gz
# Source0-md5:	3bfa5c4153e74c3da3d57784ad0a0803
URL:		http://www.riverbankcomputing.com/static/Docs/dip/
BuildRequires:	python3-devel >= 3.2
BuildRequires:	rpm-pythonprov
BuildRequires:	rpmbuild(macros) >= 1.219
Requires:	python-modules
Requires:	python3-PyQt4 >= 4.7.5
Requires:	QtGui >= 4.6
BuildArch:	noarch
BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)

%description
dip is an application framework for Python and PyQt.

This version supports Python 3.x.

%description -l pl.UTF-8
dip to szkielet dla aplikacji opartych na Pythonie i PyQt.

Ta wersja jest przeznaczona dla Pythona 3.x.

%prep
%setup -q -n dip-gpl-%{version}

%build
%{__python3} setup.py build

%install
rm -rf $RPM_BUILD_ROOT
%{__python3} setup.py install \
	--optimize=2 \
	--root=$RPM_BUILD_ROOT

# distinguish from python 2 version
mv $RPM_BUILD_ROOT%{_bindir}/dip-automate{,-3}
mv $RPM_BUILD_ROOT%{_bindir}/dip-builder{,-3}

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(644,root,root,755)
%doc ChangeLog GPL-Exception.txt LICENSE-Commercial.txt NEWS README doc/_build/html
%attr(755,root,root) %{_bindir}/dip-automate-3
%attr(755,root,root) %{_bindir}/dip-builder-3
%{py3_sitescriptdir}/dip
%{py3_sitescriptdir}/dip_gpl-%{version}-py*.egg-info