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