]> git.pld-linux.org Git - packages/gammu.git/blame - gammu.spec
- fixed build with lib64
[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
32e1a0a0
MWP
4Version: 1.12.92
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
32e1a0a0 10# Source0-md5: 5bcb87a39e9004c654e080bf8df7cd43
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
3b248c9a 18Requires: %{name}-libs = %{epoch}:%{version}-%{release}
e4c35d43
PG
19Provides: mygnokii2
20Obsoletes: mygnokii2
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 libs
736b1f60 43Summary: Gammu library
44Summary(pl.UTF-8): Biblioteka Gammu
45Group: Libraries
e9da6d17 46
47%description libs
48Gammu tool suite library.
49
35238559 50%description libs -l pl.UTF-8
e9da6d17 51Biblioteka zestawu narzędzi dla telefonów komórkowych Gammu.
52
3b248c9a
JB
53%package devel
54Summary: Header files for Gammu tool suite for mobile phones
55Summary(pl.UTF-8): Pliki nagłówkowe zestawu narzędzi dla telefonów komórkowych Gammu
56Group: Development/Libraries
57Requires: %{name}-libs = %{epoch}:%{version}-%{release}
a860cb8f 58Requires: bluez-libs-devel
3b248c9a
JB
59
60%description devel
61Header files for Gammu tool suite for mobile phones.
62
63%description devel -l pl.UTF-8
64Pliki nagłówkowe zestawu narzędzi dla telefonów komórkowych Gammu.
65
e9da6d17 66%package static
736b1f60 67Summary: Gammu static library
68Summary(pl.UTF-8): Biblioteka statyczna Gammu
69Group: Development/Libraries
3b248c9a 70Requires: %{name}-devel = %{epoch}:%{version}-%{release}
e9da6d17 71
72%description static
73Gammu static library.
74
35238559 75%description static -l pl.UTF-8
e9da6d17 76Biblioteka statyczna zestawu narzędzi dla telefonów komórkowych Gammu.
77
f836a189 78%prep
44bab158 79%setup -q
ecc2fee0 80#%patch0 -p1
f836a189 81
82%build
35238559
TP
83mkdir -p build
84cd build
85%cmake ../ \
86 -DCMAKE_INSTALL_PREFIX="%{_prefix}" \
a860cb8f 87 -DCMAKE_VERBOSE_MAKEFILE=1 \
35238559 88 -DENABLE_SHARED=OFF \
a860cb8f 89 -DINSTALL_LIB_DIR=%{_libdir} \
48c85e31 90 %{?debug:-DCMAKE_BUILD_TYPE="Debug"}
36390489 91%{__make}
35238559
TP
92mv common/libGammu.a ..
93%cmake ../ \
94 -DCMAKE_INSTALL_PREFIX="%{_prefix}" \
a860cb8f 95 -DCMAKE_VERBOSE_MAKEFILE=1 \
35238559 96 -DENABLE_SHARED=ON \
a860cb8f 97 -DINSTALL_LIB_DIR=%{_libdir} \
32e1a0a0 98 %{?debug:-DCMAKE_BUILD_TYPE="Debug"}
36390489 99%{__make}
f836a189 100
101%install
102rm -rf $RPM_BUILD_ROOT
35238559 103install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_examplesdir}/%{name}-%{version}}
3b248c9a
JB
104
105%{__make} -C build install \
35238559 106 DESTDIR=$RPM_BUILD_ROOT
35238559 107
a683d7d8 108install docs/examples/config/gammurc $RPM_BUILD_ROOT%{_sysconfdir}
a3c0577f 109cp -r docs/{examples,develop} $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
35238559 110install libGammu.a $RPM_BUILD_ROOT%{_libdir}
9ab30125 111%find_lang %{name}
11342faf 112
113rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name}
f836a189 114
115%clean
116rm -rf $RPM_BUILD_ROOT
117
a860cb8f
JB
118%post libs -p /sbin/ldconfig
119%postun libs -p /sbin/ldconfig
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
3b248c9a
JB
130%files libs
131%defattr(755,root,root,755)
a860cb8f
JB
132%attr(755,root,root) %{_libdir}/libGammu.so.*.*
133%attr(755,root,root) %ghost %{_libdir}/libGammu.so.2
3b248c9a 134
e9da6d17 135%files devel
136%defattr(644,root,root,755)
35238559 137%attr(755,root,root) %{_bindir}/%{name}-config
a860cb8f 138%attr(755,root,root) %{_libdir}/libGammu.so
e9da6d17 139%{_includedir}/*
a860cb8f 140%{_pkgconfigdir}/gammu.pc
e9da6d17 141
e9da6d17 142%files static
143%defattr(755,root,root,755)
a860cb8f 144%{_libdir}/libGammu.a
This page took 0.16524 seconds and 4 git commands to generate.