Sophie

Sophie

distrib > Mandriva > 9.1 > ppc > by-pkgid > 68775e689408572157c4b3b48de1f6bc > files > 3

libmal-0.20-2mdk.src.rpm

%define name    libmal
%define version 0.20
%define release 2mdk
%define major   0
%define lib_name %{name}%{major}

Name: 			%name
Version: 		%version
Release: 		%release
Group: 			Communications
License: 		MPL
Packager: 		Mandrake Linux KDE Team <kde@mandrakesoft.com>
URL: 			http://jasonday.home.att.net/code/libmal/libmal.html
Source: 		libmal-%{version}.tar.bz2
Patch: 			libmal-0.20-install.patch.bz2
Summary: 		MAL library for AvantGo
BuildRoot: 		%{_tmppath}/%{name}-buildroot
Requires: 		pilot-link
BuildRequires: 	pilot-link-devel

%package -n 	%{lib_name}
Summary:        MAL library for AvantGo
Group:          System/Libraries
Provides:       lib%{name} = %{version}-%{release}

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


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


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

%description -n %{lib_name}-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
%patch -p1

%build
%configure
%make

%install
%make DESTDIR=$RPM_BUILD_ROOT install


%post -n %{lib_name} -p /sbin/ldconfig

%postun -n %{lib_name} -p /sbin/ldconfig


%clean
rm -rf $RPM_BUILD_ROOT


%files -n %{lib_name}
%defattr(-,root,root,-)
%doc README
%{_libdir}/*.so*

%files -n %{lib_name}-devel
%defattr(-,root,root)
%_includedir/mal/*.h
%{_libdir}/*.la
%{_libdir}/*.a


%changelog
* Fri Dec 20 2002 Laurent MONTEL <lmontel@mandrakesoft.com> 0.20-2mdk
- Fix compile

* Tue Dec 17 2002 Laurent MONTEL <lmontel@mandrakesoft.com> 0.20-1mdk
- Initial package, initial spec file by ShavenYak <shavenyak@smith.dyndns.org>