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