File libmal1.spec of Package libmal1
#
# spec file for package libmal1
#
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: libmal1
BuildRequires: libtool
BuildRequires: pilot-link-devel
Summary: Palm Sync Library
License: MPL-1.0
Group: Development/Libraries/C and C++
Version: 0.44
Release: 0
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Url: http://jasonday.home.att.net/code/libmal/
Source: libmal-%{version}.tar.bz2
Patch: fix-cflags.diff
Patch1: lib64.diff
%description
Libmal is a convenience library of the object files contained in Tom
Whittaker's malsync distribution. It also includes a few wrapper
functions.
%package devel
Summary: Palm Sync Library
Group: Development/Libraries/C and C++
Requires: %{name} = %{version}
Requires: pilot-link-devel
Conflicts: libmal-devel
%description devel
libmal is a convenient library made up of the object files contained in
Tom Whittaker's malsync distribution. libmaal also contains a few
wrapper functions.
%prep
%setup -q -n libmal-%{version}
%patch
%patch1
%build
libtoolize --force
autoreconf --install --force
export CFLAGS="$RPM_OPT_FLAGS"
%configure --disable-static
make %{?_smp_mflags}
%install
make DESTDIR=$RPM_BUILD_ROOT install
rm -f $RPM_BUILD_ROOT/usr/bin/malsync
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%doc README ChangeLog MPL-1_0.txt
%_libdir/libmal.so.1
%_libdir/libmal.so.1.0.1
%files devel
%defattr(-,root,root)
/usr/include/libmal
%_libdir/libmal.so
%_libdir/libmal.la
%changelog