]> git.pld-linux.org Git - packages/cgilibc.git/blob - cgilibc.spec
- tabs in preamble
[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.UTF-8):      Biblioteka CGI (Common Gateway Interface)
5 Name:           cgilibc
6 Version:        0.5
7 Release:        2
8 License:        GPL
9 Group:          Libraries
10 Source0:        ftp://ibiblio.org/pub/Linux/libs/%{realname}-%{version}.tar.gz
11 # Source0-md5:  5187ba11b2ec165b6c5b6629087733b0
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
23 %description -l pl.UTF-8
24 Biblioteka CGI (Common Gateway Interface) napisana w czystym C przez
25 Martina Schultze. Oryginalna nazwa projektu to "cgilib", ale
26 musieliśmy ją zmienić z powodu konfliktu z już istniejącym pakietem
27 cgilib (całkowicie inną biblioteką CGI w C++ z
28 http://cgilib.sourceforge.net/).
29
30 %package devel
31 Summary:        cgilib header files
32 Summary(pl.UTF-8):      Pliki nagłówkowe cgilib
33 Group:          Development/Libraries
34 Requires:       %{name} = %{version}-%{release}
35
36 %description devel
37 cgilib header files.
38
39 %description devel -l pl.UTF-8
40 Pliki nagłówkowe cgilib.
41
42 %package static
43 Summary:        Static version of cgilib
44 Summary(pl.UTF-8):      Statyczna wersja cgilib
45 Group:          Development/Libraries
46 Requires:       %{name}-devel = %{version}-%{release}
47
48 %description static
49 Static version of cgilib.
50
51 %description static -l pl.UTF-8
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}" \
62         CFLAGS="%{rpmcflags} -Wall -I." \
63         LIBDIR=%{_libdir}
64
65 %install
66 rm -rf $RPM_BUILD_ROOT
67
68 %{__make} install \
69         DESTDIR=$RPM_BUILD_ROOT \
70         LIBDIR=%{_libdir}
71
72 %clean
73 rm -rf $RPM_BUILD_ROOT
74
75 %post   -p /sbin/ldconfig
76 %postun -p /sbin/ldconfig
77
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
This page took 0.099566 seconds and 3 git commands to generate.