Rafael Aquini 489da94
Name:		mongoose
Rafael Aquini 489da94
Summary:	An easy-to-use self-sufficient web server
Rafael Aquini 489da94
Version:	3.1
914d119
Release:	17%{?dist}
Rafael Aquini 489da94
License:	MIT
Rafael Aquini 489da94
URL:		http://code.google.com/p/mongoose
Rafael Aquini 489da94
Source0:	http://mongoose.googlecode.com/files/mongoose-%{version}.tgz
Rafael Aquini 489da94
Source1:	mongoose.conf
e6557ab
BuildRequires:  gcc-c++
Rafael Aquini 489da94
BuildRequires:	openssl-devel
Rafael Aquini 489da94
Rafael Aquini 489da94
# Build changes:
Rafael Aquini 489da94
# http://code.google.com/p/mongoose/issues/detail?id=372 
Rafael Aquini 489da94
Patch0:		mongoose-fix-libmongoose-so-build.patch
Rafael Aquini 489da94
# http://code.google.com/p/mongoose/issues/detail?id=371
Rafael Aquini 489da94
Patch1:		mongoose-fix-no-ssl-dl-build-error.patch
Rafael Aquini 489da94
ac5ef60
ac5ef60
%description
ac5ef60
Mongoose web server executable is self-sufficient, it does not depend on 
ac5ef60
anything to start serving requests. If it is copied to any directory and 
ac5ef60
executed, it starts to serve that directory on port 8080 (so to access files, 
ac5ef60
go to http://localhost:8080). If some additional configuration is required - 
ac5ef60
for example, different listening port or IP-based access control, then a 
ac5ef60
'mongoose.conf' file with respective options can be created in the same 
ac5ef60
directory where executable lives. This makes Mongoose perfect for all sorts 
ac5ef60
of demos, quick tests, file sharing, and Web programming.
ac5ef60
Rafael Aquini 489da94
%package lib
Rafael Aquini 489da94
Summary:	Shared Object for applications that use %{name} embedded
Rafael Aquini 489da94
Rafael Aquini 489da94
%description lib
Rafael Aquini 489da94
This package contains the shared library required by applications that
Rafael Aquini 489da94
are using %{name}'s embeddable API to provide web services. 
Rafael Aquini 489da94
0bc2ccc
%ldconfig_scriptlets lib
Rafael Aquini 489da94
Rafael Aquini 489da94
%package devel
Rafael Aquini 489da94
Summary:	Header files and development libraries for %{name}
Rafael Aquini 489da94
Requires:	%{name}-lib = %{version}-%{release}
Rafael Aquini 489da94
Rafael Aquini 489da94
%description devel
Rafael Aquini 489da94
This package contains the header files and development libraries
Rafael Aquini 489da94
for %{name}. If you like to develop programs embedding %{name} on them,
Rafael Aquini 489da94
you will need to install %{name}-devel and check %{name}'s API at its
Rafael Aquini 489da94
comprisable header file.
Rafael Aquini 489da94
ac5ef60
%prep
ac5ef60
%setup -q -n %{name}
Rafael Aquini 489da94
%patch0 -p1 -b .solib-build
Rafael Aquini 489da94
%patch1 -p1 -b .nossldl-build
ac5ef60
%{__install} -p -m 0644  %{SOURCE1} .
ac5ef60
ac5ef60
%build
Rafael Aquini 489da94
export VERSION=%{version}
Rafael Aquini 489da94
%{__make} %{?_smp_mflags} VER="$VERSION" SOVER="${VERSION%.?}" \
Rafael Aquini 489da94
			CFLAGS="%{optflags} -lssl -lcrypto -DNO_SSL_DL" linux 
ac5ef60
ac5ef60
%install
ac5ef60
%{__rm} -rf %{buildroot}
ac5ef60
%{__install} -D -p -m 0755 %{name} %{buildroot}/%{_bindir}/%{name}
ac5ef60
%{__install} -D -p -m 0644 %{name}.1 %{buildroot}/%{_mandir}/man1/%{name}.1
Rafael Aquini 489da94
# -lib subpackage
Rafael Aquini 489da94
export VERSION=%{version}
Rafael Aquini 489da94
%{__install} -D -p -m 0755 lib%{name}.so.%{version} \
Rafael Aquini 489da94
		%{buildroot}/%{_libdir}/lib%{name}.so.$VERSION
Rafael Aquini 489da94
ln -s %{_libdir}/lib%{name}.so.$VERSION \
Rafael Aquini 489da94
		%{buildroot}/%{_libdir}/lib%{name}.so.${VERSION%.?}
Rafael Aquini 489da94
# -devel subpackage
Rafael Aquini 489da94
%{__install} -D -p -m 0644 %{name}.h %{buildroot}/%{_includedir}/%{name}.h
Rafael Aquini 489da94
ln -s %{_libdir}/lib%{name}.so.$VERSION \
Rafael Aquini 489da94
		%{buildroot}/%{_libdir}/lib%{name}.so
ac5ef60
ac5ef60
%files
1a8aa87
%doc %{name}.conf LICENSE
ac5ef60
%{_bindir}/%{name}
ac5ef60
%{_mandir}/man1/%{name}.1*
ac5ef60
Rafael Aquini 489da94
%files lib
Rafael Aquini 489da94
%{_libdir}/lib%{name}.so.* 
Rafael Aquini 489da94
Rafael Aquini 489da94
%files devel
Rafael Aquini 489da94
%{_includedir}/%{name}.h
Rafael Aquini 489da94
%{_libdir}/lib%{name}.so
Rafael Aquini 489da94
ac5ef60
%changelog
914d119
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.1-17
914d119
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
914d119
ab86563
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.1-16
ab86563
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
ab86563
edd751a
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.1-15
edd751a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
edd751a
621a159
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.1-14
621a159
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
621a159
8ff4f28
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.1-13
8ff4f28
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
8ff4f28
a121bf9
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.1-12
a121bf9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
a121bf9
d4efe55
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.1-11
d4efe55
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
d4efe55
44bae5e
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.1-10
44bae5e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
44bae5e
4d99af2
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.1-9
4d99af2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
4d99af2
1edbf10
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 3.1-8
1edbf10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
1edbf10
eec1dd2
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.1-7
eec1dd2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
eec1dd2
cc87f28
* Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 3.1-6
cc87f28
- Rebuilt for GCC 5 C++11 ABI change
cc87f28
36bf755
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.1-5
36bf755
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
36bf755
017804f
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.1-4
017804f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
017804f
d60bfd1
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.1-3
d60bfd1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
d60bfd1
4480a25
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.1-2
4480a25
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
4480a25
Rafael Aquini 489da94
* Thu Jul  5 2012 Rafael Azenha Aquini <aquini at linux dot com> - 3.1-1
Rafael Aquini 489da94
- Packaged mongoose's upstream 3.1 release.
Rafael Aquini 489da94
- Introduced -lib -devel sub-packages (804843)
Rafael Aquini 489da94
- Change build option to -DNO_SSL_DL (804844)
Rafael Aquini 489da94
a545de1
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0-3
a545de1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
a545de1
Rafael Aquini 83e20e8
* Sat Aug 27 2011 Rafael Azenha Aquini <aquini at linux dot com> - 3.0-2
Rafael Aquini 83e20e8
- Add upstream patch to fix CVE-2011-2900 (729146) 
Rafael Aquini 83e20e8
03b19c6
* Mon Jul 25 2011 Rafael Azenha Aquini <aquini at linux dot com> - 3.0-1
03b19c6
- Rebuilt for Fedora's inclusion, after scracth-build successful tests. 
03b19c6
aedfb4c
* Mon Jul 25 2011 Rafael Azenha Aquini <aquini at linux dot com> - 3.0-0
aedfb4c
- Packaged mongoose's upstream 3.0 release. 
4824310
Rafael Aquini 6dc62e9
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.11-1
Rafael Aquini 6dc62e9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
Rafael Aquini 6dc62e9
1a8aa87
* Tue Sep 28 2010 Rafael Azenha Aquini <aquini at linux dot com> - 2.11-0
1a8aa87
- Packaged the mongoose's upstream 2.11 release. 
1a8aa87
ac5ef60
* Wed Jul 21 2010 Rafael Azenha Aquini <aquini at linux dot com> - 2.8-6
ac5ef60
- Adjust the approach to grab correct OpenSSL versioned shared libs in 
ac5ef60
  build time, as suggested by Toshio Ernie Kuratomi (592670#c25)
ac5ef60
- Open an upstream issue asking for shipping a license file within mongoose's
ac5ef60
  .tar file (http://code.google.com/p/mongoose/issues/detail?id=159)
ac5ef60
ac5ef60
* Tue Jul 13 2010 Rafael Azenha Aquini <aquini at linux dot com> - 2.8-5
ac5ef60
- Get dinamically the correct OpenSSL versioned shared libs in build time, 
ac5ef60
  as suggested by Douglas Schilling Landgraf (592670#c21)
ac5ef60
ac5ef60
* Wed May 19 2010 Rafael Azenha Aquini <aquini at linux dot com> - 2.8-4
ac5ef60
- Drop off all source files from doc dir, including the examples
ac5ef60
- Add patch to define correct OpenSSL versioned shared libs in build time, 
ac5ef60
  as suggested by Ralf Corsepius (592670#c19)
ac5ef60
ac5ef60
* Tue May 18 2010 Rafael Azenha Aquini <aquini at linux dot com> - 2.8-3
ac5ef60
- Several improvements to the Spec, by Terje Røsten's review (592670#c3)
ac5ef60
- Added /examples dir to docs, as suggested by Chen Lei's review (592670#c4)
ac5ef60
ac5ef60
* Mon May 17 2010 Rafael Azenha Aquini <aquini at linux dot com> - 2.8-2
ac5ef60
- Set of fixes to the Spec file, suggested by Chen Lei's review (592670#c1)
ac5ef60
ac5ef60
* Sat May 15 2010 Rafael Azenha Aquini <aquini at linux dot com> - 2.8-1
ac5ef60
- initial packaging.
ac5ef60