-
Notifications
You must be signed in to change notification settings - Fork 3
/
fros.spec
87 lines (69 loc) · 2.75 KB
/
fros.spec
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
77
78
79
80
81
82
83
84
85
86
87
Name: fros
Version: 1.1
Release: 1%{?dist}
Summary: Universal screencasting frontend with pluggable support for various backends
%global commit 4f17dbbfe18081125b3f8099607899eaab87c2ec
%global shortcommit %(c=%{commit}; echo ${c:0:7})
Group: Applications/System
License: GPLv2+
URL: https://github.com/mozeq/fros
# this url is wrong, because github doesn't offer a space for downloadable archives :(
Source: https://github.com/mozeq/fros/archive/%{commit}/%{name}-%{version}-%{shortcommit}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
%if 0%{?suse_version}
BuildRequires: python-devel
%else
BuildRequires: python3-devel
%endif
BuildRequires: python3-setuptools
%description
Universal screencasting frontend with pluggable support for various backends.
The goal is to provide an unified access to as many screencasting backends as
possible while still keeping the same user interface so the user experience
while across various desktops and screencasting programs is seamless.
%package recordmydesktop
Summary: fros plugin for screencasting using recordmydesktop as a backend
Group: Applications/System
Requires: %{name} = %{version}-%{release}
%description recordmydesktop
fros plugin for screencasting using recordmydesktop as a backend
%package gnome
Summary: fros plugin for screencasting using Gnome3 integrated screencaster
Group: Applications/System
Requires: %{name} = %{version}-%{release}
%description gnome
fros plugin for screencasting using Gnome3 integrated screencaster
%prep
%setup -qn %{name}-%{commit}
%build
CFLAGS="$RPM_OPT_FLAGS" %{__python3} setup.py build
%install
%{__python3} setup.py install --skip-build --root $RPM_BUILD_ROOT
%check
%{__python3} setup.py test
%files
%doc README COPYING
%dir %{python3_sitelib}/pyfros
%{python3_sitelib}/pyfros/*.py*
%dir %{python3_sitelib}/pyfros/__pycache__
%{python3_sitelib}/pyfros/__pycache__/*.cpython-%{python3_version_nodots}.py*
%dir %{python3_sitelib}/pyfros/plugins
%{python3_sitelib}/pyfros/plugins/__init__.*
%{python3_sitelib}/pyfros/plugins/const.*
%dir %{python3_sitelib}/pyfros/plugins/__pycache__
%{python3_sitelib}/pyfros/plugins/__pycache__/*.cpython-%{python3_version_nodots}.py*
# fros-1.0-py2.7.egg-info
%dir %{python3_sitelib}/%{name}-%{version}-py%{python3_version}.egg-info
%{python3_sitelib}/%{name}-%{version}-py%{python3_version}.egg-info/*
%{_bindir}/fros
%{_mandir}/man1/%{name}.1*
%files recordmydesktop
%{python3_sitelib}/pyfros/plugins/*recordmydesktop.*
%files gnome
%{python3_sitelib}/pyfros/plugins/*gnome.*
%changelog
* Tue Jan 27 2015 Jakub Filak <[email protected]> 1.1-1
- switch to Python3
* Fri May 31 2013 Jiri Moskovcak <[email protected]> 1.0-1
- initial rpm