Skip to content

Commit

Permalink
Merge pull request #5 from neingeist/add-rpm-spec
Browse files Browse the repository at this point in the history
Add RPM spec file
  • Loading branch information
joidegn committed Nov 9, 2015
2 parents 52b887c + 4cbc8d2 commit 0f465f9
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions leo-cli.spec
@@ -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)

0 comments on commit 0f465f9

Please sign in to comment.