~ubuntu-branches/ubuntu/utopic/monajat/utopic

« back to all changes in this revision

Viewing changes to monajat.spec

  • Committer: Package Import Robot
  • Author(s): أحمد المحمودي (Ahmed El-Mahmoudy)
  • Date: 2014-04-12 19:05:04 UTC
  • mfrom: (1.1.6)
  • Revision ID: package-import@ubuntu.com-20140412190504-ktaasa5xwpwbv6ob
Tags: 2.6.5-1
* New upstream release.
* Update URL in watch file.
* debian/control:
  + Replaced python-gtk2 & python-notify with python-gobject in
    monajat-applet's Depends
  + Update Standards-Version to 3.9.5
  + Add intltool to Build-Deps
* debian/copyright: Update copyright years.
* debian/gbp.conf: Remove compression field.
* Dropped fix_locale.diff patch, as it is included upstream.
* debian/rules: Replace overrides for dh_auto_build & dh_auto_clean with
  overrides for dh_auto_{clean,build,install} to run them with
  python_distutils & makefile build systems.
* Added separate_pyinstall.diff patch to separate python build/install calls
  from Makefile

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
Name: monajat
2
 
Summary: Monajat Islamic Supplications
3
 
URL: http://git.ojuba.org/cgit/monajat/about/
4
 
Version: 2.6.3
5
 
Release: 1%{?dist}
6
 
Source0: http://git.ojuba.org/cgit/monajat/snapshot/%{name}-%{version}.tar.bz2
7
 
License: GPLv2
8
 
Group: System Environment/Base
9
 
BuildArch: noarch
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
 
3
 
 
4
Name:           monajat
 
5
Summary:        Monajat Islamic Supplications
 
6
URL:            http://ojuba.org
 
7
Version:        2.6.5
 
8
Release:        2%{?dist}
 
9
Source:         https://github.com/%{owner}/%{name}/archive/%{commit}/%{name}-%{commit}.tar.gz
 
10
License:        WAQFv2 and GPLv2
 
11
Group:          System Environment/Base
 
12
BuildArch:      noarch
 
13
Requires:       python, libitl
 
14
Requires:       libitl
 
15
Requires:       pygobject3 >= 3.0.2
 
16
BuildRequires:  gettext
 
17
BuildRequires:  python
 
18
BuildRequires:  python-setuptools
 
19
BuildRequires:  python2-devel
13
20
 
14
21
# /usr/share/gnome-shell/extensions/Monajat@ojuba.org
15
22
 
16
 
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
17
 
 
18
23
%description
19
24
Monajat Islamic Supplications
20
25
 
21
26
%package database
22
 
Group: System Environment/Base
23
 
Summary: Monajat Islamic Supplications database
24
 
BuildArch: noarch
 
27
Group:          System Environment/Base
 
28
Summary:        Monajat Islamic Supplications database
 
29
BuildArch:      noarch
 
30
 
25
31
%description database
26
32
Monajat Islamic Supplications
27
33
 
28
34
This is the database used by monajat.
29
35
 
30
36
 
31
 
%package python
32
 
Group: System Environment/Base
33
 
Summary: Monajat Islamic Supplications
34
 
BuildArch: noarch
35
 
Requires: python, %{name}-database, libitl
36
 
%description python
 
37
%package -n python-monajat
 
38
Group:          System Environment/Base
 
39
Summary:        Monajat Islamic Supplications
 
40
BuildArch:      noarch
 
41
Requires:       python
 
42
Requires:       %{name}-database
 
43
Requires:       libitl
 
44
 
 
45
%description -n python-monajat
37
46
Monajat Islamic Supplications
38
47
 
39
48
This is the python monajat library needed by all monajat front ends
40
49
 
41
50
%package applet
42
 
Summary: Monajat Islamic Supplications for Desktop Tray Applet
43
 
Group: System Environment/Base
44
 
BuildArch: noarch
45
 
Requires: %{name}-python
 
51
Summary:        Monajat Islamic Supplications for Desktop Tray Applet
 
52
Group:          System Environment/Base
 
53
BuildArch:      noarch
 
54
Requires:       python-monajat
46
55
# TODO: is it better to say gnome-python2-extras ?
47
 
Requires: pygtk2, notify-python, desktop-notification-daemon
 
56
Requires:       pygtk2
 
57
Requires:       notify-python
 
58
Requires:       desktop-notification-daemon
 
59
 
48
60
%description applet
49
61
Monajat Islamic Supplications
50
62
 
51
63
This package contains the Desktop Tray Applet
52
64
 
53
65
%package mod
54
 
Summary: Monajat Islamic Supplications for console
55
 
Group: System Environment/Base
56
 
BuildArch: noarch
57
 
Requires: %{name}-python
 
66
Summary:        Monajat Islamic Supplications for console
 
67
Group:          System Environment/Base
 
68
BuildArch:      noarch
 
69
Requires:       python-monajat
 
70
 
58
71
%description mod
59
72
Monajat Islamic Supplications
60
73
 
62
75
or in the profile
63
76
 
64
77
%package screenlets
65
 
Summary: Monajat Islamic Supplications for Screenlets
66
 
Group: System Environment/Base
67
 
BuildArch: noarch
68
 
Requires: screenlets
69
 
Requires: %{name}-python
 
78
Summary:        Monajat Islamic Supplications for Screenlets
 
79
Group:          System Environment/Base
 
80
BuildArch:      noarch
 
81
Requires:       screenlets
 
82
Requires:       python-monajat
 
83
 
70
84
%description screenlets
71
85
Monajat Islamic Supplications
72
86
 
73
87
This package contains screenlets version
74
88
 
75
89
%prep
76
 
%setup -q
 
90
%setup -q -n %{name}-%{commit}
 
91
 
77
92
%build
78
 
./update-pot.sh
79
 
./gen-mo.sh
 
93
make %{?_smp_mflags}
80
94
 
81
95
%install
82
 
rm -rf $RPM_BUILD_ROOT
83
 
 
84
 
# ./gen-db.py # should be done by setup.py
85
 
 
86
 
%{__python} setup.py install \
87
 
        --root=$RPM_BUILD_ROOT \
88
 
        --optimize=2
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
92
 
 
93
 
# install the screenlets
94
 
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/
95
 
cp -r screenlets $RPM_BUILD_ROOT/%{_datadir}/
96
 
 
97
 
%clean
98
 
rm -rf $RPM_BUILD_ROOT
 
96
%makeinstall DESTDIR=$RPM_BUILD_ROOT
99
97
 
100
98
%files database
101
99
%{_datadir}/%{name}/data.db
102
100
 
103
 
%files python
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
110
107
 
111
108
%files applet
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
 
115
 
118
116
%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
 
117
#%{_datadir}/icons/hicolor/*/apps/%{name}.png
119
118
/etc/xdg/autostart/*
120
119
 
121
120
%files mod
125
124
%{_datadir}/screenlets/*
126
125
 
127
126
%changelog
 
127
* Sun Feb 16 2014 Mosaab Alzoubi <moceap@hotmail.com> - 2.6.5-2
 
128
- General Revision.
 
129
 
 
130
* Sat Jul 23 2011 Muayyad Saleh Alsadi <alsadi@ojuba.org> - 2.6.4-1
 
131
- use notify object per notification
 
132
- fix unicode
 
133
- fix installation files
 
134
- cities search fix
 
135
- speed up search cities
 
136
- port SoundPlayer to Gst
 
137
- Port to gtk3
 
138
 
128
139
* Sat Jul 23 2011 Muayyad Saleh Alsadi <alsadi@ojuba.org> - 2.6.0-1
129
140
- play Athan audio file
130
141
 
151
162
 
152
163
* Thu Aug 6 2009  Muayyad Saleh AlSadi <alsadi@ojuba.org> - 0.1.0-1
153
164
- initial packing
154