-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from neingeist/add-rpm-spec
Add RPM spec file
- Loading branch information
Showing
1 changed file
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
%define name leo-cli | ||
%define version 0.3.4 | ||
%define unmangled_version 0.3.4 | ||
%define release 1 | ||
|
||
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 <j@degn.de> | ||
Url: https://github.com/JoiDegn/leo-cli | ||
|
||
%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 | ||
python setup.py build | ||
|
||
%install | ||
python setup.py install -O1 --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES | ||
|
||
%clean | ||
rm -rf $RPM_BUILD_ROOT | ||
|
||
%files -f INSTALLED_FILES | ||
%defattr(-,root,root) |