Group :: Sistema/Bibliotecas
RPM: gsmlib
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
%def_disable static
Name: gsmlib
Version: 1.11
Release: alt1.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}
# safety net:
echo "#define HAVE_LOCALE_H 1" >> gsm_config.h
%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
…
Todas as alterações você pod ver aqui
Name: gsmlib
Version: 1.11
Release: alt1.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}
# safety net:
echo "#define HAVE_LOCALE_H 1" >> gsm_config.h
%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
…
Todas as alterações você pod ver aqui