]> git.pld-linux.org Git - packages/gammu.git/blame_incremental - gammu.spec
- updated gettext BR
[packages/gammu.git] / gammu.spec
... / ...
CommitLineData
1Summary: Tool suite for mobile phones
2Summary(pl.UTF-8): Zestaw narzędzi do telefonów komórkowych
3Name: gammu
4Version: 1.32.0
5Release: 1
6Epoch: 1
7License: GPL v2+
8Group: Applications/Communications
9Source0: http://dl.cihar.com/gammu/releases/%{name}-%{version}.tar.xz
10# Source0-md5: a9de0904ab08093a1514d876c7bec13a
11Source1: %{name}-smsd.init
12Source2: %{name}-smsd.sysconfig
13Source3: %{name}.tmpfiles
14Patch0: %{name}-etc_dir.patch
15Patch1: %{name}-werror.patch
16URL: http://www.gammu.org/
17BuildRequires: bluez-libs-devel
18BuildRequires: cmake >= 2.4.6
19BuildRequires: curl-devel
20BuildRequires: gettext-tools
21BuildRequires: mysql-devel
22BuildRequires: postgresql-devel
23BuildRequires: python-devel >= 1:2.5
24BuildRequires: rpm-pythonprov
25BuildRequires: rpmbuild(macros) >= 1.600
26BuildRequires: tar >= 1:1.22
27BuildRequires: xz >= 1:4.999.7
28Requires: %{name}-libs = %{epoch}:%{version}-%{release}
29Suggests: %{name}-smsd = %{epoch}:%{version}-%{release}
30Provides: mygnokii2
31Obsoletes: mygnokii2
32BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33
34%description
35Gammu (formerly known as MyGnokii2) is cellular manager for various
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
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
463210, 33xx, 3410, 51xx, 5210, 5510, 61xx, 62xx, 63xx, 6510, 7110,
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.
52
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
66Demon SMS Gammu jest programem, który okresowo sprawdza czy modem GSM
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
70wiadomości i automatycznego przetwarzania ich.
71
72%package libs
73Summary: Gammu library
74Summary(pl.UTF-8): Biblioteka Gammu
75Group: Libraries
76
77%description libs
78Gammu tool suite library.
79
80%description libs -l pl.UTF-8
81Biblioteka zestawu narzędzi dla telefonów komórkowych Gammu.
82
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}
88Requires: bluez-libs-devel
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
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
100Requires: %{name}-libs = %{epoch}:%{version}-%{release}
101%pyrequires_eq python-modules
102
103%description -n python-gammu
104Python bingings for Gammu library.
105
106%description -n python-gammu -l pl.UTF-8
107Wiązania języka Python dla biblioteki Gammu.
108
109%package static
110Summary: Gammu static library
111Summary(pl.UTF-8): Biblioteka statyczna Gammu
112Group: Development/Libraries
113Requires: %{name}-devel = %{epoch}:%{version}-%{release}
114
115%description static
116Gammu static library.
117
118%description static -l pl.UTF-8
119Biblioteka statyczna zestawu narzędzi dla telefonów komórkowych Gammu.
120
121%package -n bash-completion-gammu
122Summary: bash-completion for gammu
123Summary(pl.UTF-8): bashowe uzupełnianie nazw dla gammu
124Group: Applications/Shells
125Requires: %{name} = %{epoch}:%{version}-%{release}
126Requires: bash-completion
127%if "%{_rpmversion}" >= "5"
128BuildArch: noarch
129%endif
130
131%description -n bash-completion-gammu
132This package provides bash-completion for gammu.
133
134%description -n bash-completion-gammu -l pl.UTF-8
135Pakiet ten dostarcza bashowe uzupełnianie nazw dla gammu.
136
137%prep
138%setup -q
139%patch0 -p1
140%patch1 -p1
141
142%build
143mkdir -p build
144cd build
145%cmake .. \
146 -DBUILD_SHARED_LIBS=OFF \
147 -DINSTALL_LIB_DIR=%{_lib} \
148 -DINSTALL_LIBDATA_DIR=%{_libdir} \
149 -DBUILD_PYTHON=%{_bindir}/python%{py_ver}
150%{__make}
151mv libgammu/libGammu.a ..
152mv smsd/libgsmsd.a ..
153%cmake .. \
154 -DBUILD_SHARED_LIBS=ON \
155 -DINSTALL_LIB_DIR=%{_lib} \
156 -DINSTALL_LIBDATA_DIR=%{_libdir} \
157 -DBUILD_PYTHON=%{_bindir}/python%{py_ver}
158%{__make}
159
160%install
161rm -rf $RPM_BUILD_ROOT
162install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_examplesdir}/%{name}-%{version}} \
163 $RPM_BUILD_ROOT/usr/lib/tmpfiles.d
164
165%{__make} -C build install \
166 DESTDIR=$RPM_BUILD_ROOT
167
168install docs/config/gammurc $RPM_BUILD_ROOT%{_sysconfdir}
169#cp -r docs/develop $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
170install libGammu.a $RPM_BUILD_ROOT%{_libdir}
171install libgsmsd.a $RPM_BUILD_ROOT%{_libdir}
172install -d $RPM_BUILD_ROOT%{_sysconfdir}/%{name}-smsd $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig}
173install docs/config/smsdrc $RPM_BUILD_ROOT%{_sysconfdir}/%{name}-smsd/ttyS0.conf
174install -p %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}-smsd
175cp -a %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/%{name}-smsd
176install -d $RPM_BUILD_ROOT/%{_varrun}/%{name}-smsd
177install -d $RPM_BUILD_ROOT/%{_sharedstatedir}/%{name}-smsd
178
179install %{SOURCE3} $RPM_BUILD_ROOT/usr/lib/tmpfiles.d/%{name}.conf
180
181%find_lang %{name}
182%find_lang libgammu
183
184%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}
185
186# for rpm autodeps
187chmod 755 $RPM_BUILD_ROOT%{_libdir}/lib*.so*
188
189%clean
190rm -rf $RPM_BUILD_ROOT
191
192%post libs -p /sbin/ldconfig
193%postun libs -p /sbin/ldconfig
194
195%pre smsd
196%groupadd -g 251 gammu-smsd
197%useradd -u 251 -d /var/lib/gammu-smsd -s /bin/false -c "Gammu SMSD user" -G dialout -g gammu-smsd gammu-smsd
198
199%post smsd
200/sbin/chkconfig --add gammu-smsd
201%service gammu-smsd restart "Gammu SMSD"
202
203%preun smsd
204if [ "$1" = "0" ]; then
205 %service gammu-smsd stop
206 /sbin/chkconfig --del gammu-smsd
207fi
208
209%postun smsd
210if [ "$1" = "0" ]; then
211 %groupremove gammu-smsd
212 %userremove gammu-smsd
213fi
214
215%files -f %{name}.lang
216%defattr(644,root,root,755)
217%doc AUTHORS ChangeLog README README.Python docs/manual/Gammu.htm
218%attr(755,root,root) %{_bindir}/%{name}
219%attr(755,root,root) %{_bindir}/%{name}-detect
220%attr(755,root,root) %{_bindir}/jadmaker
221%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gammurc
222%{_examplesdir}/%{name}-%{version}
223%{_datadir}/gammu
224%{_mandir}/man[157]/*
225
226%files smsd
227%defattr(644,root,root,755)
228%doc docs/sql/*.sql
229%attr(755,root,root) %{_bindir}/gammu-smsd
230%attr(755,root,root) %{_bindir}/gammu-smsd-inject
231%attr(755,root,root) %{_bindir}/gammu-smsd-monitor
232%attr(754,root,root) /etc/rc.d/init.d/%{name}-smsd
233%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name}-smsd
234%{_sysconfdir}/%{name}-smsd
235/usr/lib/tmpfiles.d/%{name}.conf
236%attr(750,root,gammu-smsd) %{_varrun}/%{name}-smsd
237%attr(750,gammu-smsd,gammu-smsd) %{_sharedstatedir}/%{name}-smsd
238
239%files libs -f libgammu.lang
240%defattr(644,root,root,755)
241%attr(755,root,root) %{_libdir}/libGammu.so.*.*
242%attr(755,root,root) %{_libdir}/libgsmsd.so.*.*.*.*
243%attr(755,root,root) %ghost %{_libdir}/libgsmsd.so.7
244%attr(755,root,root) %ghost %{_libdir}/libGammu.so.7
245
246%files devel
247%defattr(644,root,root,755)
248%attr(755,root,root) %{_bindir}/%{name}-config
249%attr(755,root,root) %{_libdir}/libGammu.so
250%attr(755,root,root) %{_libdir}/libgsmsd.so
251%{_includedir}/*
252%{_pkgconfigdir}/gammu.pc
253%{_pkgconfigdir}/gammu-smsd.pc
254
255%files -n python-gammu
256%defattr(644,root,root,755)
257%dir %{py_sitedir}/gammu
258%attr(755,root,root) %{py_sitedir}/gammu/*.so
259%{py_sitedir}/gammu/*.py
260
261%files static
262%defattr(644,root,root,755)
263%{_libdir}/libgsmsd.a
264%{_libdir}/libGammu.a
265
266%files -n bash-completion-gammu
267%defattr(644,root,root,755)
268%{_sysconfdir}/bash_completion.d/gammu
This page took 0.025246 seconds and 4 git commands to generate.