]> git.pld-linux.org Git - packages/gammu.git/blame - gammu.spec
- up to 1.24.92
[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
100
101%description -n bash-completion-gammu
102This package provides bash-completion for gammu.
103
104%description -n bash-completion-gammu -l pl.UTF-8
105Pakiet ten dostarcza bashowe uzupełnianie nazw dla gammu.
106
f836a189 107%prep
44bab158 108%setup -q
8f45ba1e 109%patch0 -p1
f836a189 110
111%build
35238559
TP
112mkdir -p build
113cd build
2314bcd8 114%cmake .. \
35238559 115 -DCMAKE_INSTALL_PREFIX="%{_prefix}" \
2314bcd8 116 -DCMAKE_VERBOSE_MAKEFILE=ON \
8f45ba1e 117 -DBUILD_SHARED_LIBS=OFF \
5e447162
MB
118 -DINSTALL_LIB_DIR=%{_lib} \
119 -DINSTALL_LIBDATA_DIR=%{_libdir} \
8f45ba1e 120 %{?debug:-DCMAKE_BUILD_TYPE="Debug"}
36390489 121%{__make}
6baa676b 122mv libgammu/libGammu.a ..
123mv smsd/libgsmsd.a ..
2314bcd8 124%cmake .. \
35238559 125 -DCMAKE_INSTALL_PREFIX="%{_prefix}" \
2314bcd8 126 -DCMAKE_VERBOSE_MAKEFILE=ON \
8f45ba1e 127 -DBUILD_SHARED_LIBS=ON \
5e447162
MB
128 -DINSTALL_LIB_DIR=%{_lib} \
129 -DINSTALL_LIBDATA_DIR=%{_libdir} \
8f45ba1e 130 %{?debug:-DCMAKE_BUILD_TYPE="Debug"}
36390489 131%{__make}
f836a189 132
133%install
134rm -rf $RPM_BUILD_ROOT
35238559 135install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_examplesdir}/%{name}-%{version}}
3b248c9a
JB
136
137%{__make} -C build install \
35238559 138 DESTDIR=$RPM_BUILD_ROOT
35238559 139
6baa676b 140install docs/config/gammurc $RPM_BUILD_ROOT%{_sysconfdir}
1b61967a 141cp -r docs/develop $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
35238559 142install libGammu.a $RPM_BUILD_ROOT%{_libdir}
6baa676b 143install libgsmsd.a $RPM_BUILD_ROOT%{_libdir}
144
9ab30125 145%find_lang %{name}
11342faf 146
147rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name}
f836a189 148
5f592fd2
JB
149# for rpm autodeps
150chmod 755 $RPM_BUILD_ROOT%{_libdir}/lib*.so*
151
f836a189 152%clean
153rm -rf $RPM_BUILD_ROOT
154
a860cb8f
JB
155%post libs -p /sbin/ldconfig
156%postun libs -p /sbin/ldconfig
11342faf 157
9ab30125 158%files -f %{name}.lang
f836a189 159%defattr(644,root,root,755)
6baa676b 160%doc AUTHORS BUGS ChangeLog docs/user/gammu.html docs/user/readme.html README README.Python SUPPORTERS
9ab30125 161%doc %lang(it) docs/user/gammu.it.txt docs/user/readme.it.txt
e4c35d43 162%attr(755,root,root) %{_bindir}/%{name}
6baa676b 163%attr(755,root,root) %{_bindir}/gammu-smsd
164%attr(755,root,root) %{_bindir}/gammu-smsd-inject
165%attr(755,root,root) %{_bindir}/gammu-smsd-monitor
166%attr(755,root,root) %{_bindir}/jadmaker
a3c0577f 167%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gammurc
a3c0577f 168%{_examplesdir}/%{name}-%{version}
40579025
KK
169%{_mandir}/man[157]/*
170%lang(cs) %{_mandir}/cs/man[157]/*
e9da6d17 171
3b248c9a
JB
172%files libs
173%defattr(755,root,root,755)
a860cb8f 174%attr(755,root,root) %{_libdir}/libGammu.so.*.*
6baa676b 175%attr(755,root,root) %{_libdir}/libgsmsd.so.*.*.*.*
176%attr(755,root,root) %ghost %{_libdir}/libgsmsd.so.6
177%attr(755,root,root) %ghost %{_libdir}/libGammu.so.6
3b248c9a 178
e9da6d17 179%files devel
180%defattr(644,root,root,755)
35238559 181%attr(755,root,root) %{_bindir}/%{name}-config
a860cb8f 182%attr(755,root,root) %{_libdir}/libGammu.so
6baa676b 183%attr(755,root,root) %{_libdir}/libgsmsd.so
e9da6d17 184%{_includedir}/*
6baa676b 185%dir %{py_sitedir}/gammu/
186%attr(755,root,root) %{py_sitedir}/gammu/_gammu.so
a860cb8f 187%{_pkgconfigdir}/gammu.pc
6baa676b 188%{_pkgconfigdir}/gammu-smsd.pc
e9da6d17 189
3ca020a3 190%files -n python-gammu
191%defattr(644,root,root,755)
192%dir %{py_sitedir}/gammu
193%attr(755,root,root) %{py_sitedir}/gammu/*.so
194%{py_sitedir}/gammu/*.py
195
e9da6d17 196%files static
197%defattr(755,root,root,755)
6baa676b 198%{_libdir}/libgsmsd.a
a860cb8f 199%{_libdir}/libGammu.a
1b61967a
BZ
200
201%files -n bash-completion-gammu
202%defattr(644,root,root,755)
203%{_sysconfdir}/bash_completion.d/gammu
This page took 0.1489 seconds and 4 git commands to generate.