File librra.spec of Package librra

#
# spec file for package librra (Version 0.14)
#
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#

%define	shortname	rra
%define	major	0

Name:           librra
Version:        0.14
Release:        0
License:        MIT
Summary:        RRA library and tools for the SynCE project
Url:            http://www.synce.org
Group:          Productivity/Other
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Vendor:         The SynCE Project

Source:         %{name}-%{version}.tar.bz2

BuildRequires:  gcc-c++
BuildRequires:  libmimedir-devel
BuildRequires:  librapi2-devel
BuildRequires:  libsynce-devel
BuildRequires:  pyrex
BuildRequires:  python-devel >= 2.3

%description
RRA is part of the SynCE project: http://www.synce.org.

%package -n %{name}%{major}
Summary:        SynCE Communication applications and library
Group:          System/Libraries
Suggests:       %{shortname}-tools = %{version}
Suggests:       python-%{shortname} = %{version}
Provides:       %{name} = %{version}
Obsoletes:      %{name} < %{version}

%description -n %{name}%{major}
RRA is part of the SynCE project: http://www.synce.org. This package contains shared libraries for connecting to and managing Windows Mobile devices.

%package devel
Summary:        Header files, libraries and development documentation for %{name}
Group:          Development/Libraries/C and C++
Requires:       %{name} = %{version}
Requires:       libmimedir-devel
Requires:       librapi2-devel
Requires:       libsynce-devel

%description devel
This package contains the header files, static libraries and development documentation for %{name}. If you like to
develop programs using %{name}, you will need to install %{name}-devel.

%package -n python-%{shortname}
Summary:        Python RRA bindings
Group:          Development/Libraries/Python

%py_requires

%description -n python-%{shortname}
This packages contains the RRA bindings for python. It is necessary for the use of the SynCE framework.

%package -n %{shortname}-tools
Summary:        Tools for interacting with Windows Mobile devices based on the RRA library
Group:          Hardware/Mobile

%description -n %{shortname}-tools
RRA is part of the SynCE project: http://www.synce.org. This package contains various commandline tools for connecting to and managing Windows Mobile devices.

%prep
%setup -q

%build
%configure --disable-rpath --disable-static
make %{?_smp_mflags}

%install
%makeinstall
rm -f %{buildroot}%{_libdir}/*.{la,a}
rm -f %{buildroot}%{py_sitedir}/*.{la,a}

%clean
rm -rf %{buildroot}

%post -n %{name}%{major} -p /sbin/ldconfig

%postun -n %{name}%{major} -p /sbin/ldconfig

%files -n %{name}%{major}
%defattr(-,root,root)
%doc ChangeLog LICENSE README TODO
%{_libdir}/librra.so.0
%{_libdir}/librra.so.0.0.0

%files -n %{shortname}-tools
%defattr(-,root,root)
%{_mandir}/man1/*
%{_bindir}/*

%files devel
%defattr(-,root,root)
%{_includedir}/rra
%{_libdir}/pkgconfig/librra.pc
%{_libdir}/librra.so

%files -n python-%{shortname}
%defattr(-,root,root)
%{py_sitedir}/pyrra.so

%changelog
openSUSE Build Service is sponsored by