forked from ojuba-org/othman
-
Notifications
You must be signed in to change notification settings - Fork 0
/
othman.spec
82 lines (68 loc) · 2.37 KB
/
othman.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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
Name: othman
Version: 0.2.6
Release: 1%{?dist}
Summary: Othman Electronic Quran Browser
# sitelib for noarch packages, sitearch for others (remove the unneeded one)
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
Group: Applications/Productivity
License: Waqf
URL: http://othman.ojuba.org
Source: http://git.ojuba.org/cgit/%{name}/snapshot/%{name}-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
BuildRequires: python
Requires: pygtk2, islamic-menus, arabeyes-core-fonts
Requires: python-othman
%description
Othman Electronic Quran Browser displays Quranic text in Othmani script style
as written under authority of Othman ibn Affan the companion of prophet Muhammad PBUH
Othman project features fast search, autoscrolling, copy Quranic text to clipboard.
%prep
%setup -q
%build
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
%makeinstall DESTDIR=$RPM_BUILD_ROOT
%post
touch --no-create %{_datadir}/icons/hicolor || :
if [ -x %{_bindir}/gtk-update-icon-cache ] ; then
%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
fi
%postun
touch --no-create %{_datadir}/icons/hicolor || :
if [ -x %{_bindir}/gtk-update-icon-cache ] ; then
%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
fi
%clean
rm -rf $RPM_BUILD_ROOT
%package -n python-othman
Group: System Environment/Base
Summary: python package providing access to Quranic text
License: Waqf
BuildArch: noarch
Requires: python
%description -n python-othman
a python package that provides access to Quranic text with a fast search index
%files
%defattr(-,root,root,-)
%doc LICENSE-en LICENSE-ar.txt README README-ar.txt COPYING
%{_bindir}/othman-browser
%{python_sitelib}/othman/gtkUi.p*
%{_datadir}/applications/*.desktop
%{_datadir}/locale/*/*/*.mo
%{_datadir}/icons/hicolor/*/apps/*.png
%files -n python-othman
%defattr(-,root,root,-)
%doc LICENSE-en LICENSE-ar.txt README README-ar.txt COPYING
%dir %{python_sitelib}/othman
%dir %{_datadir}/othman
%{python_sitelib}/*.egg-info
%{python_sitelib}/othman/core.p*
%{python_sitelib}/othman/__init__.p*
%{_datadir}/othman/*
%changelog
* Sat Jun 12 2010 Muayyad Saleh AlSadi <alsadi@ojuba.org> - 0.2.5-1
- update to new version
* Wed Apr 28 2010 Muayyad Saleh Alsadi <alsadi@ojuba.org> - 0.2.0-1
- initial release