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.UTF-8): Biblioteka CGI (Common Gateway Interface)
10 Source0: ftp://ibiblio.org/pub/Linux/libs/%{realname}-%{version}.tar.gz
11 # Source0-md5: 5187ba11b2ec165b6c5b6629087733b0
12 Patch0: %{name}-shared.patch
13 Patch1: %{name}-fix.patch
14 BuildRequires: libtool
15 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18 Common Gateway Interface library written in pure C by Martin Schultze.
19 Original project name was "cgilib", but we must have renamed it
20 because of name conflict with existing cgilib package (completely
21 different CGI library in C++ from http://cgilib.sourceforge.net/).
23 %description -l pl.UTF-8
24 Biblioteka CGI (Common Gateway Interface) napisana w czystym C przez
25 Martina Schultze. Oryginalna nazwa projektu to "cgilib", ale
26 musieliśmy ją zmienić z powodu konfliktu z już istniejącym pakietem
27 cgilib (całkowicie inną biblioteką CGI w C++ z
28 http://cgilib.sourceforge.net/).
31 Summary: cgilib header files
32 Summary(pl.UTF-8): Pliki nagłówkowe cgilib
33 Group: Development/Libraries
34 Requires: %{name} = %{version}-%{release}
39 %description devel -l pl.UTF-8
40 Pliki nagłówkowe cgilib.
43 Summary: Static version of cgilib
44 Summary(pl.UTF-8): Statyczna wersja cgilib
45 Group: Development/Libraries
46 Requires: %{name}-devel = %{version}-%{release}
49 Static version of cgilib.
51 %description static -l pl.UTF-8
52 Statyczna wersja cgilib.
55 %setup -q -n %{realname}-%{version}
62 CFLAGS="%{rpmcflags} -Wall -I." \
66 rm -rf $RPM_BUILD_ROOT
69 DESTDIR=$RPM_BUILD_ROOT \
73 rm -rf $RPM_BUILD_ROOT
75 %post -p /sbin/ldconfig
76 %postun -p /sbin/ldconfig
79 %defattr(644,root,root,755)
80 %doc CHANGES CREDITS cookies.txt readme
81 %attr(755,root,root) %{_libdir}/lib*.so.*.*.*
84 %defattr(644,root,root,755)
85 %attr(755,root,root) %{_libdir}/lib*.so
87 %{_includedir}/cgilibc
91 %defattr(644,root,root,755)