]>
Commit | Line | Data |
---|---|---|
c0346018 | 1 | Summary: A C library for CGI programming |
4784125e | 2 | Summary(pl.UTF-8): Biblioteka C do programowania CGI |
c0346018 | 3 | Name: cgic |
215008b7 | 4 | Version: 205 |
c0346018 SZ |
5 | Release: 1 |
6 | License: BSD-like | |
7 | Group: Libraries | |
8 | Source0: http://www.boutell.com/%{name}/%{name}%{version}.tar.gz | |
215008b7 | 9 | # Source0-md5: b7981300eb14e772f45c0c7add54d629 |
c0346018 SZ |
10 | Patch0: %{name}-shared.patch |
11 | URL: http://www.boutell.com/cgic/ | |
12 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
13 | ||
14 | %description | |
15 | cgic is an ANSI C-language library for the creation of CGI-based | |
16 | World Wide Web applications. | |
17 | ||
5fd8f9aa JR |
18 | %description -l pl.UTF-8 |
19 | cgic jest biblioteką języka ANSI-C służącą tworzeniu aplikacji WWW | |
ba812bb9 | 20 | opartych na CGI. |
c0346018 SZ |
21 | |
22 | %package devel | |
23 | Summary: A C library for CGI programming - header files | |
4784125e | 24 | Summary(pl.UTF-8): Biblioteka C do programowania CGI - pliki nagłówkowe |
c0346018 | 25 | Group: Development/Libraries |
ba812bb9 | 26 | Requires: %{name} = %{version}-%{release} |
c0346018 SZ |
27 | |
28 | %description devel | |
ba812bb9 | 29 | Header files for cgic library. |
c0346018 | 30 | |
5fd8f9aa JR |
31 | %description devel -l pl.UTF-8 |
32 | Pliki nagłówkowe biblioteki cgic. | |
c0346018 SZ |
33 | |
34 | %package static | |
ba812bb9 | 35 | Summary: A C library for CGI programming - static version |
4784125e | 36 | Summary(pl.UTF-8): Biblioteka C do programowania CGI - wersja statyczna |
c0346018 | 37 | Group: Development/Libraries |
ba812bb9 | 38 | Requires: %{name}-devel = %{version}-%{release} |
c0346018 SZ |
39 | |
40 | %description static | |
ba812bb9 | 41 | Static version of cgic library. |
c0346018 | 42 | |
5fd8f9aa | 43 | %description static -l pl.UTF-8 |
ba812bb9 | 44 | Statyczna wersja biblioteki cgic. |
c0346018 SZ |
45 | |
46 | %prep | |
47 | %setup -q -n %{name}%{version} | |
48 | %patch0 -p1 | |
49 | ||
50 | %build | |
215008b7 | 51 | %{__make} CFLAGS="%{rpmcflags}" \ |
52 | CC="%{__cc}" | |
c0346018 SZ |
53 | |
54 | %install | |
55 | rm -rf $RPM_BUILD_ROOT | |
56 | install -d $RPM_BUILD_ROOT{%{_libdir},%{_includedir}} | |
57 | ||
c0346018 SZ |
58 | install libcgic.* $RPM_BUILD_ROOT%{_libdir} |
59 | install *.h $RPM_BUILD_ROOT%{_includedir} | |
ba812bb9 JB |
60 | cd $RPM_BUILD_ROOT%{_libdir} |
61 | ln -sf libcgic.so.* libcgic.so | |
c0346018 SZ |
62 | |
63 | %clean | |
64 | rm -rf $RPM_BUILD_ROOT | |
65 | ||
79d16360 | 66 | %post -p /sbin/ldconfig |
67 | %postun -p /sbin/ldconfig | |
c0346018 SZ |
68 | |
69 | %files | |
70 | %defattr(644,root,root,755) | |
71 | %doc license.txt support.txt | |
72 | %{_libdir}/*.so.* | |
73 | ||
74 | %files devel | |
75 | %defattr(644,root,root,755) | |
76 | %doc *.html | |
77 | %attr(755,root,root) %{_libdir}/*.so | |
78 | %{_includedir}/*.h | |
79 | ||
80 | %files static | |
81 | %defattr(644,root,root,755) | |
82 | %{_libdir}/*.a |