]> git.pld-linux.org Git - packages/gammu.git/blame - gammu.spec
- up to 1.20.0
[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
fa35f9cf 4Version: 1.20.0
6c9c5679 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
fa35f9cf 10# Source0-md5: e39930e94babd42731e20fc7b33ed12e
e721ad3e 11Patch0: %{name}-etc_dir.patch
a331b5e4 12URL: http://www.gammu.org/
54d86c80 13BuildRequires: bluez-libs-devel
281fa2ca 14BuildRequires: cmake >= 2.4.6
9ab30125 15BuildRequires: gettext-devel
101d1802 16BuildRequires: mysql-devel
736b1f60 17BuildRequires: postgresql-devel
0f8fbb9c 18BuildRequires: rpmbuild(macros) >= 1.293
3b248c9a 19Requires: %{name}-libs = %{epoch}:%{version}-%{release}
e4c35d43
PG
20Provides: mygnokii2
21Obsoletes: mygnokii2
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 libs
736b1f60 44Summary: Gammu library
45Summary(pl.UTF-8): Biblioteka Gammu
46Group: Libraries
e9da6d17 47
48%description libs
49Gammu tool suite library.
50
35238559 51%description libs -l pl.UTF-8
e9da6d17 52Biblioteka zestawu narzędzi dla telefonów komórkowych Gammu.
53
3b248c9a
JB
54%package devel
55Summary: Header files for Gammu tool suite for mobile phones
56Summary(pl.UTF-8): Pliki nagłówkowe zestawu narzędzi dla telefonów komórkowych Gammu
57Group: Development/Libraries
58Requires: %{name}-libs = %{epoch}:%{version}-%{release}
a860cb8f 59Requires: bluez-libs-devel
3b248c9a
JB
60
61%description devel
62Header files for Gammu tool suite for mobile phones.
63
64%description devel -l pl.UTF-8
65Pliki nagłówkowe zestawu narzędzi dla telefonów komórkowych Gammu.
66
e9da6d17 67%package static
736b1f60 68Summary: Gammu static library
69Summary(pl.UTF-8): Biblioteka statyczna Gammu
70Group: Development/Libraries
3b248c9a 71Requires: %{name}-devel = %{epoch}:%{version}-%{release}
e9da6d17 72
73%description static
74Gammu static library.
75
35238559 76%description static -l pl.UTF-8
e9da6d17 77Biblioteka statyczna zestawu narzędzi dla telefonów komórkowych Gammu.
78
f836a189 79%prep
44bab158 80%setup -q
ecc2fee0 81#%patch0 -p1
f836a189 82
83%build
35238559
TP
84mkdir -p build
85cd build
86%cmake ../ \
87 -DCMAKE_INSTALL_PREFIX="%{_prefix}" \
a860cb8f 88 -DCMAKE_VERBOSE_MAKEFILE=1 \
35238559 89 -DENABLE_SHARED=OFF \
5e447162
MB
90 -DINSTALL_LIB_DIR=%{_lib} \
91 -DINSTALL_LIBDATA_DIR=%{_libdir} \
48c85e31 92 %{?debug:-DCMAKE_BUILD_TYPE="Debug"}
36390489 93%{__make}
35238559
TP
94mv common/libGammu.a ..
95%cmake ../ \
96 -DCMAKE_INSTALL_PREFIX="%{_prefix}" \
a860cb8f 97 -DCMAKE_VERBOSE_MAKEFILE=1 \
35238559 98 -DENABLE_SHARED=ON \
5e447162
MB
99 -DINSTALL_LIB_DIR=%{_lib} \
100 -DINSTALL_LIBDATA_DIR=%{_libdir} \
32e1a0a0 101 %{?debug:-DCMAKE_BUILD_TYPE="Debug"}
36390489 102%{__make}
f836a189 103
104%install
105rm -rf $RPM_BUILD_ROOT
35238559 106install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_examplesdir}/%{name}-%{version}}
3b248c9a
JB
107
108%{__make} -C build install \
35238559 109 DESTDIR=$RPM_BUILD_ROOT
35238559 110
a683d7d8 111install docs/examples/config/gammurc $RPM_BUILD_ROOT%{_sysconfdir}
a3c0577f 112cp -r docs/{examples,develop} $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
35238559 113install libGammu.a $RPM_BUILD_ROOT%{_libdir}
9ab30125 114%find_lang %{name}
11342faf 115
116rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name}
f836a189 117
5f592fd2
JB
118# for rpm autodeps
119chmod 755 $RPM_BUILD_ROOT%{_libdir}/lib*.so*
120
f836a189 121%clean
122rm -rf $RPM_BUILD_ROOT
123
a860cb8f
JB
124%post libs -p /sbin/ldconfig
125%postun libs -p /sbin/ldconfig
11342faf 126
9ab30125 127%files -f %{name}.lang
f836a189 128%defattr(644,root,root,755)
fd27f926 129%doc ChangeLog docs/user/gammu.htm docs/user/readme.htm other/bash README SUPPORTERS
9ab30125 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
a3c0577f 133%{_examplesdir}/%{name}-%{version}
11342faf 134%{_mandir}/man1/*
e9da6d17 135
3b248c9a
JB
136%files libs
137%defattr(755,root,root,755)
a860cb8f 138%attr(755,root,root) %{_libdir}/libGammu.so.*.*
f5bd15f0 139%attr(755,root,root) %ghost %{_libdir}/libGammu.so.3
3b248c9a 140
e9da6d17 141%files devel
142%defattr(644,root,root,755)
35238559 143%attr(755,root,root) %{_bindir}/%{name}-config
a860cb8f 144%attr(755,root,root) %{_libdir}/libGammu.so
e9da6d17 145%{_includedir}/*
a860cb8f 146%{_pkgconfigdir}/gammu.pc
e9da6d17 147
e9da6d17 148%files static
149%defattr(755,root,root,755)
a860cb8f 150%{_libdir}/libGammu.a
This page took 0.099938 seconds and 4 git commands to generate.