libcgi/libcgi.spec

89 lines
2.5 KiB
RPMSpec
Raw Permalink Normal View History

Name: libcgi
Version: 1.0
Release: 2mamba
Summary: A CGI (Common Gateway Interface) programming interface
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Tiziana Ferro <tiziana.ferro@email.it>
URL: http://libcgi.sourceforge.net/
Source: http://downloads.sourceforge.net/sourceforge/libcgi/libcgi-%{version}.tar.gz
Patch0: libcgi-1.0-Makefile.in.patch
Patch1: libcgi-1.0-cgi.c-hextable.patch
Patch2: libcgi-1.0-string.c-make_string.patch
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
## AUTOBUILDREQ-END
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
This library offers a simple programming interface to the Common Gateway Interface, known as CGI, including Cookies.
The purpose is to provide an easy to use interface to CGI if you need to write your program in C instead of perl.
%package devel
Group: Development/Libraries
Summary: Static libraries and headers for %{name}
Requires: %{name} = %{version}
%description devel
This library offers a simple programming interface to the Common Gateway Interface, known as CGI, including Cookies.
The purpose is to provide an easy to use interface to CGI if you need to write your program in C instead of perl.
This package contains static libraries and header files need for development.
%prep
%setup -q -n libcgi-%{version}
%patch0 -p1
%patch1 -p1
%patch2 -p1
find examples/ -name "Makefile.am" -exec rm {} ';'
%build
%configure \
--disable-static
%make \
LIBDIR=%{_libdir} \
SOMAJOR=1 SOMINOR=0
%install
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
%makeinstall DESTDIR=%{buildroot} \
LIBDIR=%{_libdir} \
SOMAJOR=1 SOMINOR=0
make DESTDIR=%{buildroot} install_man
%clean
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root,-)
%{_libdir}/*.so.*
%doc AUTHORS
%files devel
%defattr(-,root,root,-)
%{_libdir}/*.so
%{_includedir}/cgi.h
%{_includedir}/session.h
%{_libdir}/libcgi.a
%{_mandir}/man3/*.3*
%doc doc/html/ examples/
%doc BUGS ChangeLog README THANKS TODO
%changelog
* Wed Aug 28 2013 Automatic Build System <autodist@mambasoft.it> 1.0-2mamba
- automatic rebuild by autodist
* Sun Oct 26 2008 Tiziana Ferro <tiziana.ferro@email.it> 1.0-1mamba
- update to 1.0
- packager changed
* Tue May 17 2005 Davide Madrisan <davide.madrisan@qilinux.it> 0.5-1qilnx
- package created by autospec