]> git.pld-linux.org Git - packages/gammu.git/blame - gammu.spec
- updated to 1.10.3
[packages/gammu.git] / gammu.spec
CommitLineData
e9da6d17 1Summary: GNU tool suite for mobile phones
2Summary(pl.UTF-8): Zestaw narzędzi GNU dla telefonów komórkowych
e4c35d43 3Name: gammu
e9da6d17 4Version: 1.10.0
a331b5e4 5Release: 1
f836a189 6Epoch: 1
e4c35d43 7License: GPL v2
f836a189 8Group: Applications/Communications
736b1f60 9Source0: http://dl.cihar.com/gammu/releases/%{name}-%{version}.tar.bz2
e9da6d17 10# Source0-md5: 05b623c30cfd69ea97f0bc054b19928d
e721ad3e 11Patch0: %{name}-etc_dir.patch
b04002ad 12Patch1: %{name}-no_nss.patch
e9da6d17 13Patch2: %{name}-libpq_dir.patch
a331b5e4 14URL: http://www.gammu.org/
f836a189 15BuildRequires: autoconf
54d86c80 16BuildRequires: bluez-libs-devel
101d1802 17BuildRequires: mysql-devel
736b1f60 18BuildRequires: postgresql-devel
e4c35d43
PG
19Provides: mygnokii2
20Obsoletes: mygnokii2
736b1f60 21Requires: %{name}-libs = %{epoch}:%{version}-%{release}
f836a189 22BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24%description
e4c35d43 25Gammu (formerly known as MyGnokii2) is cellular manager for various
99e7d737
JB
26mobile phones and modems. It currently supports Nokia 3210, 33xx,
273410, 3510, 51xx, 5210, 5510, 61xx, 62xx, 63xx, 6510, 7110, 82xx,
288310, 9110, and 9210, and AT devices (such as Siemens, Alcatel,
29WaveCom, IPAQ, and other). It has a command line version with many
30functions for ringtones, phonebook, SMS, logos, WAP, date/time, alarm,
31calls, etc. It can also make full backups and restore them.
32
1b85dc8f
JR
33%description -l pl.UTF-8
34Gammu (poprzednio znany jako MyGnokii2) jest narzędziem do zarządzania
35różnymi telefonami komórkowymi i modemami. Aktualnie obsługuje Nokie
99e7d737 363210, 33xx, 3410, 51xx, 5210, 5510, 61xx, 62xx, 63xx, 6510, 7110,
1b85dc8f
JR
3782xx, 8310, 9110 i 3210 oraz urządzenia AT (takie jak Siemens,
38Alcatel, WaveCom, IPAQ i inne). Ma wersję działającą z linii poleceń z
39wieloma funkcjami do dzwonków, książki telefonicznej, SMS-ów, logo,
40WAP, daty/czasu, budzika, dzwonienia itp. Może także wykonywać pełne
41kopie zapasowe danych i odtwarzać je.
f836a189 42
e9da6d17 43%package devel
44Summary: Header files for Gammu tool suite for mobile phones
45Summary(pl.UTF-8): Pliki nagłówkowe zestawu narzędzi dla telefonów komórkowych Gammu
46Group: Development/Libraries
47Requires: %{name} = %{epoch}:%{version}-%{release}
48
49%description devel
50Header files for Gammu tool suite for mobile phones.
51
52%description devel -l pl.UTF-8
53Pliki nagłówkowe zestawu narzędzi dla telefonów komórkowych Gammu.
54
55%package libs
736b1f60 56Summary: Gammu library
57Summary(pl.UTF-8): Biblioteka Gammu
58Group: Libraries
e9da6d17 59
60%description libs
61Gammu tool suite library.
62
63%description devel -l pl.UTF-8
64Biblioteka zestawu narzędzi dla telefonów komórkowych Gammu.
65
66%package static
736b1f60 67Summary: Gammu static library
68Summary(pl.UTF-8): Biblioteka statyczna Gammu
69Group: Development/Libraries
70Requires: %{name}-libs = %{epoch}:%{version}-%{release}
e9da6d17 71
72%description static
73Gammu static library.
74
75%description devel -l pl.UTF-8
76Biblioteka statyczna zestawu narzędzi dla telefonów komórkowych Gammu.
77
f836a189 78%prep
44bab158 79%setup -q
ecc2fee0 80#%patch0 -p1
a331b5e4 81%patch1 -p1
e9da6d17 82%patch2 -p1
83cp -f VERSION cfg/autoconf/VERSION
59bcff30 84mv docs/docs/english/gammu.1 .
f836a189 85
86%build
48238d84 87cd cfg/autoconf
a683d7d8 88%{__autoconf}
a9f9515d
MC
89%configure \
90 --disable-static \
893e13a0 91 --without-rpmdir \
a9f9515d
MC
92 --enable-cb \
93 --enable-7110incoming \
59bcff30
ER
94 --enable-6210calendar \
95 --with-localedir=%{_datadir}/%{name}
5846ecbf 96cd ../..
11342faf 97%{__make} shared
f836a189 98
99%install
100rm -rf $RPM_BUILD_ROOT
59bcff30 101install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_examplesdir}/%{name}-%{version},%{_datadir}/%{name}}
e9da6d17 102%{__make} installlibonly \
11342faf 103 DESTDIR=$RPM_BUILD_ROOT \
104 prefix=%{_prefix} \
9a2b0957 105 INSTALL_LIB_DIR=%{_libdir} \
11342faf 106 INSTALL_MAN_DIR=%{_mandir}/man1 \
59bcff30 107 FIND=find
f836a189 108
59bcff30 109install -D gammu.1 $RPM_BUILD_ROOT%{_mandir}/man1/%{name}.1
a683d7d8 110install docs/examples/config/gammurc $RPM_BUILD_ROOT%{_sysconfdir}
e9da6d17 111install docs/docs/locale/*.txt $RPM_BUILD_ROOT%{_datadir}/%{name}
a3c0577f 112cp -r docs/{examples,develop} $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
e9da6d17 113cd $RPM_BUILD_ROOT%{_libdir}
114ln -sf libGammu.so.1.0 libGammu.so
11342faf 115
116rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name}
f836a189 117
118%clean
119rm -rf $RPM_BUILD_ROOT
120
e9da6d17 121%if %{with ldconfig}
122%post -p /sbin/ldconfig
123%postun -p /sbin/ldconfig
124%endif
11342faf 125
f836a189 126%files
127%defattr(644,root,root,755)
e9da6d17 128%doc ChangeLog docs/docs/english/gammu.htm other/bash README
59bcff30 129%doc %lang(it) docs/docs/italian
e4c35d43 130%attr(755,root,root) %{_bindir}/%{name}
a3c0577f 131%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gammurc
59bcff30 132%dir %{_datadir}/%{name}
e9da6d17 133%lang(cs) %{_datadir}/%{name}/gammu_cs.txt
134%lang(de) %{_datadir}/%{name}/gammu_de.txt
135%lang(es) %{_datadir}/%{name}/gammu_es.txt
136%lang(it) %{_datadir}/%{name}/gammu_it.txt
137%lang(pl) %{_datadir}/%{name}/gammu_pl.txt
138%lang(ru) %{_datadir}/%{name}/gammu_ru.txt
139%{_datadir}/%{name}/gammu_us.txt
a3c0577f 140%{_examplesdir}/%{name}-%{version}
11342faf 141%{_mandir}/man1/*
e9da6d17 142
143%files devel
144%defattr(644,root,root,755)
145%{_libdir}/*.so
146%{_includedir}/*
147%{_pkgconfigdir}/*
148
149%files libs
150%defattr(755,root,root,755)
151%{_libdir}/*.so.*
152
153%files static
154%defattr(755,root,root,755)
155%{_libdir}/*.a
This page took 0.070443 seconds and 4 git commands to generate.