]>
Commit | Line | Data |
---|---|---|
3c208b64 | 1 | Summary: A CGI (Common Gateway Interface) library for C++ |
457b17e3 | 2 | Summary(pl.UTF-8): Biblioteka CGI dla C++ |
3c208b64 AM |
3 | Name: cgilib |
4 | Version: 0.1.1 | |
9c5aa4ce | 5 | Release: 2 |
2249b6f2 | 6 | License: GPL |
9c5aa4ce | 7 | Group: Libraries |
bf897779 | 8 | Source0: http://dl.sourceforge.net/cgilib/%{name}-%{version}.tar.bz2 |
a785c3da | 9 | # Source0-md5: 961308218b6e19ed98aacfd397a0f062 |
3c208b64 AM |
10 | Patch0: %{name}-misc.patch |
11 | Patch1: %{name}-am_ac.patch | |
9c5aa4ce | 12 | Patch2: %{name}-gcc3.patch |
2249b6f2 | 13 | URL: http://cgilib.sourceforge.net/ |
3c208b64 AM |
14 | BuildRequires: autoconf |
15 | BuildRequires: automake | |
2249b6f2 | 16 | BuildRequires: libstdc++-devel |
3c208b64 AM |
17 | BuildRequires: libtool |
18 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
19 | ||
20 | %description | |
21 | cgilib is a library for programming CGIs (Common Gateway Interface, | |
22 | most commonly used for server-side web page scripting) in C++ | |
23 | ||
b267710a JR |
24 | %description -l pl.UTF-8 |
25 | cgilib jest biblioteką do programowania CGI (Common Gateway Interface, | |
26 | najbardziej popularny sposób uruchamiania skryptów po stronie serwera | |
27 | WWW) napisaną w C++. | |
3c208b64 AM |
28 | |
29 | %package devel | |
30 | Summary: Header files and develpment documentation for cgilib | |
457b17e3 | 31 | Summary(pl.UTF-8): Pliki nagłówkowe oraz dokumentacja developerska dla cgilib |
3c208b64 | 32 | Group: Development/Libraries |
bbe1a159 | 33 | Requires: %{name} = %{version}-%{release} |
3c208b64 AM |
34 | |
35 | %description devel | |
36 | Header files and develpment documentation for cgilib. | |
37 | ||
b267710a JR |
38 | %description devel -l pl.UTF-8 |
39 | Pliki nagłówkowe oraz dokumentacja developerska dla cgilib. | |
3c208b64 AM |
40 | |
41 | %package static | |
42 | Summary: Static cgilib library | |
457b17e3 | 43 | Summary(pl.UTF-8): Biblioteka statyczna cgilib |
3c208b64 | 44 | Group: Development/Libraries |
bbe1a159 | 45 | Requires: %{name}-devel = %{version}-%{release} |
3c208b64 AM |
46 | |
47 | %description static | |
48 | Static cgilib library. | |
49 | ||
b267710a | 50 | %description static -l pl.UTF-8 |
3c208b64 AM |
51 | Biblioteka statyczna cgilib. |
52 | ||
53 | %prep | |
3c208b64 | 54 | %setup -q |
2249b6f2 | 55 | %patch0 -p1 |
56 | %patch1 -p1 | |
9c5aa4ce | 57 | %patch2 -p1 |
3c208b64 AM |
58 | |
59 | %build | |
2249b6f2 | 60 | rm -f *.m4 missing |
3c208b64 AM |
61 | %{__libtoolize} |
62 | %{__aclocal} | |
63 | %{__autoconf} | |
64 | %{__automake} | |
65 | %configure \ | |
66 | --enable-static | |
67 | %{__make} | |
68 | ||
69 | %install | |
70 | rm -rf $RPM_BUILD_ROOT | |
71 | ||
72 | %{__make} install \ | |
73 | DESTDIR=$RPM_BUILD_ROOT | |
74 | ||
3c208b64 AM |
75 | %clean |
76 | rm -rf $RPM_BUILD_ROOT | |
77 | ||
b098b564 | 78 | %post -p /sbin/ldconfig |
79 | %postun -p /sbin/ldconfig | |
bf897779 | 80 | |
3c208b64 AM |
81 | %files |
82 | %defattr(644,root,root,755) | |
83 | %doc AUTHORS NEWS | |
bf897779 | 84 | %attr(755,root,root) %{_libdir}/lib*.so.*.* |
3c208b64 AM |
85 | |
86 | %files devel | |
87 | %defattr(644,root,root,755) | |
3c208b64 | 88 | %attr(755,root,root) %{_libdir}/lib*.so |
27c8c51e | 89 | %{_libdir}/lib*.la |
2249b6f2 | 90 | %{_includedir}/cgilib |
3c208b64 AM |
91 | |
92 | %files static | |
93 | %defattr(644,root,root,755) | |
94 | %{_libdir}/lib*.a |