This repository has been archived by the owner on Jun 21, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfujian.spec
64 lines (41 loc) · 1.67 KB
/
fujian.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
%global _basename fujian
Name: python2-%{_basename}
Version: 1.1.1
Release: 1
Summary: An HTTP server that executes Python code.
Group: Applications/Multimedia
License: AGPLv3+
URL: https://goldman.ncodamusic.org/diffusion/FJ/
Source0: %{_basename}-%{version}.tar.gz
BuildArch: noarch
BuildRequires: python2-devel
BuildRequires: python2-pytest
BuildRequires: python2-tornado
Requires: python2-tornado
%description
It's simple: Fujian accepts Python code in the request body of a PUT request, executes the code,
then returns the result.
The server is named after Fujian (福建) Province of the Peopl's Republic of China. The intention is
to use it with our "lychee" software ("litchi" package on PyPI). Lychees are a fruit that grow in
southern China. Fujian is a province in southern China. If you're importing lychee (and we do indeed
want to ``import lychee``) they're probably coming from southern China.
Do note that this application opens the door to a wide range of security issues that we don't plan
to address. Fujian is intended for use on ``localhost`` only. Opening it up to the public Internet
is a tremendously bad idea!
Fujian already supports Python 3, and we will add support for PyPy3 when the time comes.
%prep
%autosetup -n %{_basename}-%{version}
%build
%py2_build
%check
PYTHONPATH=%{buildroot}%{python2_sitelib} py.test
%install
%py2_install
%files
%license LICENSE
%doc README.rst
%{python2_sitelib}/%{_basename}/
%{python2_sitelib}/Fujian-%{version}-py2.7.egg-info/
%changelog
* Sun Jan 29 2017 Christopher Antila <christopher.antila@ncodamusic.org> - 1.1.1-1
- Initial packaging.