]> git.pld-linux.org Git - packages/gammu.git/blob - gammu.spec
- shared linking with libGammu
[packages/gammu.git] / gammu.spec
1 Summary:        Linux/Unix tool suite for Nokia mobile phones
2 Summary(pl):    Linuksowy/uniksowy zestaw narzêdzi dla telefonów komórkowych Nokia
3 Name:           gammu
4 Version:        1.00.0
5 Release:        1
6 Epoch:          1
7 License:        GPL v2
8 Group:          Applications/Communications
9 Source0:        http://www.mwiacek.com/zips/gsm/gammu/stable/1_0x/%{name}-%{version}.tar.gz
10 # Source0-md5:  9d921f9c5b6f3b8b76a69720e2d9f173
11 Patch0:         %{name}-etc_dir.patch
12 Patch1:         %{name}-no_nss.patch
13 URL:            http://www.mwiacek.com/gsm/soft/gammu.html
14 BuildRequires:  autoconf
15 BuildRequires:  bluez-libs-devel
16 BuildRequires:  mysql-devel
17 Provides:       mygnokii2
18 Obsoletes:      mygnokii2
19 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21 %description
22 Gammu (formerly known as MyGnokii2) is cellular manager for various
23 mobile phones and modems. It currently supports Nokia 3210, 33xx,
24 3410, 3510, 51xx, 5210, 5510, 61xx, 62xx, 63xx, 6510, 7110, 82xx,
25 8310, 9110, and 9210, and AT devices (such as Siemens, Alcatel,
26 WaveCom, IPAQ, and other). It has a command line version with many
27 functions for ringtones, phonebook, SMS, logos, WAP, date/time, alarm,
28 calls, etc. It can also make full backups and restore them.
29
30 %description -l pl
31 Gammu (poprzednio znany jako MyGnokii2) jest narzêdziem do zarz±dzania
32 ró¿nymi telefonami komórkowymi i modemami. Aktualnie obs³uguje Nokie
33 3210, 33xx, 3410, 51xx, 5210, 5510, 61xx, 62xx, 63xx, 6510, 7110,
34 82xx, 8310, 9110 i 3210 oraz urz±dzenia AT (takie jak Siemens,
35 Alcatel, WaveCom, IPAQ i inne). Ma wersjê dzia³aj±c± z linii poleceñ z
36 wieloma funkcjami do dzwonków, ksi±¿ki telefonicznej, SMS-ów, logo,
37 WAP, daty/czasu, budzika, dzwonienia itp. Mo¿e tak¿e wykonywaæ pe³ne
38 kopie zapasowe danych i odtwarzaæ je.
39
40 %prep
41 %setup -q
42 #%patch0 -p1
43 %patch1
44
45 %build
46 cd cfg/autoconf
47 %{__autoconf}
48 %configure      \
49         --enable-cb                     \
50         --enable-7110incoming           \
51         --enable-6210calendar           
52 cd ../..        
53 %{__make} shared
54
55 %install
56 rm -rf $RPM_BUILD_ROOT
57 install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_examplesdir}/%{name}}
58 %{__make} installshared \
59         DESTDIR=$RPM_BUILD_ROOT \
60         prefix=%{_prefix} \
61         INSTALL_MAN_DIR=%{_mandir}/man1 \
62         FIND=/usr/bin/find
63
64 install docs/examples/config/gammurc $RPM_BUILD_ROOT%{_sysconfdir}
65 cp -r docs/{examples,develop} $RPM_BUILD_ROOT%{_examplesdir}/%{name}
66
67 rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name}
68 # anybody feels like developing gammu-based apps?
69 rm -rf $RPM_BUILD_ROOT{%{_includedir},%{_pkgconfigdir},%{_libdir}/*.{so,a}}
70
71 %clean
72 rm -rf $RPM_BUILD_ROOT
73
74 %post   -p /sbin/ldconfig
75 %postun -p /sbin/ldconfig
76
77 %files
78 %defattr(644,root,root,755)
79 %doc changelog docs/* readme.txt
80 %attr(755,root,root) %{_bindir}/%{name}
81 %attr(755,root,root) %{_libdir}/*.so.*
82 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/gammurc
83 %{_datadir}/%{name}
84 %{_examplesdir}/%{name}
85 %{_mandir}/man1/*
This page took 0.054898 seconds and 3 git commands to generate.