-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathkuttab.spec
56 lines (45 loc) · 1.34 KB
/
kuttab.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
Name: kuttab
Version: 1.0
Release: 1%{?dist}
Summary: Arabic Typing Trainer
Summary(ar): مدرب الطباعة العربية
License: WAQFv2
URL: https://ojuba.org
Source0: kuttab-%{version}.tar.xz
Requires: pywebkitgtk
BuildArch: noarch
%description
Arabic Typing Trainer
%description -l ar
مدرب الطباعة العربية
%prep
%setup -q -n %{name}
sed -i "s:/usr/share:%{_datadir}:g" kuttab
%install
mkdir -p %{buildroot}%{_datadir}/kuttab/local
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_datadir}/applications
mkdir -p %{buildroot}%{_datadir}/appdata
mkdir -p %{buildroot}%{_datadir}/pixmaps
pushd local
find -type f | while read link
do
install -Dp -m 0644 $link %{buildroot}%{_datadir}/kuttab/local/$link
done
popd
install -Dp -m 0644 index.html %{buildroot}%{_datadir}/kuttab
install -Dp -m 0755 kuttab %{buildroot}%{_bindir}
install -Dp -m 0755 kuttab.desktop %{buildroot}%{_datadir}/applications
install -Dp -m 0644 kuttab.appdata.xml %{buildroot}%{_datadir}/appdata
install -Dp -m 0644 kuttab.png %{buildroot}%{_datadir}/pixmaps
%files
%license WAQFv2.pdf
%{_datadir}/kuttab/local/*
%{_datadir}/kuttab/index.html
%{_bindir}/kuttab
%{_datadir}/applications/kuttab.desktop
%{_datadir}/appdata/kuttab.appdata.xml
%{_datadir}/pixmaps/kuttab.png
%changelog
* Sun Dec 25 2016 Mosaab Alzoubi <moceap@hotmail.com> - 1.0-1
- Initial