]> git.pld-linux.org Git - packages/gammu.git/blame - gammu.spec
- upgraded to 1.11.92,
[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
35238559 4Version: 1.11.92
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
35238559 10# Source0-md5: 01f34c88bd2559f243ae51905fd9fdc3
e721ad3e 11Patch0: %{name}-etc_dir.patch
b04002ad 12Patch1: %{name}-no_nss.patch
a331b5e4 13URL: http://www.gammu.org/
54d86c80 14BuildRequires: bluez-libs-devel
35238559 15BuildRequires: cmake
9ab30125 16BuildRequires: gettext-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
35238559 63%description libs -l pl.UTF-8
e9da6d17 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
35238559 75%description static -l pl.UTF-8
e9da6d17 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
f836a189 82
83%build
35238559
TP
84mkdir -p build
85cd build
86%cmake ../ \
87 -DCMAKE_INSTALL_PREFIX="%{_prefix}" \
88 -DENABLE_SHARED=OFF \
89 %{?debug:-DCMAKE_BUILD_TYPE="Debug"}
90%{__make}
91mv common/libGammu.a ..
92%cmake ../ \
93 -DCMAKE_INSTALL_PREFIX="%{_prefix}" \
94 -DENABLE_SHARED=ON \
95 %{?debug:-DCMAKE_BUILD_TYPE="Debug"}
96%{__make}
f836a189 97
98%install
99rm -rf $RPM_BUILD_ROOT
35238559
TP
100install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_examplesdir}/%{name}-%{version}}
101cd build
102%{__make} install \
103 DESTDIR=$RPM_BUILD_ROOT
104cd ..
105
a683d7d8 106install docs/examples/config/gammurc $RPM_BUILD_ROOT%{_sysconfdir}
a3c0577f 107cp -r docs/{examples,develop} $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
35238559 108install libGammu.a $RPM_BUILD_ROOT%{_libdir}
9ab30125 109%find_lang %{name}
e9da6d17 110cd $RPM_BUILD_ROOT%{_libdir}
35238559 111ln -sf libGammu.so.1.11.92 libGammu.so
11342faf 112
113rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name}
f836a189 114
115%clean
116rm -rf $RPM_BUILD_ROOT
117
e9da6d17 118%if %{with ldconfig}
119%post -p /sbin/ldconfig
120%postun -p /sbin/ldconfig
121%endif
11342faf 122
9ab30125 123%files -f %{name}.lang
f836a189 124%defattr(644,root,root,755)
fd27f926 125%doc ChangeLog docs/user/gammu.htm docs/user/readme.htm other/bash README SUPPORTERS
9ab30125 126%doc %lang(it) docs/user/gammu.it.txt docs/user/readme.it.txt
e4c35d43 127%attr(755,root,root) %{_bindir}/%{name}
a3c0577f 128%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gammurc
a3c0577f 129%{_examplesdir}/%{name}-%{version}
11342faf 130%{_mandir}/man1/*
e9da6d17 131
132%files devel
133%defattr(644,root,root,755)
35238559 134%attr(755,root,root) %{_bindir}/%{name}-config
e9da6d17 135%{_libdir}/*.so
136%{_includedir}/*
137%{_pkgconfigdir}/*
138
139%files libs
140%defattr(755,root,root,755)
141%{_libdir}/*.so.*
142
143%files static
144%defattr(755,root,root,755)
145%{_libdir}/*.a
This page took 0.112119 seconds and 4 git commands to generate.