Sophie

Sophie

distrib > Mandriva > 2009.0 > i586 > by-pkgid > 66e1c128a1e021aa2b99c3620f159b73 > files > 6

gsmlib-1.11-5.4mdv2009.0.src.rpm

%define major 1
%define libname %mklibname %name %major

Summary: 	Library and utilities to access GSM mobile phones
Name: 	 	gsmlib
Version: 	1.11
Release: 	%mkrel 5.4
License:	GPL
Group:		Communications
URL:		http://www.pxh.de/fs/gsmlib/index.html
Source0:	%{name}-pre1.11-041028.tar.bz2
Patch0:		gsmlib-1.11-gcc41.patch
Patch1:		gsmlib-1.11-gcc43.patch
Patch2:		gsmlib-1.11-include-gcc34-fix.patch
Patch3:		gsmlib-1.11-linkfix.diff
BuildRequires:	gettext
BuildRequires:	bison
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-buildroot

%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. 

%package -n 	%{libname}
Summary:        Dynamic libraries from %name
Group:          System/Libraries

%description -n %{libname}
Dynamic libraries from %name.

%package -n 	%{libname}-devel
Summary: 	Header files and static libraries from %name
Group: 		Development/C
Requires: 	%{libname} >= %{version}
Provides: 	lib%{name}-devel = %{version}-%{release}
Provides:	%{name}-devel = %{version}-%{release} 
Obsoletes: 	%name-devel

%description -n %{libname}-devel
Libraries and includes files for developing programs based on %name.

%prep

%setup -q
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1

%build
export LIBS="-lstdc++"

%configure2_5x

%make
										
%install
rm -rf %{buildroot}

%makeinstall

%find_lang %name

%if %mdkversion < 200900
%post -n %{libname} -p /sbin/ldconfig
%endif

%if %mdkversion < 200900
%postun -n %{libname} -p /sbin/ldconfig
%endif

%clean
rm -rf %{buildroot}

%files -f %{name}.lang
%defattr(-,root,root)
%doc README ABOUT-NLS COPYING ChangeLog NEWS TODO
%{_bindir}/gsm*
%{_mandir}/man1/gsm*
%{_mandir}/man7/gsm*
%{_mandir}/man8/gsm*

%files -n %{libname}
%defattr(-,root,root)
%{_libdir}/*.so.*

%files -n %{libname}-devel
%defattr(-,root,root)
%{_includedir}/%name/*.h
%{_libdir}/*.so
%{_libdir}/*.a
%{_libdir}/*.la


%changelog
* Wed Aug 06 2008 Thierry Vignaud <tvignaud@mandriva.com> 1.11-5.4mdv2009.0
+ Revision: 264618
- rebuild early 2009.0 package (before pixel changes)

  + Pixel <pixel@mandriva.com>
    - do not call ldconfig in %%post/%%postun, it is now handled by filetriggers

* Thu May 22 2008 Oden Eriksson <oeriksson@mandriva.com> 1.11-0.4mdv2009.0
+ Revision: 210050
- fix build
- added one gcc43 patch by gentoo

* Wed Jan 02 2008 Olivier Blin <oblin@mandriva.com> 1.11-0.3mdv2008.1
+ Revision: 140742
- restore BuildRoot

  + Thierry Vignaud <tvignaud@mandriva.com>
    - kill re-definition of %%buildroot on Pixel's request


* Thu Feb 01 2007 Laurent Montel <lmontel@mandriva.com> 1.11-0.3mdv2007.0
+ Revision: 115862
- Rebuild
- Import gsmlib

* Tue Jun 13 2006 Helio Castro <helio@mandriva.com> 1.11-0.2mdk
- Fixed headers ( gcc4 patch )

* Tue Aug 30 2005 Austin Acton <austin@mandriva.org> 1.11-0.1mdk
- go to pre1.11-041028
- tweak the patch for gcc 4

* Wed Jun 09 2004 Austin Acton <austin@mandrake.org> 1.10-2mdk
- configure 2.5
- patch for new gcc (Christiaan Welvaart)