]> git.pld-linux.org Git - packages/gammu.git/blame - gammu.spec
- release 2
[packages/gammu.git] / gammu.spec
CommitLineData
bc4e3c70
TP
1Summary: Tool suite for mobile phones
2Summary(pl.UTF-8): Zestaw narzędzi do telefonów komórkowych
e4c35d43 3Name: gammu
ed422299 4Version: 1.29.0
3120d7f8 5Release: 2
f836a189 6Epoch: 1
2585acb8 7License: GPL v2+
f836a189 8Group: Applications/Communications
ed422299 9Source0: http://dl.cihar.com/gammu/releases/%{name}-%{version}.tar.xz
10# Source0-md5: 27b3a811cd27c94c66d9b964140a51f6
202fe725 11Source1: %{name}-smsd.init
12Source2: %{name}-smsd.sysconfig
e721ad3e 13Patch0: %{name}-etc_dir.patch
a331b5e4 14URL: http://www.gammu.org/
54d86c80 15BuildRequires: bluez-libs-devel
281fa2ca 16BuildRequires: cmake >= 2.4.6
8f45ba1e 17BuildRequires: curl-devel
9ab30125 18BuildRequires: gettext-devel
101d1802 19BuildRequires: mysql-devel
736b1f60 20BuildRequires: postgresql-devel
3ca020a3 21BuildRequires: python-devel >= 1:2.5
3ca020a3 22BuildRequires: rpm-pythonprov
ed422299 23BuildRequires: rpmbuild(macros) >= 1.600
24BuildRequires: tar >= 1:1.22
25BuildRequires: xz >= 1:4.999.7
3b248c9a 26Requires: %{name}-libs = %{epoch}:%{version}-%{release}
202fe725 27Suggests: %{name}-smsd = %{epoch}:%{version}-%{release}
e4c35d43
PG
28Provides: mygnokii2
29Obsoletes: mygnokii2
f836a189 30BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31
32%description
e4c35d43 33Gammu (formerly known as MyGnokii2) is cellular manager for various
99e7d737
JB
34mobile phones and modems. It currently supports Nokia 3210, 33xx,
353410, 3510, 51xx, 5210, 5510, 61xx, 62xx, 63xx, 6510, 7110, 82xx,
368310, 9110, and 9210, and AT devices (such as Siemens, Alcatel,
37WaveCom, IPAQ, and other). It has a command line version with many
38functions for ringtones, phonebook, SMS, logos, WAP, date/time, alarm,
39calls, etc. It can also make full backups and restore them.
40
1b85dc8f
JR
41%description -l pl.UTF-8
42Gammu (poprzednio znany jako MyGnokii2) jest narzędziem do zarządzania
43różnymi telefonami komórkowymi i modemami. Aktualnie obsługuje Nokie
99e7d737 443210, 33xx, 3410, 51xx, 5210, 5510, 61xx, 62xx, 63xx, 6510, 7110,
1b85dc8f
JR
4582xx, 8310, 9110 i 3210 oraz urządzenia AT (takie jak Siemens,
46Alcatel, WaveCom, IPAQ i inne). Ma wersję działającą z linii poleceń z
47wieloma funkcjami do dzwonków, książki telefonicznej, SMS-ów, logo,
48WAP, daty/czasu, budzika, dzwonienia itp. Może także wykonywać pełne
49kopie zapasowe danych i odtwarzać je.
f836a189 50
202fe725 51%package smsd
52Summary: Gammu SMS Daemon
53Summary(pl.UTF-8): Demon SMS Gammu
54Group: Applications/Communications
55Requires: %{name} = %{epoch}:%{version}-%{release}
56
57%description smsd
58Gammu SMS Daemon is a program that periodically scans GSM modem for
59received messages, stores them in defined storage and also sends
60messages enqueued in this storage. It is perfect tool for managing big
61amounts of received or sent messages and automatically process them.
62
63%description smsd -l pl.UTF-8
ed422299 64Demon SMS Gammu jest programem, który okresowo sprawdza czy modem GSM
1bb8440d 65odebrał jakieś wiadomości, przechowuje je w zdefiniowanym zasobie a
66także wysyła wiadomości skolejkowane w tym zasobie. Jest idealnym
67narzędziem do zarządzania dużą ilością otrzymanych lub wysyłanych
ed422299 68wiadomości i automatycznego przetwarzania ich.
202fe725 69
e9da6d17 70%package libs
736b1f60 71Summary: Gammu library
72Summary(pl.UTF-8): Biblioteka Gammu
73Group: Libraries
e9da6d17 74
75%description libs
76Gammu tool suite library.
77
35238559 78%description libs -l pl.UTF-8
e9da6d17 79Biblioteka zestawu narzędzi dla telefonów komórkowych Gammu.
80
3b248c9a
JB
81%package devel
82Summary: Header files for Gammu tool suite for mobile phones
83Summary(pl.UTF-8): Pliki nagłówkowe zestawu narzędzi dla telefonów komórkowych Gammu
84Group: Development/Libraries
85Requires: %{name}-libs = %{epoch}:%{version}-%{release}
a860cb8f 86Requires: bluez-libs-devel
3b248c9a
JB
87
88%description devel
89Header files for Gammu tool suite for mobile phones.
90
91%description devel -l pl.UTF-8
92Pliki nagłówkowe zestawu narzędzi dla telefonów komórkowych Gammu.
93
3ca020a3 94%package -n python-gammu
95Summary: Python bingings for Gammu library
96Summary(pl.UTF-8): Wiązania języka Python dla biblioteki Gammu
97Group: Development/Languages/Python
40579025 98Requires: %{name}-libs = %{epoch}:%{version}-%{release}
3ca020a3 99%pyrequires_eq python-modules
3ca020a3 100
101%description -n python-gammu
102Python bingings for Gammu library.
103
2585acb8 104%description -n python-gammu -l pl.UTF-8
3ca020a3 105Wiązania języka Python dla biblioteki Gammu.
106
e9da6d17 107%package static
736b1f60 108Summary: Gammu static library
109Summary(pl.UTF-8): Biblioteka statyczna Gammu
110Group: Development/Libraries
3b248c9a 111Requires: %{name}-devel = %{epoch}:%{version}-%{release}
e9da6d17 112
113%description static
114Gammu static library.
115
35238559 116%description static -l pl.UTF-8
e9da6d17 117Biblioteka statyczna zestawu narzędzi dla telefonów komórkowych Gammu.
118
1b61967a
BZ
119%package -n bash-completion-gammu
120Summary: bash-completion for gammu
121Summary(pl.UTF-8): bashowe uzupełnianie nazw dla gammu
122Group: Applications/Shells
5e34605d 123Requires: %{name} = %{epoch}:%{version}-%{release}
2585acb8 124Requires: bash-completion
1b61967a
BZ
125
126%description -n bash-completion-gammu
127This package provides bash-completion for gammu.
128
129%description -n bash-completion-gammu -l pl.UTF-8
130Pakiet ten dostarcza bashowe uzupełnianie nazw dla gammu.
131
f836a189 132%prep
44bab158 133%setup -q
8f45ba1e 134%patch0 -p1
f836a189 135
136%build
35238559
TP
137mkdir -p build
138cd build
2314bcd8 139%cmake .. \
8f45ba1e 140 -DBUILD_SHARED_LIBS=OFF \
5e447162
MB
141 -DINSTALL_LIB_DIR=%{_lib} \
142 -DINSTALL_LIBDATA_DIR=%{_libdir} \
ed422299 143 -DBUILD_PYTHON=%{_bindir}/python%{py_ver}
36390489 144%{__make}
6baa676b 145mv libgammu/libGammu.a ..
146mv smsd/libgsmsd.a ..
2314bcd8 147%cmake .. \
8f45ba1e 148 -DBUILD_SHARED_LIBS=ON \
5e447162
MB
149 -DINSTALL_LIB_DIR=%{_lib} \
150 -DINSTALL_LIBDATA_DIR=%{_libdir} \
ed422299 151 -DBUILD_PYTHON=%{_bindir}/python%{py_ver}
36390489 152%{__make}
f836a189 153
154%install
155rm -rf $RPM_BUILD_ROOT
35238559 156install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_examplesdir}/%{name}-%{version}}
3b248c9a
JB
157
158%{__make} -C build install \
35238559 159 DESTDIR=$RPM_BUILD_ROOT
35238559 160
6baa676b 161install docs/config/gammurc $RPM_BUILD_ROOT%{_sysconfdir}
ed422299 162#cp -r docs/develop $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
35238559 163install libGammu.a $RPM_BUILD_ROOT%{_libdir}
6baa676b 164install libgsmsd.a $RPM_BUILD_ROOT%{_libdir}
202fe725 165install -d $RPM_BUILD_ROOT%{_sysconfdir}/%{name}-smsd $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig}
166install docs/config/smsdrc $RPM_BUILD_ROOT%{_sysconfdir}/%{name}-smsd/ttyS0.conf
167install -p %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}-smsd
168cp -a %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/%{name}-smsd
169install -d $RPM_BUILD_ROOT/%{_varrun}/%{name}-smsd
170install -d $RPM_BUILD_ROOT/%{_sharedstatedir}/%{name}-smsd
6baa676b 171
9ab30125 172%find_lang %{name}
59428bc4 173%find_lang libgammu
11342faf 174
ed422299 175%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}
f836a189 176
5f592fd2
JB
177# for rpm autodeps
178chmod 755 $RPM_BUILD_ROOT%{_libdir}/lib*.so*
179
f836a189 180%clean
181rm -rf $RPM_BUILD_ROOT
182
a860cb8f
JB
183%post libs -p /sbin/ldconfig
184%postun libs -p /sbin/ldconfig
11342faf 185
202fe725 186%pre smsd
187%groupadd -g 251 gammu-smsd
188%useradd -u 251 -d /var/lib/gammu-smsd -s /bin/false -c "Gammu SMSD user" -G dialout -g gammu-smsd gammu-smsd
189
190%post smsd
191/sbin/chkconfig --add gammu-smsd
192%service gammu-smsd restart "Gammu SMSD"
193
194%preun smsd
195if [ "$1" = "0" ]; then
196 %service gammu-smsd stop
197 /sbin/chkconfig --del gammu-smsd
198fi
199
200%postun smsd
201if [ "$1" = "0" ]; then
202 %groupremove gammu-smsd
203 %userremove gammu-smsd
204fi
205
9ab30125 206%files -f %{name}.lang
f836a189 207%defattr(644,root,root,755)
ed422299 208%doc AUTHORS BUGS ChangeLog README README.Python docs/manual/Gammu.htm
e4c35d43 209%attr(755,root,root) %{_bindir}/%{name}
6baa676b 210%attr(755,root,root) %{_bindir}/jadmaker
a3c0577f 211%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gammurc
a3c0577f 212%{_examplesdir}/%{name}-%{version}
40579025 213%{_mandir}/man[157]/*
e9da6d17 214
202fe725 215%files smsd
1bb8440d 216%defattr(644,root,root,755)
202fe725 217%doc docs/sql/*.sql
218%attr(755,root,root) %{_bindir}/gammu-smsd
219%attr(755,root,root) %{_bindir}/gammu-smsd-inject
220%attr(755,root,root) %{_bindir}/gammu-smsd-monitor
221%attr(754,root,root) /etc/rc.d/init.d/%{name}-smsd
1bb8440d 222%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name}-smsd
202fe725 223%{_sysconfdir}/%{name}-smsd
224%attr(750,root,gammu-smsd) %{_varrun}/%{name}-smsd
225%attr(750,gammu-smsd,gammu-smsd) %{_sharedstatedir}/%{name}-smsd
226
59428bc4 227%files libs -f libgammu.lang
2585acb8 228%defattr(644,root,root,755)
a860cb8f 229%attr(755,root,root) %{_libdir}/libGammu.so.*.*
6baa676b 230%attr(755,root,root) %{_libdir}/libgsmsd.so.*.*.*.*
59428bc4
AF
231%attr(755,root,root) %ghost %{_libdir}/libgsmsd.so.?
232%attr(755,root,root) %ghost %{_libdir}/libGammu.so.?
3b248c9a 233
e9da6d17 234%files devel
235%defattr(644,root,root,755)
35238559 236%attr(755,root,root) %{_bindir}/%{name}-config
a860cb8f 237%attr(755,root,root) %{_libdir}/libGammu.so
6baa676b 238%attr(755,root,root) %{_libdir}/libgsmsd.so
e9da6d17 239%{_includedir}/*
6baa676b 240%dir %{py_sitedir}/gammu/
241%attr(755,root,root) %{py_sitedir}/gammu/_gammu.so
a860cb8f 242%{_pkgconfigdir}/gammu.pc
6baa676b 243%{_pkgconfigdir}/gammu-smsd.pc
e9da6d17 244
3ca020a3 245%files -n python-gammu
246%defattr(644,root,root,755)
247%dir %{py_sitedir}/gammu
248%attr(755,root,root) %{py_sitedir}/gammu/*.so
249%{py_sitedir}/gammu/*.py
250
e9da6d17 251%files static
2585acb8 252%defattr(644,root,root,755)
6baa676b 253%{_libdir}/libgsmsd.a
a860cb8f 254%{_libdir}/libGammu.a
1b61967a
BZ
255
256%files -n bash-completion-gammu
257%defattr(644,root,root,755)
258%{_sysconfdir}/bash_completion.d/gammu
This page took 2.27968 seconds and 4 git commands to generate.