forked from ilius/pyglossary
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyglossary.spec
42 lines (33 loc) · 1.36 KB
/
pyglossary.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
%global __python /usr/bin/python3
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "import sys; from distutils.sysconfig import get_python_lib; sys.stdout.write(get_python_lib())")}
Name: pyglossary
Version: master
Release: 1%{?dist}
Summary: Working on glossaries (dictionary databases)
Group: Applications/Productivity
License: GPLv3
URL: https://github.com/ilius/pyglossary
Source0: pyglossary-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
%description
Working on glossaries (dictionary databases) using python. Including editing
glossaries and converting theme between many formats such as: Tabfile StarDict
format xFarDic format "Babylon Builder" source format Omnidic format and etc.
%prep
%setup -q
%install
python3 setup.py install --root=%{buildroot} --prefix=%{_prefix}
desktop-file-install --vendor fedora \
--dir %{buildroot}%{_datadir}/applications \
--delete-original \
%{buildroot}%{_datadir}/applications/pyglossary.desktop
%clean
rm -rf %{buildroot}
%files
%{_bindir}/pyglossary
%{_datadir}/applications/fedora-pyglossary.desktop
%{_datadir}/pixmaps/pyglossary.png
%{_datadir}/pyglossary/
%{_datadir}/doc/pyglossary/
%{python_sitelib}/pyglossary/*