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