]>
Commit | Line | Data |
---|---|---|
40ae56e0 JB |
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 | |
1ab3f46e | 4 | Summary(pl.UTF-8): Biblioteka CGI (Common Gateway Interface) |
40ae56e0 JB |
5 | Name: cgilibc |
6 | Version: 0.5 | |
08894b10 | 7 | Release: 3 |
40ae56e0 JB |
8 | License: GPL |
9 | Group: Libraries | |
10 | Source0: ftp://ibiblio.org/pub/Linux/libs/%{realname}-%{version}.tar.gz | |
966d7e0a | 11 | # Source0-md5: 5187ba11b2ec165b6c5b6629087733b0 |
40ae56e0 JB |
12 | Patch0: %{name}-shared.patch |
13 | Patch1: %{name}-fix.patch | |
14 | BuildRequires: libtool | |
15 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
16 | ||
17 | %description | |
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/). | |
22 | ||
a930bd04 | 23 | %description -l pl.UTF-8 |
40ae56e0 JB |
24 | Biblioteka CGI (Common Gateway Interface) napisana w czystym C przez |
25 | Martina Schultze. Oryginalna nazwa projektu to "cgilib", ale | |
a930bd04 JR |
26 | musieliśmy ją zmienić z powodu konfliktu z już istniejącym pakietem |
27 | cgilib (całkowicie inną biblioteką CGI w C++ z | |
40ae56e0 JB |
28 | http://cgilib.sourceforge.net/). |
29 | ||
30 | %package devel | |
31 | Summary: cgilib header files | |
1ab3f46e | 32 | Summary(pl.UTF-8): Pliki nagłówkowe cgilib |
40ae56e0 | 33 | Group: Development/Libraries |
14e983b1 | 34 | Requires: %{name} = %{version}-%{release} |
40ae56e0 JB |
35 | |
36 | %description devel | |
37 | cgilib header files. | |
38 | ||
a930bd04 JR |
39 | %description devel -l pl.UTF-8 |
40 | Pliki nagłówkowe cgilib. | |
40ae56e0 JB |
41 | |
42 | %package static | |
43 | Summary: Static version of cgilib | |
1ab3f46e | 44 | Summary(pl.UTF-8): Statyczna wersja cgilib |
40ae56e0 | 45 | Group: Development/Libraries |
14e983b1 | 46 | Requires: %{name}-devel = %{version}-%{release} |
40ae56e0 JB |
47 | |
48 | %description static | |
49 | Static version of cgilib. | |
50 | ||
a930bd04 | 51 | %description static -l pl.UTF-8 |
40ae56e0 JB |
52 | Statyczna wersja cgilib. |
53 | ||
54 | %prep | |
55 | %setup -q -n %{realname}-%{version} | |
56 | %patch0 -p1 | |
57 | %patch1 -p1 | |
58 | ||
59 | %build | |
60 | %{__make} \ | |
61 | CC="%{__cc}" \ | |
14e983b1 JB |
62 | CFLAGS="%{rpmcflags} -Wall -I." \ |
63 | LIBDIR=%{_libdir} | |
40ae56e0 JB |
64 | |
65 | %install | |
66 | rm -rf $RPM_BUILD_ROOT | |
67 | ||
68 | %{__make} install \ | |
14e983b1 JB |
69 | DESTDIR=$RPM_BUILD_ROOT \ |
70 | LIBDIR=%{_libdir} | |
40ae56e0 JB |
71 | |
72 | %clean | |
73 | rm -rf $RPM_BUILD_ROOT | |
74 | ||
0d56d605 JB |
75 | %post -p /sbin/ldconfig |
76 | %postun -p /sbin/ldconfig | |
77 | ||
40ae56e0 JB |
78 | %files |
79 | %defattr(644,root,root,755) | |
80 | %doc CHANGES CREDITS cookies.txt readme | |
81 | %attr(755,root,root) %{_libdir}/lib*.so.*.*.* | |
82 | ||
83 | %files devel | |
84 | %defattr(644,root,root,755) | |
85 | %attr(755,root,root) %{_libdir}/lib*.so | |
86 | %{_libdir}/lib*.la | |
87 | %{_includedir}/cgilibc | |
88 | %{_mandir}/man[35]/* | |
89 | ||
90 | %files static | |
91 | %defattr(644,root,root,755) | |
92 | %{_libdir}/lib*.a |