%define name smapi %define version 2.4.0 %define preversion rc2 %define rel 2mdk %define release 0.%{preversion}.%{rel} %define major 2.4 %define libname %mklibname %name %major Summary: MsgAPI for the Husky-Packages Name: %{name} Version: %{version} Release: %{release} License: GPL Group: System/Libraries Source: %{name}-%{version}%{preversion}.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-root Patch0: smapi-20021015-main.patch.bz2 Patch1: smapi-Makefile.diff.bz2 URL: http://sourceforge.net/projects/husky/ BuildRequires: huskybse %description smapi is a modified message api for *.MSG, SQUISH (C) and JAM-Messagebase formats. It is required for all other Husky-Software. %package -n %libname Summary: MsgAPI for the Husky-Packages Group: System/Libraries Provides: lib%name = %version-%release %description -n %libname smapi is a modified message api for *.MSG, SQUISH (C) and JAM-Messagebase formats. It is required for all other Husky-Software. %package -n %libname-devel Summary: MsgAPI for the Husky-Packages, development files Group: Development/Other Requires: %{libname} = %{version}-%{release} Provides: %name-devel = %version-%release Provides: lib%name-devel = %verison-%release %description -n %libname-devel smapi is a modified message api for *.MSG, SQUISH (C) and JAM-Messagebase formats. It is required for all other Husky-Software. This Package holds the Development files. Only needed if you want to compile other Husky-Packages. %prep %setup -q -n %name %patch0 -p1 %patch1 -p1 %build %make OPTCFLAGS="$RPM_OPT_FLAGS -fPIC -s -c" %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT%{_includedir}/smapi/ %make INCDIR=$RPM_BUILD_ROOT%{_includedir} LIBDIR=$RPM_BUILD_ROOT%{_libdir} install install -m 644 cvsdate.h $RPM_BUILD_ROOT%{_includedir}/smapi/ chmod 755 $RPM_BUILD_ROOT%{_libdir}/*.so* %clean rm -rf $RPM_BUILD_ROOT %post -n %libname -p /sbin/ldconfig %postun -n %libname -p /sbin/ldconfig %files -n %libname %defattr(-,root,root) %doc BEOS.TXT BUGS COPYING ChangeLog HISTORY INSTALL LICENSE TODO VERSION file_id.diz readme.txt %{_libdir}/libsmapi.so.* %files -n %libname-devel %defattr(-,root,root) %{_includedir}/smapi %{_libdir}/*.so %{_libdir}/libsmapi.a %changelog * Sun Jan 30 2005 Sylvie Terjan <erinmargault@mandrake.org> 2.4.0rc2-2mdk - birthday rebuild * Mon Dec 22 2003 Olivier Thauvin <thauvin@aerov.jussieu.fr> 2.4.0rc2-1mdk - cleanup - %%mklibname - From Iouri Goussev <elendal@polygonized.com> - First MDK version - original SPEC by Sergey Zhemchugov <Sergey_Zhemchugov@p8.f822.n463.z2.fidonet.org>