1 Summary: An easy-to-use self-sufficient web server
6 Group: Applications/System
7 Source0: http://mongoose.googlecode.com/files/%{name}-%{version}.tgz
8 # Source0-md5: e718fc287b4eb1bd523be3fa00942bb0
10 URL: http://code.google.com/p/mongoose
11 BuildRequires: openssl-devel
13 # http://code.google.com/p/mongoose/issues/detail?id=372
14 Patch0: %{name}-fix-libmongoose-so-build.patch
15 # http://code.google.com/p/mongoose/issues/detail?id=371
16 Patch1: %{name}-fix-no-ssl-dl-build-error.patch
17 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20 Mongoose web server executable is self-sufficient, it does not depend
21 on anything to start serving requests. If it is copied to any
22 directory and executed, it starts to serve that directory on port 8080
23 (so to access files, go to http://localhost:8080). If some additional
24 configuration is required - for example, different listening port or
25 IP-based access control, then a 'mongoose.conf' file with respective
26 options can be created in the same directory where executable lives.
27 This makes Mongoose perfect for all sorts of demos, quick tests, file
28 sharing, and Web programming.
31 Summary: Shared Object for applications that use %{name} embedded
32 Group: Development/Libraries
35 This package contains the shared library required by applications that
36 are using %{name}'s embeddable API to provide web services.
39 Summary: Header files and development libraries for %{name}
40 Group: Development/Libraries
41 Requires: %{name}-libs = %{version}-%{release}
44 This package contains the header files and development libraries for
45 %{name}. If you like to develop programs embedding %{name} on them,
46 you will need to install %{name}-devel and check %{name}'s API at its
47 comprisable header file.
51 %patch0 -p1 -b .solib-build
52 %patch1 -p1 -b .nossldl-build
53 install -p -m 0644 %{SOURCE1} .
56 export VERSION=%{version}
60 SOVER="${VERSION%.?}" \
61 CFLAGS="%{rpmcflags} -lssl -lcrypto -DNO_SSL_DL" \
65 rm -rf $RPM_BUILD_ROOT
66 install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1,%{_includedir}}
67 install -p %{name} $RPM_BUILD_ROOT%{_bindir}
68 cp -p %{name}.1 $RPM_BUILD_ROOT%{_mandir}/man1
72 install -p lib%{name}.so.%{version} $RPM_BUILD_ROOT%{_libdir}/lib%{name}.so.$VERSION
73 ln -s lib%{name}.so.$VERSION $RPM_BUILD_ROOT%{_libdir}/lib%{name}.so.${VERSION%.?}
76 cp -p %{name}.h $RPM_BUILD_ROOT%{_includedir}
77 ln -s lib%{name}.so.$VERSION $RPM_BUILD_ROOT%{_libdir}/lib%{name}.so
80 rm -rf $RPM_BUILD_ROOT
82 %post libs -p /sbin/ldconfig
83 %postun libs -p /sbin/ldconfig
86 %defattr(644,root,root,755)
87 %doc %{name}.conf LICENSE
88 %attr(755,root,root) %{_bindir}/%{name}
89 %{_mandir}/man1/%{name}.1*
92 %defattr(644,root,root,755)
93 %attr(755,root,root) %{_libdir}/lib%{name}.so.*.*
94 %attr(755,root,root) %ghost %{_libdir}/lib%{name}.so.3
97 %defattr(644,root,root,755)
98 %{_includedir}/%{name}.h
99 %{_libdir}/lib%{name}.so