]> git.pld-linux.org Git - packages/cgilibc.git/blob - cgilibc.spec
13ba3611bbac11a227ee113761ff2888bc2665b5
[packages/cgilibc.git] / cgilibc.spec
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
4 Summary(pl):    Biblioteka CGI (Common Gateway Interface)
5 Name:           cgilibc
6 Version:        0.5
7 Release:        1
8 License:        GPL
9 Group:          Libraries
10 Source0:        ftp://ibiblio.org/pub/Linux/libs/%{realname}-%{version}.tar.gz
11 Patch0:         %{name}-shared.patch
12 Patch1:         %{name}-fix.patch
13 BuildRequires:  libtool
14 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
15
16 %description
17 Common Gateway Interface library written in pure C by Martin Schultze.
18 Original project name was "cgilib", but we must have renamed it
19 because of name conflict with existing cgilib package (completely
20 different CGI library in C++ from http://cgilib.sourceforge.net/).
21
22 %description -l pl
23 Biblioteka CGI (Common Gateway Interface) napisana w czystym C przez
24 Martina Schultze. Oryginalna nazwa projektu to "cgilib", ale
25 musieli¶my j± zmieniæ z powodu konfliktu z ju¿ istniej±cym pakietem
26 cgilib (ca³kowicie inn± bibliotek± CGI w C++ z
27 http://cgilib.sourceforge.net/).
28
29 %package devel
30 Summary:        cgilib header files
31 Summary(pl):    Pliki nag³ówkowe cgilib
32 Group:          Development/Libraries
33 Requires:       %{name} = %{version}
34
35 %description devel
36 cgilib header files.
37
38 %description devel -l pl
39 Pliki nag³ówkowe cgilib.
40
41 %package static
42 Summary:        Static version of cgilib
43 Summary(pl):    Statyczna wersja cgilib
44 Group:          Development/Libraries
45 Requires:       %{name}-devel = %{version}
46
47 %description static
48 Static version of cgilib.
49
50 %description static -l pl
51 Statyczna wersja cgilib.
52
53 %prep
54 %setup -q -n %{realname}-%{version}
55 %patch0 -p1
56 %patch1 -p1
57
58 %build
59 %{__make} \
60         CC="%{__cc}" \
61         CFLAGS="%{rpmcflags} -Wall -I."
62
63 %install
64 rm -rf $RPM_BUILD_ROOT
65
66 %{__make} install \
67         DESTDIR=$RPM_BUILD_ROOT
68
69 %clean
70 rm -rf $RPM_BUILD_ROOT
71
72 %post   -p /sbin/ldconfig
73 %postun -p /sbin/ldconfig
74
75 %files
76 %defattr(644,root,root,755)
77 %doc CHANGES CREDITS cookies.txt readme
78 %attr(755,root,root) %{_libdir}/lib*.so.*.*.*
79
80 %files devel
81 %defattr(644,root,root,755)
82 %attr(755,root,root) %{_libdir}/lib*.so
83 %{_libdir}/lib*.la
84 %{_includedir}/cgilibc
85 %{_mandir}/man[35]/*
86
87 %files static
88 %defattr(644,root,root,755)
89 %{_libdir}/lib*.a
This page took 0.095152 seconds and 3 git commands to generate.