Sophie

Sophie

distrib > Mandriva > 2009.0 > i586 > by-pkgid > d55ceadb4bf12b1e483e67ef69501b36 > files > 3

cgilib-0.6-2mdv2009.0.src.rpm

%define	major 0
%define libname %mklibname cgi %{major}
%define develname %mklibname cgi -d

Summary:	A CGI (Common Gateway Interface) library
Name:		cgilib
Version:	0.6
Release:	%mkrel 2
License:	GPL
Group:		System/Libraries
URL:		http://www.infodrom.org/projects/cgilib/
Source0:	%{name}-%{version}.tar.gz
Patch0:		cgilib-ac_am.diff
BuildRequires:	autoconf2.5
BuildRequires:	automake1.7
BuildRequires:	libtool
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-buildroot

%description
This is quite a simple library that provides an easy CGI interface (Common
Gateway Interface). It provides an easy to use interface to CGI if you need
to write your program in C instead of perl.

%package -n	%{libname}
Summary:	A CGI (Common Gateway Interface) library
Group:          System/Libraries
Provides:	%{name} = %{version}-%{release}
Obsoletes:	%{name}

%description -n	%{libname}
This is quite a simple library that provides an easy CGI interface (Common
Gateway Interface). It provides an easy to use interface to CGI if you need
to write your program in C instead of perl.

%package -n	%{develname}
Summary:	Development library and header files for the %{libname} library
Group:		Development/C
Requires:	%{libname} = %{version}
Provides:	%{name}-devel = %{version}-%{release}
Obsoletes:	%{name}-devel
Provides:	libcgi-devel
Obsoletes:	%{mklibname cgi 0 -d}

%description -n	%{develname}
Header files and develpment documentation for %{name}.

%prep

%setup -q
%patch0 -p0

%build
export CFLAGS="%{optflags} -fPIC"
touch NEWS README AUTHORS ChangeLog
libtoolize --copy --force; aclocal-1.7; autoconf; automake-1.7 --add-missing --copy

%configure2_5x

%make CFLAGS="%{optflags} -fPIC"

%install
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}

%makeinstall_std

%if %mdkversion < 200900
%post -n %{libname} -p /sbin/ldconfig
%endif

%if %mdkversion < 200900
%postun -n %{libname} -p /sbin/ldconfig
%endif

%clean
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}

%files -n %{libname}
%defattr(-,root,root)
%doc CHANGES CREDITS readme
%{_libdir}/*.so.*

%files -n %{develname}
%defattr(-,root,root)
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/*.la
%{_libdir}/*.a
%{_mandir}/man[35]/*


%changelog
* Wed Aug 06 2008 Thierry Vignaud <tvignaud@mandriva.com> 0.6-2mdv2009.0
+ Revision: 264348
- rebuild early 2009.0 package (before pixel changes)

  + Pixel <pixel@mandriva.com>
    - do not call ldconfig in %%post/%%postun, it is now handled by filetriggers

* Sat May 03 2008 Oden Eriksson <oeriksson@mandriva.com> 0.6-1mdv2009.0
+ Revision: 200695
- 0.6
- rediff P0
- drop P1, it's in there
- fix devel naming

* Wed Jan 02 2008 Olivier Blin <oblin@mandriva.com> 0.5-5mdv2008.1
+ Revision: 140692
- restore BuildRoot

  + Thierry Vignaud <tvignaud@mandriva.com>
    - kill re-definition of %%buildroot on Pixel's request


* Wed Mar 07 2007 Oden Eriksson <oeriksson@mandriva.com> 0.5-5mdv2007.0
+ Revision: 134418
- Import cgilib

* Wed Mar 07 2007 Oden Eriksson <oeriksson@mandriva.com> 0.5-5mdv2007.1
- use the %%mkrel macro

* Sat May 13 2006 Stefan van der Eijk <stefan@eijk.nu> 0.5-4mdk
- rebuild for sparc

* Sat Dec 31 2005 Mandriva Linux Team <http://www.mandrivaexpert.com/> 0.5-3mdk
- Rebuild

* Thu May 12 2005 Oden Eriksson <oeriksson@mandriva.com> 0.5-2mdk
- rebuild
- rpmlint fixes

* Tue Jun 01 2004 Oden Eriksson <oeriksson@mandrakesoft.com> 0.5-1mdk
- initial PLD import (though a lot mkdified)