1 # the true package name is "cgilib", but it was already taken by other library
2 %define realname cgilib
3 Summary: Common Gateway Interface library
4 Summary(pl): Biblioteka CGI (Common Gateway Interface)
10 Source0: ftp://ibiblio.org/pub/Linux/libs/%{realname}-%{version}.tar.gz
11 Patch0: %{name}-shared.patch
12 Patch1: %{name}-fix.patch
13 BuildRequires: libtool
14 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17 Common Gateway Interface library written in pure C by Martin Schultze.
18 Original project name was "cgilib", but we must have renamed it
19 because of name conflict with existing cgilib package (completely
20 different CGI library in C++ from http://cgilib.sourceforge.net/).
23 Biblioteka CGI (Common Gateway Interface) napisana w czystym C przez
24 Martina Schultze. Oryginalna nazwa projektu to "cgilib", ale
25 musieli¶my j± zmieniæ z powodu konfliktu z ju¿ istniej±cym pakietem
26 cgilib (ca³kowicie inn± bibliotek± CGI w C++ z
27 http://cgilib.sourceforge.net/).
30 Summary: cgilib header files
31 Summary(pl): Pliki nag³ówkowe cgilib
32 Group: Development/Libraries
33 Requires: %{name} = %{version}
38 %description devel -l pl
39 Pliki nag³ówkowe cgilib.
42 Summary: Static version of cgilib
43 Summary(pl): Statyczna wersja cgilib
44 Group: Development/Libraries
45 Requires: %{name}-devel = %{version}
48 Static version of cgilib.
50 %description static -l pl
51 Statyczna wersja cgilib.
54 %setup -q -n %{realname}-%{version}
61 CFLAGS="%{rpmcflags} -Wall -I."
64 rm -rf $RPM_BUILD_ROOT
67 DESTDIR=$RPM_BUILD_ROOT
70 rm -rf $RPM_BUILD_ROOT
72 %post -p /sbin/ldconfig
73 %postun -p /sbin/ldconfig
76 %defattr(644,root,root,755)
77 %doc CHANGES CREDITS cookies.txt readme
78 %attr(755,root,root) %{_libdir}/lib*.so.*.*.*
81 %defattr(644,root,root,755)
82 %attr(755,root,root) %{_libdir}/lib*.so
84 %{_includedir}/cgilibc
88 %defattr(644,root,root,755)