Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37913355
en ru br
ALT Linux repos
5.0: 0.44-alt1
4.1: 0.42-alt2
4.0: 0.42-alt2
3.0: 0.40-alt1

Group :: System/Libraries
RPM: libmal

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

%if_enabled static
%define buildstatic 1
%else
%define buildstatic 0
%endif

Name: libmal
Version: 0.42
Release: alt2

Group: System/Libraries
Summary: MAL library for AvantGo
Url: http://jasonday.home.att.net/code/libmal/libmal.html
License: MPL

Source: libmal-%version.tar.bz2
Patch: libmal-0.20-install.patch
Patch1: libmal-0.42-lib64.patch
Patch2: libmal-0.31-64bit-fixes.patch

# Automatically added by buildreq on Thu Feb 12 2004 (-bi)

BuildRequires: glibc-devel libpilot-link-devel
%if %buildstatic
BuildRequires: glibc-devel-static
%endif

%description
libmal is really just a convenience library of the functions in Tom
Whittaker's malsync distribution, along with a few wrapper functions.

%package utils
Summary: Sync to Mobile Application Link servers
Group: Communications
Requires: %name = %version-%release
Provides: %name-devel = %version-%release

%description utils
This package contains malsync.
This is command line utility to enable people who have Palm OS
devices to sync to Mobile Application Link (MAL) compliant servers.
AvantGo (www.avantgo.com) and Puma Technologies (www.pumatech.com)
are the first two companies committing to producing servers which speak
this protocol. This utility will allow a user to sync with multiple servers,
simultaneously or separately. The AvantGo.com service (www.avantgo.com)
is the first such server.

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

%description devel
The %name-devel package includes the header files and static libraries
necessary for developing programs using the %name library.

If you are going to develop programs which will use the %name library
you should install %name-devel.  You'll also need to have the %name
package installed.

%prep
%setup -q
#%patch -p1
%patch1 -p1 -b .lib64
%patch2 -p1 -b .64bit-fixes

./autogen.sh

%build
export LDFLAGS="-L%_libdir"
%configure \
%if %buildstatic
   --enable-static \
%else
   --disable-static \
%endif
   --enable-shared \
   --with-pilot-prefix=
#    --disable-pl-test
   
%make

%install
%make DESTDIR=%buildroot install

%post
%post_ldconfig
%postun
%postun_ldconfig

%files
%doc README ChangeLog AUTHORS
%_libdir/*.so.*

%files utils
%doc malsync/Doc/README*
%_bindir/malsync

%files devel
%dir %_includedir/libmal/
%_includedir/libmal/*.h
%_libdir/*.so

%if %buildstatic
%files devel-static
%_libdir/*.la
%_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