Sophie

Sophie

distrib > Mandriva > 2009.0 > x86_64 > by-pkgid > c34990617df07024b91361134f0f004c > files > 4

openobex-1.3-7mdv2009.0.src.rpm

%define major 1
%define libname %mklibname openobex %{major}

Summary: 	Library for using OBEX
Name: 		openobex
Version: 	1.3
Release: 	%mkrel 7
License: 	LGPL
Group: 		System/Libraries
URL:		http://openobex.sourceforge.net/
Source: 	http://prdownloads.sourceforge.net/openobex/openobex-%{version}.tar.bz2
Patch0:		openobex-1.3-ipv6.patch
Patch1:		openobex-linkage_fix.diff
BuildRequires:	bluez-devel
BuildRequires:	glib-devel
BuildRequires:	libusb-devel
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-buildroot

%description
Open OBEX shared c-library

%package -n %{libname}
Summary: Library for using OBEX
Group: System/Libraries
Provides: lib%{name} = %version-%release
Provides: %{name} = %version-%release
Conflicts: %{_lib}%{name}1.3
Conflicts: %{_lib}%{name}1.2
Conflicts: %{_lib}%{name}1.1

%description -n %{libname}
Open OBEX shared c-library

%package -n %{libname}-devel
Summary: Library for using OBEX
Group: Development/C
Provides: lib%{name}-devel = %version-%release
Provides: %{name}-devel  = %version-%release
Requires: %{libname} = %{version}
Requires:   bluez-devel
Conflicts: %{_lib}%{name}1.3-devel
Conflicts: %{_lib}%{name}1.2-devel
Conflicts: %{_lib}%{name}1.1-devel

%description -n %{libname}-devel
Open OBEX shared c-library

%package apps
Summary: Apps that come with the Open OBEX c-library
Group: Communications

%description apps
These are the apps that come with the Open OBEX c-library. These are
not meant to be more than test-programs to look at if you want to see
how use the library itself.

%package ircp
Summary: Used to "beam" files or whole directories
Group: Communications
Obsoletes: ircp
Provides: ircp

%description ircp
Ircp is used to "beam" files or whole directories to/from Linux, Windows.

%prep

%setup -q
%patch0 -p1
%patch1 -p0

%build
autoreconf -fis
%configure \
	--enable-apps
%make

%install
rm -rf %{buildroot}

%makeinstall_std

# since our old packages will look for headers in /usr/include
ln -s openobex/obex.h %{buildroot}/%_includedir/obex.h
ln -s openobex/obex_const.h %{buildroot}/%_includedir/obex_const.h

%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 -n %{libname}
%defattr(-, root, root)
%doc COPYING
%{_libdir}/libopenobex.so.%{major}*

%files -n %{libname}-devel
%defattr(-, root, root)
%doc AUTHORS ChangeLog README
%{_libdir}/pkgconfig/openobex.pc
%{_datadir}/aclocal/openobex.m4
%{_includedir}/*
%{_libdir}/*a
%{_libdir}/lib*.so

%files apps
%defattr(-, root, root)
%{_bindir}/irobex_palm3
%{_bindir}/irxfer
%{_bindir}/obex_tcp
%{_bindir}/obex_test

%files ircp
%defattr(-, root, root)
%{_bindir}/ircp


%changelog
* Wed Jul 09 2008 Oden Eriksson <oeriksson@mandriva.com> 1.3-7mdv2009.0
+ Revision: 232944
- fix linkage (P1)

  + Thierry Vignaud <tvignaud@mandriva.com>
    - rebuild

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

* Mon Feb 18 2008 Thierry Vignaud <tvignaud@mandriva.com> 1.3-5mdv2008.1
+ Revision: 171010
- rebuild
- fix "foobar is blabla" summary (=> "blabla") so that it looks nice in rpmdrake

* Sat Jan 12 2008 Emmanuel Andry <eandry@mandriva.org> 1.3-4mdv2008.1
+ Revision: 149809
- add patch from fedora to add ipv6 support

  + Olivier Blin <oblin@mandriva.com>
    - restore BuildRoot

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

* Fri Apr 27 2007 Guillaume Rousse <guillomovitch@mandriva.org> 1.3-3mdv2008.0
+ Revision: 18729
- force explicit dependency on bluez-devel in openobex-devel


* Fri Jan 19 2007 Frederic Crozat <fcrozat@mandriva.com> 1.3-2mdv2007.0
+ Revision: 110576
-Fix libification
-Add conflicts to upgrade from previous releases

  + Buchan Milne <bgmilne@mandriva.org>
    - buildrequire libusb-devel

* Tue Oct 31 2006 Stefan van der Eijk <stefan@mandriva.org> 1.3-1mdv2007.1
+ Revision: 74231
- 1.3
- Import openobex

* Sun Sep 03 2006 Stefan van der Eijk <stefan@mandriva.org> 1.2-3
- rebuild for libbluetooth.so.2

* Sat Jun 17 2006 Austin Acton <austin@mandriva.org> 1.2-1mdv2007.0
- Rebuild

* Mon Mar 27 2006 Stefan van der Eijk <stefan@eijk.nu> 1.2-1mdk
- 1.2
- change incorrect major
- add apps & ircp subpackages

* Fri Feb 10 2006 Götz Waschk <waschk@mandriva.org> 1.1-2mdk
- drop obsoletes
- fix provides

* Sat Feb 04 2006 Stefan van der Eijk <stefan@eijk.nu> 1.1-1mdk
- 1.1

* Sat Dec 24 2005 Stefan van der Eijk <stefan@eijk.nu> 1.0.1-5mdk
- %%mkrel

* Tue Oct 19 2004 Gwenole Beauchesne <gbeauchesne@mandrakesoft.com> 1.0.1-4mdk
- fix deps

* Sat May 01 2004 Austin Acton <austin@mandrake.org> 1.0.1-3mdk
- obsolete libname1 (Arnaud de Lorbeau)

* Tue Apr 06 2004 Austin Acton <austin@mandrake.org> 1.0.1-2mdk
- make sure headers go in their own directory (makeinstall_std)
- fancify spec
- move config utility to devel package
- fix major versioning