]>
Commit | Line | Data |
---|---|---|
630d973c | 1 | # TODO: - provide subpackages with cgi and fastcgi demos |
6b30652b | 2 | # |
7202c939 | 3 | # Conditional build: |
4 | %bcond_without static_libs # don't build static libraries | |
36b777f0 | 5 | |
e9d74984 | 6 | Summary: A C++ library for CGI programming |
1d42abc7 | 7 | Summary(pl.UTF-8): Biblioteka C++ do programowania CGI |
e9d74984 | 8 | Name: cgicc |
2861b66c JB |
9 | Version: 3.2.17 |
10 | Release: 1 | |
6b30652b | 11 | License: LGPL v3+ (library), FDL v1.1+ (documentation) |
e9d74984 | 12 | Group: Libraries |
6b30652b | 13 | Source0: http://ftp.gnu.org/gnu/cgicc/%{name}-%{version}.tar.gz |
2861b66c | 14 | # Source0-md5: ea9d40e09471dfe6be363af5b736904c |
6b30652b JB |
15 | Patch0: %{name}-link.patch |
16 | URL: http://www.gnu.org/software/cgicc/ | |
17 | BuildRequires: autoconf >= 2.50 | |
f715ef0f | 18 | BuildRequires: automake |
19 | BuildRequires: doxygen | |
20 | BuildRequires: libstdc++-devel | |
d2048c08 | 21 | BuildRequires: libtool >= 2:1.5 |
e9d74984 | 22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
23 | ||
24 | %description | |
25 | GNU cgicc is a C++ class library that greatly simplifies the creation | |
26 | of CGI applications for the World Wide Web. cgicc performs the | |
27 | following functions: | |
28 | - Parses both GET and POST form data transparently. | |
29 | - Provides string, integer, floating-point and single- and | |
30 | multiple-choice retrieval methods for form data. | |
31 | - Provides methods for saving and restoring CGI environments to aid in | |
32 | application debugging. | |
33 | - Provides full on-the-fly HTML generation capabilities, with support | |
34 | for cookies. | |
35 | - Supports HTTP file upload. | |
36 | - Compatible with FastCGI. | |
37 | ||
10eaae4b JR |
38 | %description -l pl.UTF-8 |
39 | GNU cgicc to biblioteka klas C++ znacznie upraszczająca tworzenie | |
40 | aplikacji CGI dla WWW. cgicc wykonuje następujące funkcje: | |
41 | - w sposób przezroczysty analizuje dane z formularzy GET i POST | |
42 | - udostępnia metody uzyskiwania łańcuchów znaków, liczb całkowitych i | |
36b777f0 ER |
43 | zmiennoprzecinkowych oraz opcji jednokrotnego i wielokrotnego wyboru z |
44 | danych formularzy | |
45 | - udostępnia metody do zapisu i odtwarzania środowiska CGI pomagające | |
46 | przy śledzeniu aplikacji | |
10eaae4b | 47 | - udostępnia pełne możliwości generowania HTML-a w locie, z obsługą |
d2048c08 | 48 | ciasteczek |
10eaae4b | 49 | - obsługuje wysyłanie plików po HTTP |
d2048c08 JB |
50 | - jest kompatybilna z FastCGI. |
51 | ||
e9d74984 | 52 | %package devel |
53 | Summary: A C++ library for CGI programming - header files | |
1d42abc7 | 54 | Summary(pl.UTF-8): Biblioteka C++ do programowania CGI - pliki nagłówkowe |
e9d74984 | 55 | Group: Development/Libraries |
56 | Requires: %{name} = %{version}-%{release} | |
6b30652b | 57 | Requires: libstdc++-devel |
e9d74984 | 58 | |
59 | %description devel | |
60 | Header files for cgicc library. | |
61 | ||
10eaae4b JR |
62 | %description devel -l pl.UTF-8 |
63 | Pliki nagłówkowe biblioteki cgicc. | |
e9d74984 | 64 | |
65 | %package static | |
66 | Summary: A C++ library for CGI programming - static version | |
1d42abc7 | 67 | Summary(pl.UTF-8): Biblioteka C++ do programowania CGI - wersja statyczna |
e9d74984 | 68 | Group: Development/Libraries |
69 | Requires: %{name}-devel = %{version}-%{release} | |
70 | ||
71 | %description static | |
72 | Static version of cgicc library. | |
73 | ||
10eaae4b | 74 | %description static -l pl.UTF-8 |
e9d74984 | 75 | Statyczna wersja biblioteki cgicc. |
76 | ||
6b30652b JB |
77 | %package apidocs |
78 | Summary: API documentation for cgicc library | |
79 | Summary(pl.UTF-8): Dokumentacja API biblioteki cgicc | |
80 | Group: Documentation | |
36b777f0 ER |
81 | %if "%{_rpmversion}" >= "5" |
82 | BuildArch: noarch | |
83 | %endif | |
6b30652b JB |
84 | |
85 | %description apidocs | |
86 | API documentation for cgicc library. | |
87 | ||
88 | %description apidocs -l pl.UTF-8 | |
89 | Dokumentacja API biblioteki cgicc. | |
90 | ||
e9d74984 | 91 | %prep |
92 | %setup -q | |
6b30652b | 93 | %patch0 -p1 |
e9d74984 | 94 | |
95 | %build | |
96 | %{__libtoolize} | |
97 | %{__aclocal} | |
98 | %{__autoconf} | |
99 | %{__autoheader} | |
100 | %{__automake} | |
7202c939 | 101 | %configure \ |
6b30652b JB |
102 | --disable-demos \ |
103 | %{!?with_static_libs:--disable-static} | |
e9d74984 | 104 | %{__make} |
105 | ||
106 | %install | |
107 | rm -rf $RPM_BUILD_ROOT | |
108 | ||
109 | %{__make} install \ | |
110 | DESTDIR=$RPM_BUILD_ROOT | |
111 | ||
6b30652b | 112 | # packaged as %doc in -apidocs |
2861b66c | 113 | %{__rm} -r $RPM_BUILD_ROOT%{_prefix}/doc/%{name}-3.2.16 |
6b30652b | 114 | |
e9d74984 | 115 | %clean |
116 | rm -rf $RPM_BUILD_ROOT | |
117 | ||
118 | %post -p /sbin/ldconfig | |
119 | %postun -p /sbin/ldconfig | |
120 | ||
121 | %files | |
122 | %defattr(644,root,root,755) | |
3a4b8ac3 | 123 | %doc AUTHORS BUGS ChangeLog NEWS README THANKS doc/html/* |
6b30652b JB |
124 | %attr(755,root,root) %{_libdir}/libcgicc.so.*.*.* |
125 | %attr(755,root,root) %ghost %{_libdir}/libcgicc.so.3 | |
e9d74984 | 126 | |
127 | %files devel | |
128 | %defattr(644,root,root,755) | |
6b30652b JB |
129 | %attr(755,root,root) %{_bindir}/cgicc-config |
130 | %attr(755,root,root) %{_libdir}/libcgicc.so | |
131 | %{_libdir}/libcgicc.la | |
e9d74984 | 132 | %{_includedir}/cgicc |
6b30652b JB |
133 | %{_pkgconfigdir}/cgicc.pc |
134 | %{_aclocaldir}/cgicc.m4 | |
e9d74984 | 135 | |
7202c939 | 136 | %if %{with static_libs} |
e9d74984 | 137 | %files static |
138 | %defattr(644,root,root,755) | |
6b30652b | 139 | %{_libdir}/libcgicc.a |
7202c939 | 140 | %endif |
6b30652b JB |
141 | |
142 | %files apidocs | |
143 | %defattr(644,root,root,755) | |
144 | %doc doc/html/* |