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