forked from joidegn/leo-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
leo-cli.spec
41 lines (33 loc) · 1.07 KB
/
leo-cli.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
%define name leo-cli
%define version 0.4.0
%define unmangled_version 0.4.0
%define release 2
Summary: leo.org command line tool
Name: %{name}
Version: %{version}
Release: %{release}
Source0: https://pypi.python.org/packages/source/l/leo-cli/%{name}-%{unmangled_version}.tar.gz
License: MIT
Group: Applications/Text
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
Prefix: %{_prefix}
BuildArch: noarch
Vendor: Johannes Degn <[email protected]>
Url: https://github.com/JoiDegn/leo-cli
BuildRequires: python3
%description
leo-cli is a command line tool which can be used to translate words or phrases
from several languages to german. It uses the open dictionary dict.leo.org. I
wrote this because visiting their website, choosing the language, typing the
word and clicking the submit button required several too many steps. I am a lazy
person.
%prep
%setup -n %{name}-%{unmangled_version}
%build
python3 setup.py build
%install
python3 setup.py install -O1 --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES
%clean
rm -rf $RPM_BUILD_ROOT
%files -f INSTALLED_FILES
%defattr(-,root,root)