Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37634163
en ru br
ALT Linux repos
5.0: 1.11-alt2.041028
4.1: 1.11-alt1.041028
4.0: 1.11-alt0.041028
3.0: 1.10-alt9

Other repositories
Upstream:1.10

Group :: System/Libraries
RPM: gsmlib

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

%def_disable static

Name: gsmlib
Version: 1.11
Release: alt0.041028

Summary: Library to access GSM mobile phones through GSM modems
License: LGPL
Group: System/Libraries

URL: http://www.pxh.de/fs/gsmlib
Source: http://www.pxh.de/fs/gsmlib/snapshots/gsmlib-pre1.11-041028.tar.gz

Patch1: gsmlib-template.patch
Patch2: gsmlib-qual.patch
Patch3: gsmlib-1.10-underlink.patch
Patch4: gsmlib-gcc4.patch

# Patches from arc at help0.ru  Arcady Ivanov

# 28 Apr 2006
#
#1. In gsmsendsms added key "-u", which means, that sended string encoded in UNICODE
#2. Correct bugs in sending multipart SMS.

Patch10: gsmlib_me_ta.patch
Patch11: gsmlib_motor1.patch
Patch12: gsmsendsms.patch

Obsoletes: gsmlib-ext <= %version
Provides: gsmlib-ext

# Automatically added by buildreq on Tue May 16 2006

BuildRequires: gcc-c++

%package utils
Summary: Utilities to access GSM mobile phones through GSM modems
Group: Communications

%package devel
Summary: Development tools for programs which will use the gsmlib library
Group: Development/C
Requires: gsmlib = %version-%release

%package static
Summary: Static gsmlib library
Group: Development/C
Requires: %name-devel = %version-%release

%description
This distribution contains a library to access
GSM mobile phones through GSM modems. Features include:
* modification of phonebooks stored in the mobile phone or on the SIM card
* reading and writing of SMS messages stored in the mobile phone
* sending and reception of SMS messages
Additionally, some simple command line programs are provided to use these
functionalities.

%description utils
Simple command line programs to access GSM mobile phones through GSM modems.

%description devel
The gsmlib-devel package includes the header files and static libraries
necessary for developing programs which use the gsmlib library.

%description static
Static gsmlib library.


%prep
%setup -q

%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1

%patch11 -p0
%patch10 -p1
%patch12 -p1

# Play ghost-busters! :) gsmsstk is ghost that exist only in Makefile

subst 's/^gsmsstk/#gsmsstk/g; s/gsmsiexfer gsmsstk/gsmsiexfer/' ext/Makefile.am

%build
# supplied libtool is broken (C++ library linking)
%__autoreconf
%configure %{subst_enable static}
%make_build

%install
%make_install DESTDIR=%buildroot install

%find_lang %name

%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig

%files -f %name.lang
%_libdir/lib*.so.*
%doc README TODO ext/README.sieme
%doc doc/README.developers doc/FAQ ChangeLog

%files utils
%_bindir/*
%_man1dir/*
%_man7dir/*
%_man8dir/*

%files devel
%_includedir/gsmlib
%_libdir/*.so

%if_enabled static
%files static
%_libdir/*.a
%endif

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin