]>
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 | 5 | Name: cgilibc |
b6bfdf33 JB |
6 | Version: 0.7 |
7 | Release: 1 | |
8 | License: GPL v2+ | |
40ae56e0 | 9 | Group: Libraries |
b6bfdf33 JB |
10 | Source0: http://www.infodrom.org/projects/cgilib/download/%{realname}-%{version}.tar.gz |
11 | # Source0-md5: 2c7053f58dfb06f7a80a112797ed7e86 | |
12 | Patch0: %{name}-suffix.patch | |
13 | URL: http://www.infodrom.org/projects/cgilib/ | |
14 | BuildRequires: autoconf >= 2.50 | |
15 | BuildRequires: automake | |
40ae56e0 JB |
16 | BuildRequires: libtool |
17 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
18 | ||
19 | %description | |
20 | Common Gateway Interface library written in pure C by Martin Schultze. | |
21 | Original project name was "cgilib", but we must have renamed it | |
22 | because of name conflict with existing cgilib package (completely | |
23 | different CGI library in C++ from http://cgilib.sourceforge.net/). | |
24 | ||
a930bd04 | 25 | %description -l pl.UTF-8 |
40ae56e0 JB |
26 | Biblioteka CGI (Common Gateway Interface) napisana w czystym C przez |
27 | Martina Schultze. Oryginalna nazwa projektu to "cgilib", ale | |
a930bd04 JR |
28 | musieliśmy ją zmienić z powodu konfliktu z już istniejącym pakietem |
29 | cgilib (całkowicie inną biblioteką CGI w C++ z | |
40ae56e0 JB |
30 | http://cgilib.sourceforge.net/). |
31 | ||
32 | %package devel | |
33 | Summary: cgilib header files | |
1ab3f46e | 34 | Summary(pl.UTF-8): Pliki nagłówkowe cgilib |
40ae56e0 | 35 | Group: Development/Libraries |
14e983b1 | 36 | Requires: %{name} = %{version}-%{release} |
40ae56e0 JB |
37 | |
38 | %description devel | |
39 | cgilib header files. | |
40 | ||
a930bd04 JR |
41 | %description devel -l pl.UTF-8 |
42 | Pliki nagłówkowe cgilib. | |
40ae56e0 JB |
43 | |
44 | %package static | |
45 | Summary: Static version of cgilib | |
1ab3f46e | 46 | Summary(pl.UTF-8): Statyczna wersja cgilib |
40ae56e0 | 47 | Group: Development/Libraries |
14e983b1 | 48 | Requires: %{name}-devel = %{version}-%{release} |
40ae56e0 JB |
49 | |
50 | %description static | |
51 | Static version of cgilib. | |
52 | ||
a930bd04 | 53 | %description static -l pl.UTF-8 |
40ae56e0 JB |
54 | Statyczna wersja cgilib. |
55 | ||
56 | %prep | |
57 | %setup -q -n %{realname}-%{version} | |
58 | %patch0 -p1 | |
40ae56e0 JB |
59 | |
60 | %build | |
b6bfdf33 JB |
61 | %{__libtoolize} |
62 | %{__aclocal} | |
63 | %{__autoconf} | |
64 | %{__automake} | |
65 | %configure | |
66 | %{__make} | |
40ae56e0 JB |
67 | |
68 | %install | |
69 | rm -rf $RPM_BUILD_ROOT | |
70 | ||
71 | %{__make} install \ | |
b6bfdf33 JB |
72 | DESTDIR=$RPM_BUILD_ROOT |
73 | ||
74 | # examples - include as source, not binaries | |
75 | %{__rm} $RPM_BUILD_ROOT%{_bindir}/{cgitest,jumpto} | |
76 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
77 | cp -p cgitest.c jumpto.c $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
40ae56e0 JB |
78 | |
79 | %clean | |
80 | rm -rf $RPM_BUILD_ROOT | |
81 | ||
0d56d605 JB |
82 | %post -p /sbin/ldconfig |
83 | %postun -p /sbin/ldconfig | |
84 | ||
40ae56e0 JB |
85 | %files |
86 | %defattr(644,root,root,755) | |
b6bfdf33 JB |
87 | %doc AUTHORS ChangeLog README cookies.txt |
88 | %attr(755,root,root) %{_libdir}/libcgic.so.*.*.* | |
89 | %attr(755,root,root) %ghost %{_libdir}/libcgic.so.1 | |
40ae56e0 JB |
90 | |
91 | %files devel | |
92 | %defattr(644,root,root,755) | |
b6bfdf33 JB |
93 | %attr(755,root,root) %{_libdir}/libcgic.so |
94 | %{_libdir}/libcgic.la | |
40ae56e0 | 95 | %{_includedir}/cgilibc |
b6bfdf33 JB |
96 | %{_mandir}/man3/cgi*.3* |
97 | %{_mandir}/man5/cgi.5* | |
98 | %{_examplesdir}/%{name}-%{version} | |
40ae56e0 JB |
99 | |
100 | %files static | |
101 | %defattr(644,root,root,755) | |
b6bfdf33 | 102 | %{_libdir}/libcgic.a |