]> git.pld-linux.org Git - packages/cgilibc.git/blame - cgilibc.spec
- new URLs
[packages/cgilibc.git] / cgilibc.spec
CommitLineData
40ae56e0
JB
1# the true package name is "cgilib", but it was already taken by other library
2%define realname cgilib
3Summary: Common Gateway Interface library
1ab3f46e 4Summary(pl.UTF-8): Biblioteka CGI (Common Gateway Interface)
40ae56e0 5Name: cgilibc
b6bfdf33
JB
6Version: 0.7
7Release: 1
8License: GPL v2+
40ae56e0 9Group: Libraries
b6bfdf33
JB
10Source0: http://www.infodrom.org/projects/cgilib/download/%{realname}-%{version}.tar.gz
11# Source0-md5: 2c7053f58dfb06f7a80a112797ed7e86
12Patch0: %{name}-suffix.patch
13URL: http://www.infodrom.org/projects/cgilib/
14BuildRequires: autoconf >= 2.50
15BuildRequires: automake
40ae56e0
JB
16BuildRequires: libtool
17BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19%description
20Common Gateway Interface library written in pure C by Martin Schultze.
21Original project name was "cgilib", but we must have renamed it
22because of name conflict with existing cgilib package (completely
23different CGI library in C++ from http://cgilib.sourceforge.net/).
24
a930bd04 25%description -l pl.UTF-8
40ae56e0
JB
26Biblioteka CGI (Common Gateway Interface) napisana w czystym C przez
27Martina Schultze. Oryginalna nazwa projektu to "cgilib", ale
a930bd04
JR
28musieliśmy ją zmienić z powodu konfliktu z już istniejącym pakietem
29cgilib (całkowicie inną biblioteką CGI w C++ z
40ae56e0
JB
30http://cgilib.sourceforge.net/).
31
32%package devel
33Summary: cgilib header files
1ab3f46e 34Summary(pl.UTF-8): Pliki nagłówkowe cgilib
40ae56e0 35Group: Development/Libraries
14e983b1 36Requires: %{name} = %{version}-%{release}
40ae56e0
JB
37
38%description devel
39cgilib header files.
40
a930bd04
JR
41%description devel -l pl.UTF-8
42Pliki nagłówkowe cgilib.
40ae56e0
JB
43
44%package static
45Summary: Static version of cgilib
1ab3f46e 46Summary(pl.UTF-8): Statyczna wersja cgilib
40ae56e0 47Group: Development/Libraries
14e983b1 48Requires: %{name}-devel = %{version}-%{release}
40ae56e0
JB
49
50%description static
51Static version of cgilib.
52
a930bd04 53%description static -l pl.UTF-8
40ae56e0
JB
54Statyczna 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
69rm -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}
76install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
77cp -p cgitest.c jumpto.c $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
40ae56e0
JB
78
79%clean
80rm -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
This page took 0.072814 seconds and 4 git commands to generate.