File libmal.spec of Package libmal
#
# spec file for package libmal
#
# Copyright (c) 2014 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: libmal
Version: 0.44.1
Release: 0
Summary: Palm Sync Library
License: MPL-1.0
Group: Development/Libraries/C and C++
Url: http://www.jlogday.com/code/libmal/
Source: http://www.jlogday.com/code/libmal/%{name}-%{version}.tar.gz
Patch0: libmal.diff
BuildRequires: libpisock-devel
BuildRequires: libtool
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%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 -n libmal1
Summary: Palm Sync Library
Group: Development/Libraries/C and C++
Provides: libmal = 0.31
Obsoletes: libmal <= %{version}
%description -n libmal1
libmal is a convenient library made up of the object files contained in
Tom Whittaker's malsync distribution. libmal also contains a few
wrapper functions.
%package devel
Summary: Palm Sync Library
Group: Development/Libraries/C and C++
Requires: libmal1 = %{version}
Requires: libpisock-devel
%description devel
libmal is a convenient library made up of the object files contained in
Tom Whittaker's malsync distribution. libmal also contains a few
wrapper functions.
%prep
%setup -q
%patch0
libtoolize --force
autoreconf --install --force
%build
%configure --disable-static
make CFLAGS="$RPM_OPT_FLAGS"
%install
make DESTDIR=%{buildroot} install
rm -f %{buildroot}%{_libdir}/libmal.la
%post -n libmal1 -p /sbin/ldconfig
%postun -n libmal1 -p /sbin/ldconfig
%files -n libmal1
%defattr(-,root,root)
%doc ChangeLog MPL-1_0.txt README
%{_bindir}/malsync
%{_libdir}/libmal.so.*
%files devel
%defattr(-,root,root)
%{_includedir}/libmal
%{_libdir}/libmal.so
%changelog