]> git.pld-linux.org Git - packages/gammu.git/blame - gammu.spec
- up to 1.37.0
[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
917c9a25 5Version: 1.37.0
fdd494c7 6Release: 1
f836a189 7Epoch: 1
2585acb8 8License: GPL v2+
f836a189 9Group: Applications/Communications
ed422299 10Source0: http://dl.cihar.com/gammu/releases/%{name}-%{version}.tar.xz
917c9a25 11# Source0-md5: 6e249e6f93461f1fc215ec85cec67740
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/
54d86c80 17BuildRequires: bluez-libs-devel
281fa2ca 18BuildRequires: cmake >= 2.4.6
8f45ba1e 19BuildRequires: curl-devel
2af357f0 20BuildRequires: gettext-tools
101d1802 21BuildRequires: mysql-devel
736b1f60 22BuildRequires: postgresql-devel
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
e9da6d17 94%package static
736b1f60 95Summary: Gammu static library
96Summary(pl.UTF-8): Biblioteka statyczna Gammu
97Group: Development/Libraries
3b248c9a 98Requires: %{name}-devel = %{epoch}:%{version}-%{release}
e9da6d17 99
100%description static
101Gammu static library.
102
35238559 103%description static -l pl.UTF-8
e9da6d17 104Biblioteka statyczna zestawu narzędzi dla telefonów komórkowych Gammu.
105
1b61967a
BZ
106%package -n bash-completion-gammu
107Summary: bash-completion for gammu
108Summary(pl.UTF-8): bashowe uzupełnianie nazw dla gammu
109Group: Applications/Shells
5e34605d 110Requires: %{name} = %{epoch}:%{version}-%{release}
2585acb8 111Requires: bash-completion
df7399e5
ER
112%if "%{_rpmversion}" >= "5"
113BuildArch: noarch
114%endif
1b61967a
BZ
115
116%description -n bash-completion-gammu
117This package provides bash-completion for gammu.
118
119%description -n bash-completion-gammu -l pl.UTF-8
120Pakiet ten dostarcza bashowe uzupełnianie nazw dla gammu.
121
f836a189 122%prep
44bab158 123%setup -q
8f45ba1e 124%patch0 -p1
f836a189 125
126%build
fdd494c7
AZ
127export CFLAGS="%{optflags}"
128export CXXFLAGS="%{optflags}"
35238559
TP
129mkdir -p build
130cd build
2314bcd8 131%cmake .. \
8f45ba1e 132 -DBUILD_SHARED_LIBS=OFF \
5e447162 133 -DINSTALL_LIB_DIR=%{_lib} \
32f28323 134 -DINSTALL_LIBDATA_DIR=%{_libdir}
36390489 135%{__make}
6baa676b 136mv libgammu/libGammu.a ..
137mv smsd/libgsmsd.a ..
2314bcd8 138%cmake .. \
8f45ba1e 139 -DBUILD_SHARED_LIBS=ON \
5e447162 140 -DINSTALL_LIB_DIR=%{_lib} \
32f28323 141 -DINSTALL_LIBDATA_DIR=%{_libdir}
36390489 142%{__make}
f836a189 143
144%install
145rm -rf $RPM_BUILD_ROOT
e2beacc8
JR
146install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_examplesdir}/%{name}-%{version}} \
147 $RPM_BUILD_ROOT/usr/lib/tmpfiles.d
3b248c9a
JB
148
149%{__make} -C build install \
35238559 150 DESTDIR=$RPM_BUILD_ROOT
35238559 151
6baa676b 152install docs/config/gammurc $RPM_BUILD_ROOT%{_sysconfdir}
ed422299 153#cp -r docs/develop $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
35238559 154install libGammu.a $RPM_BUILD_ROOT%{_libdir}
6baa676b 155install libgsmsd.a $RPM_BUILD_ROOT%{_libdir}
202fe725 156install -d $RPM_BUILD_ROOT%{_sysconfdir}/%{name}-smsd $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig}
157install docs/config/smsdrc $RPM_BUILD_ROOT%{_sysconfdir}/%{name}-smsd/ttyS0.conf
158install -p %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}-smsd
159cp -a %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/%{name}-smsd
160install -d $RPM_BUILD_ROOT/%{_varrun}/%{name}-smsd
161install -d $RPM_BUILD_ROOT/%{_sharedstatedir}/%{name}-smsd
6baa676b 162
c4b587a2 163install %{SOURCE3} $RPM_BUILD_ROOT/usr/lib/tmpfiles.d/%{name}.conf
e2beacc8 164
9ab30125 165%find_lang %{name}
59428bc4 166%find_lang libgammu
11342faf 167
ed422299 168%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}
f836a189 169
5f592fd2
JB
170# for rpm autodeps
171chmod 755 $RPM_BUILD_ROOT%{_libdir}/lib*.so*
172
f836a189 173%clean
174rm -rf $RPM_BUILD_ROOT
175
a860cb8f
JB
176%post libs -p /sbin/ldconfig
177%postun libs -p /sbin/ldconfig
11342faf 178
202fe725 179%pre smsd
180%groupadd -g 251 gammu-smsd
181%useradd -u 251 -d /var/lib/gammu-smsd -s /bin/false -c "Gammu SMSD user" -G dialout -g gammu-smsd gammu-smsd
182
183%post smsd
184/sbin/chkconfig --add gammu-smsd
185%service gammu-smsd restart "Gammu SMSD"
186
187%preun smsd
188if [ "$1" = "0" ]; then
189 %service gammu-smsd stop
190 /sbin/chkconfig --del gammu-smsd
191fi
192
193%postun smsd
194if [ "$1" = "0" ]; then
195 %groupremove gammu-smsd
196 %userremove gammu-smsd
197fi
198
9ab30125 199%files -f %{name}.lang
f836a189 200%defattr(644,root,root,755)
32f28323 201%doc AUTHORS ChangeLog docs/manual/Gammu.htm
e4c35d43 202%attr(755,root,root) %{_bindir}/%{name}
836fe380 203%attr(755,root,root) %{_bindir}/%{name}-detect
6baa676b 204%attr(755,root,root) %{_bindir}/jadmaker
a3c0577f 205%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gammurc
a3c0577f 206%{_examplesdir}/%{name}-%{version}
c103f6ba 207%{_datadir}/gammu
40579025 208%{_mandir}/man[157]/*
e9da6d17 209
202fe725 210%files smsd
1bb8440d 211%defattr(644,root,root,755)
202fe725 212%doc docs/sql/*.sql
213%attr(755,root,root) %{_bindir}/gammu-smsd
214%attr(755,root,root) %{_bindir}/gammu-smsd-inject
215%attr(755,root,root) %{_bindir}/gammu-smsd-monitor
216%attr(754,root,root) /etc/rc.d/init.d/%{name}-smsd
1bb8440d 217%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name}-smsd
202fe725 218%{_sysconfdir}/%{name}-smsd
e2beacc8 219/usr/lib/tmpfiles.d/%{name}.conf
202fe725 220%attr(750,root,gammu-smsd) %{_varrun}/%{name}-smsd
221%attr(750,gammu-smsd,gammu-smsd) %{_sharedstatedir}/%{name}-smsd
222
59428bc4 223%files libs -f libgammu.lang
2585acb8 224%defattr(644,root,root,755)
a860cb8f 225%attr(755,root,root) %{_libdir}/libGammu.so.*.*
6baa676b 226%attr(755,root,root) %{_libdir}/libgsmsd.so.*.*.*.*
c103f6ba
AF
227%attr(755,root,root) %ghost %{_libdir}/libgsmsd.so.7
228%attr(755,root,root) %ghost %{_libdir}/libGammu.so.7
3b248c9a 229
e9da6d17 230%files devel
231%defattr(644,root,root,755)
35238559 232%attr(755,root,root) %{_bindir}/%{name}-config
a860cb8f 233%attr(755,root,root) %{_libdir}/libGammu.so
6baa676b 234%attr(755,root,root) %{_libdir}/libgsmsd.so
e9da6d17 235%{_includedir}/*
a860cb8f 236%{_pkgconfigdir}/gammu.pc
6baa676b 237%{_pkgconfigdir}/gammu-smsd.pc
e9da6d17 238
e9da6d17 239%files static
2585acb8 240%defattr(644,root,root,755)
6baa676b 241%{_libdir}/libgsmsd.a
a860cb8f 242%{_libdir}/libGammu.a
1b61967a
BZ
243
244%files -n bash-completion-gammu
245%defattr(644,root,root,755)
fdd494c7 246%{bash_compdir}/gammu
This page took 0.116798 seconds and 4 git commands to generate.