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