-
Notifications
You must be signed in to change notification settings - Fork 1
/
gammu.spec
259 lines (190 loc) · 6.79 KB
/
gammu.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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
Name: gammu
Version: 1.28.0
Release: 1%{?dist}
Summary: Command Line utility to work with mobile phones
Group: Applications/System
License: GPLv2+
URL: http://cihar.com/gammu/
Source0: http://dl.cihar.com/gammu/releases/%{name}-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: autoconf, gettext, cmake
#BuildRequires: libusb1-devel, doxygen
#BuildRequires: libcurl-devel
# Enabling bluetooth fonction
#BuildRequires: bluez-libs-devel
# Enabling Database sms fonction
BuildRequires: postgresql-devel, mysql-devel
#Requires: bluez-utils, dialog
Requires: dialog
%package smsd
Summary: SMS message daemon
Requires(post): chkconfig
Requires(preun): chkconfig
Requires(preun): initscripts
Group: Applications/Communications
%package libs
Summary: Libraries files for %{name}
Group: System Environment/Libraries
%package -n python-%{name}
Summary: Python bindings for Gammu
Group: Development/Languages
BuildRequires: python-devel
Obsoletes: python-%{name} <= 0.28
Requires: %{name} = %{version}-%{release}
%package devel
Summary: Development files for %{name}
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
Requires: %{name}-libs = %{version}-%{release}
Requires: pkgconfig
%description
Gammu is command line utility and library to work with mobile phones
from many vendors.
Support for different models differs, but basic functions should work
with majority of them. Program can work with contacts,
messages (SMS, EMS and MMS), calendar, todos, filesystem,
integrated radio, camera, etc.
It also supports daemon mode to send and receive SMSes.
%description smsd
This package contains Gammu SMS Daemon and tool to inject messages
into the queue.
%description libs
The %{name}-libs package contains libraries files that used by %{name}
%description -n python-%{name}
Python bindings for Gammu library.
It currently does not support all Gammu features,
but range of covered functions is increasing,
if you need some specific, feel free to use bug tracking system for feature requests.
%description devel
The %{name}-devel package contains Header and libraries files for
developing applications that use %{name}
%prep
%setup -q
#sed -i 's|${INSTALL_LIB_DIR}|%{_libdir}|' CMakeLists.txt libgammu/CMakeLists.txt \
# smsd/CMakeLists.txt gammu/CMakeLists.txt
%build
mkdir build
pushd build
%cmake \
-DENABLE_BACKUP=ON \
-DWITH_NOKIA_SUPPORT=ON \
-DWITH_Bluez=ON \
-DWITH_IrDA=On \
../
make
popd
#fix lines ending
for docs in \
docs/develop/{protocol/'*',sounds/*,sms/'*'} \
docs/develop/{*.htm,*.txt} \
docs/user/*.* ; do
sed -e 's/\r//' -i $docs
done
%install
rm -rf $RPM_BUILD_ROOT
make -C build install DESTDIR=$RPM_BUILD_ROOT
#remove library
rm -f $RPM_BUILD_ROOT%{_libdir}/libGammu.a
#Improve installed documentations directories
mkdir devel_docs
mkdir -p docs/symbian
cp -pR $RPM_BUILD_ROOT%{_docdir}/%{name}/devel/* devel_docs
cp -pR $RPM_BUILD_ROOT%{_docdir}/%{name}/symbian/* docs/symbian
#cp -pR $RPM_BUILD_ROOT%{_docdir}/%{name}/examples/* docs/examples
cp -p $RPM_BUILD_ROOT%{_docdir}/%{name}/*.* .
rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name}
%find_lang %{name}
%find_lang lib%{name}
cat lib%{name}.lang >> %{name}.lang
%clean
rm -rf $RPM_BUILD_ROOT
%post -n %{name}-libs -p /sbin/ldconfig
%postun -n %{name}-libs -p /sbin/ldconfig
%files -f %{name}.lang
%defattr(-,root,root,-)
%doc COPYING ChangeLog README docs/* BUGS *.html *.txt
%{_bindir}/%{name}*
%{_bindir}/jadmaker
%{_mandir}/man1/*.gz
%{_mandir}/man5/*.gz
%{_mandir}/man7/*.gz
%{_mandir}/cs/man1/*.gz
%{_mandir}/cs/man5/*.gz
%{_mandir}/cs/man7/*.gz
%config %{_sysconfdir}/bash_completion.d/%{name}
%files libs
%defattr(-,root,root,-)
%{_libdir}/*.so.*
%files -n python-%{name}
%defattr(-,root,root,-)
%{python_sitearch}/%{name}
%files devel
%defattr(-,root,root,-)
%doc devel_docs/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%{_includedir}/%{name}
%changelog
* Fri Sep 03 2010 David Hrbáč <[email protected]> - 1.28.0-1
- new upstream release
* Wed Apr 14 2010 David Hrbáč <[email protected]> - 1.27.93-1
- new upstream release
* Sun Feb 28 2010 David Hrbáč <[email protected]> - 1.27.92-1
- new upstream release
* Thu Feb 04 2010 David Hrbáč <[email protected]> - 1.27.90-1
- new upstream release
* Thu May 7 2009 Ville Skyttä <ville.skytta at iki.fi> - 1.24.0-2
- Build with $RPM_OPT_FLAGS, use %%cmake macro.
* Wed Apr 29 2009 Xavier Lamien <[email protected]> - 1.24.0-1
- Update release.
* Tue Apr 14 2009 Xavier Lamien <[email protected]> - 1.23.92-1
- Update release.
* Sun Apr 12 2009 Xavier Lamien <[email protected]> - 1.23.1-1
- Update release.
* Tue Feb 24 2009 Fedora Release Engineering <[email protected]> - 1.22.94-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
* Tue Feb 10 2009 Xavier Lamien <[email protected]> - 1.22.94-1
- Update release.
* Mon Jan 26 2009 Xavier Lamien <[email protected]> - 1.22.90-3
- Make _libdir in a good shape.
* Mon Jan 26 2009 Tomas Mraz <[email protected]> - 1.22.90-2
- rebuild with new openssl and mysql
* Sun Jan 11 2009 Xavier Lamien <lxtnow[at]gmail.com> - 1.22.90-1
- Update release.
* Tue Dec 30 2008 Jan ONDREJ (SAL) <ondrejj(at)salstar.sk> - 1.22.1-2
- Update release.
- -DENABLE_SHARED=ON replaced by -DBUILD_SHARED_LIBS=ON
* Sat Oct 11 2008 Xavier Lamien <lxtnow[at]gmail.com> - 1.21.0-1
- Update release.
* Thu Sep 11 2008 Xavier Lamien <lxtnow[at]gmail.com> - 1.20.90-2
- Rebuild against new libbluetooth.
* Mon Aug 25 2008 Xavier Lamien <lxtnow[at]gmail.com> - 1.20.90-1
- Update release.
* Mon Aug 23 2008 Xavier Lamien <lxntow[at]gmail.com> - 1.20.0-1
- Update release.
* Mon Jun 02 2008 Xavier Lamien <lxtnow[at]gmail.com> - 1.19.0-2
- Added Require dialog.
* Thu Apr 15 2008 Xavier Lamien <lxtnow[at]gmail.com> - 1.19.0-1
- Updated Release.
* Fri Feb 29 2008 Xavier Lamien <lxtnow[at]gmail.com> - 1.18.91-1
- Updated Release.
* Thu Feb 28 2008 Xavier Lamien <lxtnow[at]gmail.com> - 1.18.0-1
- Updated Release.
* Sat Jan 26 2008 Xavier Lamien < lxtnow[at]gmail.com > - 1.17.92-1
- Updated Release.
- Included new binary file.
* Sat Dec 22 2007 Xavier Lamien < lxtnow[at]gmail.com > - 1.17.0-1
- Updated Release.
* Fri Oct 12 2007 Xavier Lamien < lxtnow[at]gmail.com > - 1.13.0-1
- Updated Release.
* Wed Aug 02 2007 Xavier Lamien < lxtnow[at]gmail.com > - 1.12.92-1
- Updated Release.
* Wed Jul 25 2007 Xavier Lamien < lxtnow[at]gmail.com > - 1.12.91-1
- Updated Release.
* Thu May 24 2007 Xavier Lamien < lxtnow[at]gmail.com > - 1.11.0-1
- Updated release.
* Wed May 23 2007 Xavier Lamien < lxtnow[at]gmail.com > - 1.10.6-1
- Updated release.
* Tue May 08 2007 Xavier Lamien < lxtnow[at]gmail.com > - 1.10.0-1
- Initial RPM release.