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