Blob Blame History Raw
Name:           pen
Version:        0.22.1
Release:        2%{?dist}
Summary:        Load balancer for "simple" tcp based protocols such as http or smtp
License:        GPLv2
URL:            http://siag.nu/pen/
Source0:        http://siag.nu/pub/pen/%{name}-%{version}.tar.gz
Source1:        pen.httpd
#Patch0:         pen-0.22.0-gcc-format-security-fix.patch
BuildRequires:  GeoIP-devel
BuildRequires:  openssl-devel
Requires:       httpd

%description
pen is a load balancer for "simple" tcp based protocols such as http or
smtp. It allows several servers to appear as one to the outside and 
automatically detects servers that are down and distributes clients among the
available servers. This gives high availability and scalable performance. 

%prep
%setup -q
#%patch0 -p1

# Convert to utf-8
for file in ChangeLog penctl.1; do
   mv $file timestamp
   iconv -f ISO-8859-1 -t UTF-8 -o $file timestamp
   touch -r timestamp $file
done

sed -i 's/\/var/\%{_localstatedir}/g' %{SOURCE1}
chmod 0644 penstats

%build
%configure --with-ssl --with-geoip
make %{?_smp_mflags}

%install
make install DESTDIR=%{buildroot}
install -pDm0755 penctl.cgi %{buildroot}%{_localstatedir}/www/pen/penctl.cgi
install -pDm0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/httpd/conf.d/pen.conf

%files
%doc AUTHORS ChangeLog COPYING HOWTO penstats README TODO
%{_mandir}/man1/*
%{_bindir}/*
%config(noreplace) %{_sysconfdir}/httpd/conf.d/pen.conf
%{_localstatedir}/www/pen/
%exclude %{_prefix}/doc/

%changelog
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.22.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild

* Thu Apr 03 2014 Christopher Meng <rpm@cicku.me> - 0.22.1-1
- Update to 0.22.1
- Patch merged upstream.

* Wed Apr 02 2014 Christopher Meng <rpm@cicku.me> - 0.22.0-2
- Patch messed with syntax.

* Tue Apr 01 2014 Christopher Meng <rpm@cicku.me> - 0.22.0-1
- Update to 0.22.0
- Built with GeoIP support.

* Mon Jan 27 2014 Christopher Meng <rpm@cicku.me> - 0.20.2-1
- Update to 0.20.2, SPEC cleanup.
- Built with OpenSSL support.

* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.18.0-11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild

* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.18.0-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild

* Tue Jan  8 2013 Remi Collet <rcollet@redhat.com> - 0.18.0-9
- fix configuration for httpd 2.4, #871450

* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.18.0-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild

* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.18.0-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild

* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.18.0-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild

* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.18.0-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild

* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.18.0-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild

* Thu Dec 18 2008 Itamar Reis Peixoto <itamar@ispbrasil.com.br> 0.18.0-3
- replace $RPM_BUILD_DIR with %%{_builddir}

* Wed Nov 12 2008 Itamar Reis Peixoto <itamar@ispbrasil.com.br> 0.18.0-2
- preserve timestamp when converting files to UTF-8

* Sun Nov 09 2008 Itamar Reis Peixoto <itamar@ispbrasil.com.br> 0.18.0-1
- Initial Release