2
Summary: Monajat Islamic Supplications
3
URL: http://git.ojuba.org/cgit/monajat/about/
6
Source0: http://git.ojuba.org/cgit/monajat/snapshot/%{name}-%{version}.tar.bz2
8
Group: System Environment/Base
10
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
11
BuildRequires: gettext
12
BuildRequires: python, python-setuptools
1
%global owner ojuba-org
2
%global commit #Write commit number here
5
Summary: Monajat Islamic Supplications
9
Source: https://github.com/%{owner}/%{name}/archive/%{commit}/%{name}-%{commit}.tar.gz
10
License: WAQFv2 and GPLv2
11
Group: System Environment/Base
13
Requires: python, libitl
15
Requires: pygobject3 >= 3.0.2
16
BuildRequires: gettext
18
BuildRequires: python-setuptools
19
BuildRequires: python2-devel
14
21
# /usr/share/gnome-shell/extensions/Monajat@ojuba.org
16
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
19
24
Monajat Islamic Supplications
22
Group: System Environment/Base
23
Summary: Monajat Islamic Supplications database
27
Group: System Environment/Base
28
Summary: Monajat Islamic Supplications database
25
31
%description database
26
32
Monajat Islamic Supplications
28
34
This is the database used by monajat.
32
Group: System Environment/Base
33
Summary: Monajat Islamic Supplications
35
Requires: python, %{name}-database, libitl
37
%package -n python-monajat
38
Group: System Environment/Base
39
Summary: Monajat Islamic Supplications
42
Requires: %{name}-database
45
%description -n python-monajat
37
46
Monajat Islamic Supplications
39
48
This is the python monajat library needed by all monajat front ends
42
Summary: Monajat Islamic Supplications for Desktop Tray Applet
43
Group: System Environment/Base
45
Requires: %{name}-python
51
Summary: Monajat Islamic Supplications for Desktop Tray Applet
52
Group: System Environment/Base
54
Requires: python-monajat
46
55
# TODO: is it better to say gnome-python2-extras ?
47
Requires: pygtk2, notify-python, desktop-notification-daemon
57
Requires: notify-python
58
Requires: desktop-notification-daemon
48
60
%description applet
49
61
Monajat Islamic Supplications
51
63
This package contains the Desktop Tray Applet
54
Summary: Monajat Islamic Supplications for console
55
Group: System Environment/Base
57
Requires: %{name}-python
66
Summary: Monajat Islamic Supplications for console
67
Group: System Environment/Base
69
Requires: python-monajat
59
72
Monajat Islamic Supplications
64
77
%package screenlets
65
Summary: Monajat Islamic Supplications for Screenlets
66
Group: System Environment/Base
69
Requires: %{name}-python
78
Summary: Monajat Islamic Supplications for Screenlets
79
Group: System Environment/Base
82
Requires: python-monajat
70
84
%description screenlets
71
85
Monajat Islamic Supplications
73
87
This package contains screenlets version
90
%setup -q -n %{name}-%{commit}
82
rm -rf $RPM_BUILD_ROOT
84
# ./gen-db.py # should be done by setup.py
86
%{__python} setup.py install \
87
--root=$RPM_BUILD_ROOT \
89
rm $RPM_BUILD_ROOT/%{python_sitelib}/%{name}/sql*.py*
90
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/icons/hicolor/scalable/apps/
91
ln -s ../../../../%{name}/%{name}.svg $RPM_BUILD_ROOT/%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
93
# install the screenlets
94
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/
95
cp -r screenlets $RPM_BUILD_ROOT/%{_datadir}/
98
rm -rf $RPM_BUILD_ROOT
96
%makeinstall DESTDIR=$RPM_BUILD_ROOT
101
99
%{_datadir}/%{name}/data.db
104
%doc README COPYING TODO
105
%{python_sitelib}/%{name}/__init__.py*
106
%{python_sitelib}/%{name}/%{name}.py*
107
%{python_sitelib}/%{name}/itl.py*
108
%{python_sitelib}/*.egg-info
101
%files -n python-monajat
102
%doc README COPYING TODO NEWS
103
%{_defaultdocdir}/%{name}-%{version}/*
104
%{python2_sitelib}/%{name}/*.py*
105
%{python2_sitelib}/*.egg-info
109
106
%{_datadir}/locale/*/*/*.mo
112
%{python_sitelib}/%{name}/applet.py*
113
%{python_sitelib}/%{name}/utils.py*
109
#%{python2_sitelib}/%{name}/applet.py*
110
#%{python2_sitelib}/%{name}/utils.py*
114
111
%{_bindir}/%{name}-applet
115
112
%{_datadir}/%{name}/cities.db
116
113
%{_datadir}/%{name}/athan.ogg
117
114
%{_datadir}/%{name}/%{name}.svg
118
116
%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
117
#%{_datadir}/icons/hicolor/*/apps/%{name}.png
119
118
/etc/xdg/autostart/*