Sophie

Sophie

distrib > Mandriva > 8.2 > i586 > media > main-src > by-pkgid > c0b1e6f4657debfb0e7cb318c846773d > files > 2

publib-devel-0.31-4mdk.src.rpm

%define name publib-devel
%define version 0.31
%define release 4mdk

Summary:	C function library
Name:		%{name}
Version:	%{version}
Release:	%{release}
URL:		ftp://ftp.cs.helsinki.fi/pub/Software/Local/Publib/
Source0:	ftp://ftp.cs.helsinki.fi/pub/Software/Local/Publib/publib-%{version}.tar.bz2
License:	Public Domain
Group:		Development/C
BuildRoot:	%{_tmppath}/%{name}-buildroot
Prefix:		%{_prefix}
BuildRequires:	gcc

%description
Publib is a library of C functions for various purposes. It has
been written so that it is easy to extend. It's build tools can
easily be used for other libraries, but that isn't relevant for
the Debian pre-packaged version.

The library contains functions for memory allocation, bit arrays,
configuration files, comparing standard C types for qsort and
bsearch, error messages, expression parsing and evaluation,
filenames, hash tables, integer sets, log files, the Linux Software
Map, NNTP, priority queues, normal queues, editor buffers, stacks,
and strings.

%prep
%setup -q -n publib-%{version}
pushd framework && {
	autoconf
	chmod -R og+rX .
} && popd

%build
mkdir debian/objs
cd debian/objs
sed -e "s/^CFLAGS.*$/CFLAGS='$RPM_OPT_FLAGS'/g" ../Default.config > Default.config
../../framework/configure
make

%install
rm -rf $RPM_BUILD_ROOT

install -d $RPM_BUILD_ROOT%{_includedir}
install -d $RPM_BUILD_ROOT%{_libdir}
install -d $RPM_BUILD_ROOT%{_mandir} 
install -d $RPM_BUILD_ROOT%{_mandir}/man3
cd debian/objs && %makeinstall --no-print-dir man3ext=3pub prefix=$RPM_BUILD_ROOT%{prefix}

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root,755)
%{_includedir}/*
%{_libdir}/lib*.a
%doc %{_mandir}/man3/*
%doc debian/copyright
%doc debian/changelog
%doc framework/README
%doc framework/Blurb

%changelog
* Sat Jan 19 2002 Jeff Garzik <jgarzik@mandrakesoft.com> 0.31-4mdk
- BuildRequires: gcc
- s/Copyright/License/
- correct doc permissions
- add URL tag
- pass -q to %%setup
- build with MDK cflags

* Thu Dec  7 2000 Frederic Lepied <flepied@mandrakesoft.com> 0.31-3mdk
- correct dir permissions.

* Mon Sep 25 2000 Stefan van der Eijk <s.vandereijk@chello.nl> 0.31-2mdk
- BM + macro's

* Fri Jul  7 2000 Frederic Lepied <flepied@mandrakesoft.com> 0.31-1mdk
- first Mandrake version.

# end of file