-
Notifications
You must be signed in to change notification settings - Fork 29
/
lexonomy.spec
64 lines (50 loc) · 1.83 KB
/
lexonomy.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 debug_package %{nil}
%global __python %{__python3}
%define __requires_exclude coffee
%define _build_id_links none
Name: lexonomy
Version: 0
Release: 1%{?dist}
Summary: Lexonomy, a cloud-based, open-source platform for writing and publishing dictionaries.
Group: Applications/Text
License: Copyright (c) 2017-2022 Michal Boleslav Měchura, Lexical Computing CZ s.r.o.
URL: https://www.lexonomy.eu/
Source0: lexonomy-%{version}.tar.gz
BuildRequires: make
BuildRequires: python3 >= 3.5
BuildRequires: git
BuildRequires: nodejs
BuildRequires: npm
BuildRequires: sqlite-devel
BuildRequires: libicu-devel
BuildRequires: wget
BuildRequires: gcc
Requires: python3 >= 3.5
Requires: python3-jwt
Requires: python3-markdown
Requires: python3-paste
Requires: python3-pyicu
Requires: python3-requests
%description
Lexonomy is a free tool for writing and publishing dictionaries and other dictionary-like things. Lexonomy runs in your web browser and all data is stored on the server, so you don't have to install anything on your computer. This page will give you a brief introduction to Lexonomy, showing you how to create a simple dictionary and how to publish it on the web.
%prep
%setup -n lexonomy-%{version}
%build
make
make libSqliteIcu.so
%install
make DESTDIR=$RPM_BUILD_ROOT INSTALLDIR=/opt/lexonomy/ install
echo %{version} > $RPM_BUILD_ROOT/opt/lexonomy/website/version.txt
sed -i -e 's/@VERSION@/%{version}/g' $RPM_BUILD_ROOT/opt/lexonomy/website/index*html
mkdir -p $RPM_BUILD_ROOT/opt/lexonomy/data
cp -p libSqliteIcu.so $RPM_BUILD_ROOT/opt/lexonomy/
%post
chown -R apache: /opt/lexonomy/data
chmod -R g+rwX /opt/lexonomy/data
/opt/lexonomy/website/adminscripts/updates.py
%files
/opt/lexonomy/
%config(noreplace) /opt/lexonomy/data
%config(noreplace) /opt/lexonomy/website/siteconfig.json
%config(noreplace) /opt/lexonomy/website/config.js
%changelog