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