]> git.pld-linux.org Git - packages/gammu.git/blame - gammu.spec
- Added patch gammu-libpq_dir for Gammu
[packages/gammu.git] / gammu.spec
CommitLineData
f836a189 1Summary: Linux/Unix tool suite for Nokia mobile phones
687ae5df 2Summary(pl.UTF-8): Linuksowy/uniksowy zestaw narzędzi dla telefonów komórkowych Nokia
e4c35d43 3Name: gammu
16ee53a2 4Version: 1.07.00
a331b5e4 5Release: 1
f836a189 6Epoch: 1
e4c35d43 7License: GPL v2
f836a189 8Group: Applications/Communications
16ee53a2
AZ
9Source0: http://www.mwiacek.com/zips/gsm/gammu/stable/1_0x/%{name}-%{version}.tar.gz
10# Source0-md5: b706e35a6f003acc47f8c2bb71fa8036
e721ad3e 11Patch0: %{name}-etc_dir.patch
b04002ad 12Patch1: %{name}-no_nss.patch
a331b5e4 13URL: http://www.gammu.org/
f836a189 14BuildRequires: autoconf
54d86c80 15BuildRequires: bluez-libs-devel
101d1802 16BuildRequires: mysql-devel
e4c35d43
PG
17Provides: mygnokii2
18Obsoletes: mygnokii2
f836a189 19BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21%description
e4c35d43 22Gammu (formerly known as MyGnokii2) is cellular manager for various
99e7d737
JB
23mobile phones and modems. It currently supports Nokia 3210, 33xx,
243410, 3510, 51xx, 5210, 5510, 61xx, 62xx, 63xx, 6510, 7110, 82xx,
258310, 9110, and 9210, and AT devices (such as Siemens, Alcatel,
26WaveCom, IPAQ, and other). It has a command line version with many
27functions for ringtones, phonebook, SMS, logos, WAP, date/time, alarm,
28calls, etc. It can also make full backups and restore them.
29
1b85dc8f
JR
30%description -l pl.UTF-8
31Gammu (poprzednio znany jako MyGnokii2) jest narzędziem do zarządzania
32różnymi telefonami komórkowymi i modemami. Aktualnie obsługuje Nokie
99e7d737 333210, 33xx, 3410, 51xx, 5210, 5510, 61xx, 62xx, 63xx, 6510, 7110,
1b85dc8f
JR
3482xx, 8310, 9110 i 3210 oraz urządzenia AT (takie jak Siemens,
35Alcatel, WaveCom, IPAQ i inne). Ma wersję działającą z linii poleceń z
36wieloma funkcjami do dzwonków, książki telefonicznej, SMS-ów, logo,
37WAP, daty/czasu, budzika, dzwonienia itp. Może także wykonywać pełne
38kopie zapasowe danych i odtwarzać je.
f836a189 39
40%prep
44bab158 41%setup -q
ecc2fee0 42#%patch0 -p1
a331b5e4 43%patch1 -p1
59bcff30
ER
44cp -f version cfg/autoconf/VERSION
45mv docs/docs/english/gammu.1 .
f836a189 46
47%build
48238d84 48cd cfg/autoconf
a683d7d8 49%{__autoconf}
a9f9515d
MC
50%configure \
51 --disable-static \
893e13a0 52 --without-rpmdir \
a9f9515d
MC
53 --enable-cb \
54 --enable-7110incoming \
59bcff30
ER
55 --enable-6210calendar \
56 --with-localedir=%{_datadir}/%{name}
5846ecbf 57cd ../..
11342faf 58%{__make} shared
f836a189 59
60%install
61rm -rf $RPM_BUILD_ROOT
59bcff30
ER
62install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_examplesdir}/%{name}-%{version},%{_datadir}/%{name}}
63%{__make} installlocales installlibonly \
11342faf 64 DESTDIR=$RPM_BUILD_ROOT \
65 prefix=%{_prefix} \
9a2b0957 66 INSTALL_LIB_DIR=%{_libdir} \
11342faf 67 INSTALL_MAN_DIR=%{_mandir}/man1 \
59bcff30 68 FIND=find
f836a189 69
59bcff30 70install -D gammu.1 $RPM_BUILD_ROOT%{_mandir}/man1/%{name}.1
a683d7d8 71install docs/examples/config/gammurc $RPM_BUILD_ROOT%{_sysconfdir}
a3c0577f 72cp -r docs/{examples,develop} $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
11342faf 73
74rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name}
75# anybody feels like developing gammu-based apps?
a3c0577f 76rm -rf $RPM_BUILD_ROOT{%{_includedir},%{_libdir}/{*.{so,a},pkgconfig}}
f836a189 77
78%clean
79rm -rf $RPM_BUILD_ROOT
80
11342faf 81%post -p /sbin/ldconfig
82%postun -p /sbin/ldconfig
83
f836a189 84%files
85%defattr(644,root,root,755)
a331b5e4 86%doc changelog docs/docs/english/gammu.htm other/bash readme.txt
59bcff30 87%doc %lang(it) docs/docs/italian
e4c35d43 88%attr(755,root,root) %{_bindir}/%{name}
11342faf 89%attr(755,root,root) %{_libdir}/*.so.*
a3c0577f 90%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gammurc
59bcff30
ER
91%dir %{_datadir}/%{name}
92%lang(cs) %{_datadir}/gammu/gammu_cs.txt
93%lang(de) %{_datadir}/gammu/gammu_de.txt
94%lang(es) %{_datadir}/gammu/gammu_es.txt
95%lang(it) %{_datadir}/gammu/gammu_it.txt
96%lang(pl) %{_datadir}/gammu/gammu_pl.txt
97%lang(ru) %{_datadir}/gammu/gammu_ru.txt
98%{_datadir}/gammu/gammu_us.txt
a3c0577f 99%{_examplesdir}/%{name}-%{version}
11342faf 100%{_mandir}/man1/*
This page took 0.096574 seconds and 4 git commands to generate.