]> git.pld-linux.org Git - packages/gammu.git/blame - gammu.spec
- bash-completion-gammu R: gammu
[packages/gammu.git] / gammu.spec
CommitLineData
bc4e3c70
TP
1Summary: Tool suite for mobile phones
2Summary(pl.UTF-8): Zestaw narzędzi do telefonów komórkowych
e4c35d43 3Name: gammu
1b61967a 4Version: 1.24.92
40579025 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
1b61967a 10# Source0-md5: 2bd90a7f7b0e51f022357af8dffc4bf6
e721ad3e 11Patch0: %{name}-etc_dir.patch
a331b5e4 12URL: http://www.gammu.org/
54d86c80 13BuildRequires: bluez-libs-devel
281fa2ca 14BuildRequires: cmake >= 2.4.6
8f45ba1e 15BuildRequires: curl-devel
9ab30125 16BuildRequires: gettext-devel
101d1802 17BuildRequires: mysql-devel
736b1f60 18BuildRequires: postgresql-devel
3ca020a3 19BuildRequires: python-devel >= 1:2.5
0f8fbb9c 20BuildRequires: rpmbuild(macros) >= 1.293
3ca020a3 21BuildRequires: rpm-pythonprov
3b248c9a 22Requires: %{name}-libs = %{epoch}:%{version}-%{release}
e4c35d43
PG
23Provides: mygnokii2
24Obsoletes: mygnokii2
f836a189 25BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27%description
e4c35d43 28Gammu (formerly known as MyGnokii2) is cellular manager for various
99e7d737
JB
29mobile phones and modems. It currently supports Nokia 3210, 33xx,
303410, 3510, 51xx, 5210, 5510, 61xx, 62xx, 63xx, 6510, 7110, 82xx,
318310, 9110, and 9210, and AT devices (such as Siemens, Alcatel,
32WaveCom, IPAQ, and other). It has a command line version with many
33functions for ringtones, phonebook, SMS, logos, WAP, date/time, alarm,
34calls, etc. It can also make full backups and restore them.
35
1b85dc8f
JR
36%description -l pl.UTF-8
37Gammu (poprzednio znany jako MyGnokii2) jest narzędziem do zarządzania
38różnymi telefonami komórkowymi i modemami. Aktualnie obsługuje Nokie
99e7d737 393210, 33xx, 3410, 51xx, 5210, 5510, 61xx, 62xx, 63xx, 6510, 7110,
1b85dc8f
JR
4082xx, 8310, 9110 i 3210 oraz urządzenia AT (takie jak Siemens,
41Alcatel, WaveCom, IPAQ i inne). Ma wersję działającą z linii poleceń z
42wieloma funkcjami do dzwonków, książki telefonicznej, SMS-ów, logo,
43WAP, daty/czasu, budzika, dzwonienia itp. Może także wykonywać pełne
44kopie zapasowe danych i odtwarzać je.
f836a189 45
e9da6d17 46%package libs
736b1f60 47Summary: Gammu library
48Summary(pl.UTF-8): Biblioteka Gammu
49Group: Libraries
e9da6d17 50
51%description libs
52Gammu tool suite library.
53
35238559 54%description libs -l pl.UTF-8
e9da6d17 55Biblioteka zestawu narzędzi dla telefonów komórkowych Gammu.
56
3b248c9a
JB
57%package devel
58Summary: Header files for Gammu tool suite for mobile phones
59Summary(pl.UTF-8): Pliki nagłówkowe zestawu narzędzi dla telefonów komórkowych Gammu
60Group: Development/Libraries
61Requires: %{name}-libs = %{epoch}:%{version}-%{release}
a860cb8f 62Requires: bluez-libs-devel
3b248c9a
JB
63
64%description devel
65Header files for Gammu tool suite for mobile phones.
66
67%description devel -l pl.UTF-8
68Pliki nagłówkowe zestawu narzędzi dla telefonów komórkowych Gammu.
69
3ca020a3 70%package -n python-gammu
71Summary: Python bingings for Gammu library
72Summary(pl.UTF-8): Wiązania języka Python dla biblioteki Gammu
73Group: Development/Languages/Python
40579025 74Requires: %{name}-libs = %{epoch}:%{version}-%{release}
3ca020a3 75%pyrequires_eq python-modules
3ca020a3 76
77%description -n python-gammu
78Python bingings for Gammu library.
79
80%description -l pl.UTF-8 -n python-gammu
81Wiązania języka Python dla biblioteki Gammu.
82
e9da6d17 83%package static
736b1f60 84Summary: Gammu static library
85Summary(pl.UTF-8): Biblioteka statyczna Gammu
86Group: Development/Libraries
3b248c9a 87Requires: %{name}-devel = %{epoch}:%{version}-%{release}
e9da6d17 88
89%description static
90Gammu static library.
91
35238559 92%description static -l pl.UTF-8
e9da6d17 93Biblioteka statyczna zestawu narzędzi dla telefonów komórkowych Gammu.
94
1b61967a
BZ
95%package -n bash-completion-gammu
96Summary: bash-completion for gammu
97Summary(pl.UTF-8): bashowe uzupełnianie nazw dla gammu
98Group: Applications/Shells
99Requires: bash-completion
5e34605d 100Requires: %{name} = %{epoch}:%{version}-%{release}
1b61967a
BZ
101
102%description -n bash-completion-gammu
103This package provides bash-completion for gammu.
104
105%description -n bash-completion-gammu -l pl.UTF-8
106Pakiet ten dostarcza bashowe uzupełnianie nazw dla gammu.
107
f836a189 108%prep
44bab158 109%setup -q
8f45ba1e 110%patch0 -p1
f836a189 111
112%build
35238559
TP
113mkdir -p build
114cd build
2314bcd8 115%cmake .. \
35238559 116 -DCMAKE_INSTALL_PREFIX="%{_prefix}" \
2314bcd8 117 -DCMAKE_VERBOSE_MAKEFILE=ON \
8f45ba1e 118 -DBUILD_SHARED_LIBS=OFF \
5e447162
MB
119 -DINSTALL_LIB_DIR=%{_lib} \
120 -DINSTALL_LIBDATA_DIR=%{_libdir} \
8f45ba1e 121 %{?debug:-DCMAKE_BUILD_TYPE="Debug"}
36390489 122%{__make}
6baa676b 123mv libgammu/libGammu.a ..
124mv smsd/libgsmsd.a ..
2314bcd8 125%cmake .. \
35238559 126 -DCMAKE_INSTALL_PREFIX="%{_prefix}" \
2314bcd8 127 -DCMAKE_VERBOSE_MAKEFILE=ON \
8f45ba1e 128 -DBUILD_SHARED_LIBS=ON \
5e447162
MB
129 -DINSTALL_LIB_DIR=%{_lib} \
130 -DINSTALL_LIBDATA_DIR=%{_libdir} \
8f45ba1e 131 %{?debug:-DCMAKE_BUILD_TYPE="Debug"}
36390489 132%{__make}
f836a189 133
134%install
135rm -rf $RPM_BUILD_ROOT
35238559 136install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_examplesdir}/%{name}-%{version}}
3b248c9a
JB
137
138%{__make} -C build install \
35238559 139 DESTDIR=$RPM_BUILD_ROOT
35238559 140
6baa676b 141install docs/config/gammurc $RPM_BUILD_ROOT%{_sysconfdir}
1b61967a 142cp -r docs/develop $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
35238559 143install libGammu.a $RPM_BUILD_ROOT%{_libdir}
6baa676b 144install libgsmsd.a $RPM_BUILD_ROOT%{_libdir}
145
9ab30125 146%find_lang %{name}
11342faf 147
148rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name}
f836a189 149
5f592fd2
JB
150# for rpm autodeps
151chmod 755 $RPM_BUILD_ROOT%{_libdir}/lib*.so*
152
f836a189 153%clean
154rm -rf $RPM_BUILD_ROOT
155
a860cb8f
JB
156%post libs -p /sbin/ldconfig
157%postun libs -p /sbin/ldconfig
11342faf 158
9ab30125 159%files -f %{name}.lang
f836a189 160%defattr(644,root,root,755)
6baa676b 161%doc AUTHORS BUGS ChangeLog docs/user/gammu.html docs/user/readme.html README README.Python SUPPORTERS
9ab30125 162%doc %lang(it) docs/user/gammu.it.txt docs/user/readme.it.txt
e4c35d43 163%attr(755,root,root) %{_bindir}/%{name}
6baa676b 164%attr(755,root,root) %{_bindir}/gammu-smsd
165%attr(755,root,root) %{_bindir}/gammu-smsd-inject
166%attr(755,root,root) %{_bindir}/gammu-smsd-monitor
167%attr(755,root,root) %{_bindir}/jadmaker
a3c0577f 168%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gammurc
a3c0577f 169%{_examplesdir}/%{name}-%{version}
40579025
KK
170%{_mandir}/man[157]/*
171%lang(cs) %{_mandir}/cs/man[157]/*
e9da6d17 172
3b248c9a
JB
173%files libs
174%defattr(755,root,root,755)
a860cb8f 175%attr(755,root,root) %{_libdir}/libGammu.so.*.*
6baa676b 176%attr(755,root,root) %{_libdir}/libgsmsd.so.*.*.*.*
177%attr(755,root,root) %ghost %{_libdir}/libgsmsd.so.6
178%attr(755,root,root) %ghost %{_libdir}/libGammu.so.6
3b248c9a 179
e9da6d17 180%files devel
181%defattr(644,root,root,755)
35238559 182%attr(755,root,root) %{_bindir}/%{name}-config
a860cb8f 183%attr(755,root,root) %{_libdir}/libGammu.so
6baa676b 184%attr(755,root,root) %{_libdir}/libgsmsd.so
e9da6d17 185%{_includedir}/*
6baa676b 186%dir %{py_sitedir}/gammu/
187%attr(755,root,root) %{py_sitedir}/gammu/_gammu.so
a860cb8f 188%{_pkgconfigdir}/gammu.pc
6baa676b 189%{_pkgconfigdir}/gammu-smsd.pc
e9da6d17 190
3ca020a3 191%files -n python-gammu
192%defattr(644,root,root,755)
193%dir %{py_sitedir}/gammu
194%attr(755,root,root) %{py_sitedir}/gammu/*.so
195%{py_sitedir}/gammu/*.py
196
e9da6d17 197%files static
198%defattr(755,root,root,755)
6baa676b 199%{_libdir}/libgsmsd.a
a860cb8f 200%{_libdir}/libGammu.a
1b61967a
BZ
201
202%files -n bash-completion-gammu
203%defattr(644,root,root,755)
204%{_sysconfdir}/bash_completion.d/gammu
This page took 0.051921 seconds and 4 git commands to generate.