]> git.pld-linux.org Git - packages/gammu.git/blame - gammu.spec
- 1.27.95
[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
68824544 4Version: 1.27.95
a7e37c54 5Release: 0.beta.1
f836a189 6Epoch: 1
2585acb8 7License: GPL v2+
f836a189 8Group: Applications/Communications
736b1f60 9Source0: http://dl.cihar.com/gammu/releases/%{name}-%{version}.tar.bz2
68824544 10# Source0-md5: e835ec39c141a7bb4bd8cb5f238bc4ff
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
3ca020a3 20BuildRequires: rpm-pythonprov
2585acb8 21BuildRequires: rpmbuild(macros) >= 1.293
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
2585acb8 80%description -n python-gammu -l pl.UTF-8
3ca020a3 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
5e34605d 99Requires: %{name} = %{epoch}:%{version}-%{release}
2585acb8 100Requires: bash-completion
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}
59428bc4 147%find_lang libgammu
11342faf 148
149rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name}
f836a189 150
5f592fd2
JB
151# for rpm autodeps
152chmod 755 $RPM_BUILD_ROOT%{_libdir}/lib*.so*
153
f836a189 154%clean
155rm -rf $RPM_BUILD_ROOT
156
a860cb8f
JB
157%post libs -p /sbin/ldconfig
158%postun libs -p /sbin/ldconfig
11342faf 159
9ab30125 160%files -f %{name}.lang
f836a189 161%defattr(644,root,root,755)
f4f37b14 162%doc AUTHORS BUGS ChangeLog docs/user/gammu.html docs/user/gammu.html README README.Python
9ab30125 163%doc %lang(it) docs/user/gammu.it.txt docs/user/readme.it.txt
e4c35d43 164%attr(755,root,root) %{_bindir}/%{name}
6baa676b 165%attr(755,root,root) %{_bindir}/gammu-smsd
166%attr(755,root,root) %{_bindir}/gammu-smsd-inject
167%attr(755,root,root) %{_bindir}/gammu-smsd-monitor
168%attr(755,root,root) %{_bindir}/jadmaker
a3c0577f 169%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gammurc
a3c0577f 170%{_examplesdir}/%{name}-%{version}
40579025
KK
171%{_mandir}/man[157]/*
172%lang(cs) %{_mandir}/cs/man[157]/*
e9da6d17 173
59428bc4 174%files libs -f libgammu.lang
2585acb8 175%defattr(644,root,root,755)
a860cb8f 176%attr(755,root,root) %{_libdir}/libGammu.so.*.*
6baa676b 177%attr(755,root,root) %{_libdir}/libgsmsd.so.*.*.*.*
59428bc4
AF
178%attr(755,root,root) %ghost %{_libdir}/libgsmsd.so.?
179%attr(755,root,root) %ghost %{_libdir}/libGammu.so.?
3b248c9a 180
e9da6d17 181%files devel
182%defattr(644,root,root,755)
35238559 183%attr(755,root,root) %{_bindir}/%{name}-config
a860cb8f 184%attr(755,root,root) %{_libdir}/libGammu.so
6baa676b 185%attr(755,root,root) %{_libdir}/libgsmsd.so
e9da6d17 186%{_includedir}/*
6baa676b 187%dir %{py_sitedir}/gammu/
188%attr(755,root,root) %{py_sitedir}/gammu/_gammu.so
a860cb8f 189%{_pkgconfigdir}/gammu.pc
6baa676b 190%{_pkgconfigdir}/gammu-smsd.pc
e9da6d17 191
3ca020a3 192%files -n python-gammu
193%defattr(644,root,root,755)
194%dir %{py_sitedir}/gammu
195%attr(755,root,root) %{py_sitedir}/gammu/*.so
196%{py_sitedir}/gammu/*.py
197
e9da6d17 198%files static
2585acb8 199%defattr(644,root,root,755)
6baa676b 200%{_libdir}/libgsmsd.a
a860cb8f 201%{_libdir}/libGammu.a
1b61967a
BZ
202
203%files -n bash-completion-gammu
204%defattr(644,root,root,755)
205%{_sysconfdir}/bash_completion.d/gammu
This page took 0.078713 seconds and 4 git commands to generate.