File smpppd-web.spec of Package smpppd-web
#
# spec file for package smpppd-web (Version 3.00)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: smpppd-web
BuildRequires: apache2-devel libapr-util1-devel pcre-devel
Version: 3.00
Release: 207
Url: http://www.suse.de/~cwh
License: GPL-2.0+
Summary: Start and Stop Dialup Network Connection Via Web Browser
Requires: smpppd http_daemon perl-HTML-Template perl-Log-Log4perl perl-gettext
Group: Productivity/Networking/Web/Frontends
Source: smpppd-web-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%description
Another frontend for the smpppd. With this frontend you can start and
stop a dialup network connection via your web browser.
An http-server such as Apache is required. The usage of mod-perl is not
a must, but recommended, because the speed improvement is significant.
Authors:
--------
Michael Rumpf <michael@rumpfonline.de>
Christopher Hofmann <cwh@suse.de>
%define apache2_sysconfdir %(/usr/sbin/apxs2 -q SYSCONFDIR)
%define apache_serverroot %(/usr/sbin/apxs2 -q PREFIX)
%prep
%setup
%build
mkdir -p locale/de_DE/LC_MESSAGES
mkdir -p locale/en_US/LC_MESSAGES
msgfmt -o locale/de_DE/LC_MESSAGES/smpppd-web.mo locale/de_DE/smpppd-web.po
msgfmt -o locale/en_US/LC_MESSAGES/smpppd-web.mo locale/en_US/smpppd-web.po
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT%{apache2_sysconfdir}
install -d $RPM_BUILD_ROOT%{apache2_sysconfdir}/conf.d
mkdir -p $RPM_BUILD_ROOT%{apache_serverroot}/smpppd-web/images
mkdir -p $RPM_BUILD_ROOT%{apache_serverroot}/smpppd-web/styles
mkdir -p $RPM_BUILD_ROOT%{apache_serverroot}/smpppd-web/locale/de_DE
mkdir -p $RPM_BUILD_ROOT%{apache_serverroot}/smpppd-web/locale/en_US
mkdir -p $RPM_BUILD_ROOT/usr/share/locale/de_DE/LC_MESSAGES
mkdir -p $RPM_BUILD_ROOT/usr/share/locale/en_US/LC_MESSAGES
install -m 644 locale/de_DE/LC_MESSAGES/smpppd-web.mo $RPM_BUILD_ROOT/usr/share/locale/de_DE/LC_MESSAGES
install -m 644 locale/en_US/LC_MESSAGES/smpppd-web.mo $RPM_BUILD_ROOT/usr/share/locale/en_US/LC_MESSAGES
install -m 644 locale/de_DE/smpppd-web.tmpl $RPM_BUILD_ROOT%{apache_serverroot}/smpppd-web/locale/de_DE
install -m 644 locale/en_US/smpppd-web.tmpl $RPM_BUILD_ROOT%{apache_serverroot}/smpppd-web/locale/en_US
install -m 644 smpppd-web-apache2.conf $RPM_BUILD_ROOT%{apache2_sysconfdir}/conf.d/smpppd-web-apache2.conf
install -m 755 smpppd-web.pl $RPM_BUILD_ROOT%{apache_serverroot}/smpppd-web/smpppd-web.pl
install -m 644 styles/smpppd-web.css $RPM_BUILD_ROOT%{apache_serverroot}/smpppd-web/styles/smpppd-web.css
install -m 644 images/*.gif $RPM_BUILD_ROOT%{apache_serverroot}/smpppd-web/images/
%clean
rm -rf $RPM_BUILD_ROOT
%post
%{fillup_only -an apache}
%files
%defattr(-, root, root)
%doc CHANGES AUTHORS CONFIGURATION COPYRIGHT README TODO
%dir %{apache2_sysconfdir}
%dir %{apache2_sysconfdir}/conf.d
%{apache2_sysconfdir}/conf.d/smpppd-web-apache2.conf
%dir %{apache_serverroot}/smpppd-web
%dir %{apache_serverroot}/smpppd-web/images
%dir %{apache_serverroot}/smpppd-web/styles
%dir %{apache_serverroot}/smpppd-web/locale
%dir %{apache_serverroot}/smpppd-web/locale/en_US
%dir %{apache_serverroot}/smpppd-web/locale/de_DE
%{apache_serverroot}/smpppd-web/smpppd-web.pl
%{apache_serverroot}/smpppd-web/styles/smpppd-web.css
%{apache_serverroot}/smpppd-web/images/*.gif
%{apache_serverroot}/smpppd-web/locale/*/smpppd-web.tmpl
/usr/share/locale/*/LC_MESSAGES/smpppd-web.mo
%changelog
* Sun Feb 11 2007 ro@suse.de
- fix build as non-root
* Fri Jul 14 2006 olh@suse.de
- rename gzip archive from .bz2 to .gz
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Fri Jan 20 2006 cwh@suse.de
- fixed missing requires (Bug #143499)
* Fri Jan 13 2006 cwh@suse.de
version 3.00
- now supports adding and removing links on the fly
- support dial-on-demand interfaces
- supports multiple languages with gettext (currently included is
german and english)
* Mon Mar 07 2005 cwh@suse.de
- improved documentation a bit
- fixed encoding of README-de
* Tue Jun 08 2004 cwh@suse.de
- commented out more apache1 files
- made it work with mod_perl2
- updated to version 2.00
* Tue Apr 27 2004 ro@suse.de
- build using apache2
- comment out apache1 files
* Fri Apr 02 2004 cwh@suse.de
- added missing dependency
* Thu Mar 18 2004 cwh@suse.de
- added apache2 support
- completed documentation
- some minor fixes
* Fri Feb 13 2004 cwh@suse.de
- completely rewritten. First release of this new version.