[pen/el6: 9/12] Update to 0.20.2, enable openssl support.

Christopher Meng cicku at fedoraproject.org
Mon Jan 27 07:20:03 UTC 2014


commit 8b2acde11f6a5e2c66ef560ddcada465493c8227
Author: Christopher Meng <i at cicku.me>
Date:   Mon Jan 27 15:14:39 2014 +0800

    Update to 0.20.2, enable openssl support.

 .gitignore |    1 +
 pen.spec   |   40 ++++++++++++++++------------------------
 sources    |    2 +-
 3 files changed, 18 insertions(+), 25 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 34ed124..8fb592b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
 pen-0.18.0.tar.gz
+/pen-0.20.2.tar.gz
diff --git a/pen.spec b/pen.spec
index e34d0c0..619f0c7 100644
--- a/pen.spec
+++ b/pen.spec
@@ -1,19 +1,15 @@
 Name:           pen
-Version:        0.18.0
-Release:        11%{?dist}
+Version:        0.20.2
+Release:        1%{?dist}
 Summary:        Load balancer for "simple" tcp based protocols such as http or smtp
-
-Group:          Applications/Internet
 License:        GPLv2
 URL:            http://siag.nu/pen/
 Source0:        ftp://siag.nu/pub/%{name}/%{name}-%{version}.tar.gz
 Source1:        pen.httpd
-BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-
 Requires:       httpd
 
 %description
-This is pen, a load balancer for "simple" tcp based protocols such as http or
+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. 
@@ -28,35 +24,31 @@ for file in ChangeLog penctl.1; do
    touch -r timestamp $file
 done
 
-%{__sed} -i 's/\/var/\%{_localstatedir}/g' %{SOURCE1}
+sed -i 's/\/var/\%{_localstatedir}/g' %{SOURCE1}
+chmod 0644 penstats
 
 %build
-%configure
-%{__make} %{?_smp_mflags}
-
+%configure --with-ssl
+make %{?_smp_mflags}
 
 %install
-%{__rm} -rf %{buildroot}
-
-%{__chmod} 0644 %{_builddir}/%{name}-%{version}/penstats
-%{__make} install DESTDIR=%{buildroot}
-%{__install} -Dp -m 0755 penctl.cgi %{buildroot}%{_localstatedir}/www/pen/penctl.cgi
-%{__install} -Dp -m 0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/httpd/conf.d/pen.conf
-
-%clean
-%{__rm} -rf %{buildroot}
+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
-%defattr(-,root,root,-)
-%doc HOWTO AUTHORS penstats COPYING README ChangeLog
+%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
+* Mon Jan 27 2014 Christopher Meng <rpm at cicku.me> - 0.20.2-1
+- Update to 0.20.2, SPEC cleanup.
+- Build with OpenSSL.
+
 * Sat Aug 03 2013 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.18.0-11
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
 
@@ -84,7 +76,7 @@ done
 * Thu Dec 18 2008 Itamar Reis Peixoto <itamar at ispbrasil.com.br> 0.18.0-3
 - replace $RPM_BUILD_DIR with %%{_builddir}
 
-* Sun Nov 12 2008 Itamar Reis Peixoto <itamar at ispbrasil.com.br> 0.18.0-2
+* Wed Nov 12 2008 Itamar Reis Peixoto <itamar at ispbrasil.com.br> 0.18.0-2
 - preserve timestamp when converting files to UTF-8
 
 * Sun Nov 09 2008 Itamar Reis Peixoto <itamar at ispbrasil.com.br> 0.18.0-1
diff --git a/sources b/sources
index 543956f..cf40102 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-96f6d39e7e7cca11a647e795550f3829  pen-0.18.0.tar.gz
+5330ebf68281367ecb35da31607005a9  pen-0.20.2.tar.gz


More information about the scm-commits mailing list