aboutsummaryrefslogtreecommitdiffstats
path: root/mageiasync.spec
blob: 4c1fe8073539dffab55fcbbc4259ff7516e3f2a2 (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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
%define module	mageiasync
%define gitname	mageiaSync

Name:		python-%{module}
Version:	0.1.1
Release:	%mkrel 1
Summary:	A frontend to rsync for Mageia usage
License:	GPLv3
Group:		Development/Python
URL:		https://github.com/papoteur-mga/mageiaSync
Source0:	https://github.com/papoteur-mga/mageiaSync/archive/%{gitname}-%{version}.tar.gz
BuildArch:	noarch
BuildRequires:	python-setuptools

Requires:	python-qt5-core
Requires:	python-qt5-gui
Requires:	python-qt5-widgets
Requires:	rsync

%description
A frontend to rsync for Mageia usage.

#---------------------------------------------------------------------------

#%package -n	python3-%{module}
#Summary:	A frontend to rsync for Mageia usage
#Group:		Development/Python
#BuildArch:	noarch
#BuildRequires:	python3-setuptools

#Requires:	python3-qt5-core
#Requires:	python3-qt5-gui
#Requires:	python3-qt5-widgets
#Requires:	rsync

#%description -n python3-%{module}
#A frontend to rsync for Mageia usage.
#This is the Python 3 build of %{module}.

#---------------------------------------------------------------------------

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

#cp -a . %{py3dir}

%build
#pushd %{py3dir}
#%{__python3} setup.py build
#popd

%{__python} setup.py build

%install
#pushd %{py3dir}
#%{__python3} setup.py install --root=%{buildroot} --skip-build
#mv %{buildroot}%{_bindir}/%{module} %{buildroot}%{_bindir}/python3-%{module}
#popd

%{__python} setup.py install --root=%{buildroot} --skip-build

%files
%doc CHANGELOG LICENSE README.md
%{_bindir}/%{module}
%{_datadir}/applications/%{module}.desktop
%{_iconsdir}/hicolor/scalable/apps/%{module}.svg
%{python_sitelib}/%{gitname}
%{python_sitelib}/%{module}-%{version}-py%{pyver}.egg-info

#%files -n python3-%{module}
#%doc CHANGELOG LICENSE README.md
#%{_bindir}/python3-%{module}
#%{_datadir}/applications/%{module}.desktop
#%{_iconsdir}/hicolor/scalable/apps/%{module}.svg
#%{python3_sitelib}/%{gitname}
#%{python3_sitelib}/%{module}-%{version}-py%{py3ver}.egg-info