]> git.pld-linux.org Git - packages/apache1-mod_ometer.git/commitdiff
- new
authorTomek Orzechowski <orzech@pld-linux.org>
Thu, 24 Apr 2003 10:27:29 +0000 (10:27 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    apache1-mod_ometer.spec -> 1.1

apache1-mod_ometer.spec [new file with mode: 0644]

diff --git a/apache1-mod_ometer.spec b/apache1-mod_ometer.spec
new file mode 100644 (file)
index 0000000..8f769d5
--- /dev/null
@@ -0,0 +1,75 @@
+%define                mod_name        ometer
+%define        apxs            /usr/sbin/apxs
+Summary:       Apache module: Web counter
+Summary(pl):   Modu³ do apache: licznik odwiedzin
+Name:          apache-mod_%{mod_name}
+Version:       1.2.0
+Release:       1
+License:       Apache
+Group:         Networking/Daemons
+Source0:       http://www.umich.edu/~umweb/downloads/mod_%{mod_name}-%{version}.tar.gz
+Patch0:                %{name}-configure.patch
+URL:           http://modometer.org/
+BuildRequires: %{apxs}
+BuildRequires: apache(EAPI)-devel
+BuildRequires: libjpeg-devel
+Requires(post,preun):  %{apxs}
+Requires(post,preun):  grep
+Requires(preun):       fileutils
+Requires:      apache(EAPI)
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define                _pkglibdir      %(%{apxs} -q LIBEXECDIR)
+%define         _sysconfdir     /etc/httpd
+
+%description
+mod_ometer is a Web counter implemented as an Apache C module. It uses
+gd to generate its images. gd has some built-in fonts, but you can use
+any TrueType font you want for the counter. In addition to allowing
+font choice, mod_ometer has all sorts of options for customizing the
+size, width, and color of your counter, as well as the ability to
+output the counter as JPEG or PNG.
+
+%description -l pl
+mod_ometer jest licznikiem odwiedzin dzia³aj±cym jako modu³ Apacze'a
+u¿ywaj±cym biblioteki gd generowania obrazków. gd posiada kilka
+wbudowanych fontów, lecz w liczniku mo¿na u¿yæ dowolnych fontów
+TrueType. Poza mo¿liwo¶ci± wyboru kroju czcionki mod_ometer posiada
+opcje umo¿liwiaj±ce zmianê szeroko¶ci, wyskoko¶ci i kolorów licznika
+oraz formatu obrazka: JPEG lub PNG.
+
+%prep
+%setup -q -n mod_%{mod_name}-%{version}
+%patch0 -p1
+
+%build
+export LDFLAGS=" "
+%configure
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_pkglibdir}
+
+install mod_%{mod_name}.so $RPM_BUILD_ROOT%{_pkglibdir}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post
+%{apxs} -e -a -n %{mod_name} %{_pkglibdir}/mod_%{mod_name}.so 1>&2
+if [ -f /var/lock/subsys/httpd ]; then
+       /etc/rc.d/init.d/httpd restart 1>&2
+fi
+
+%preun
+if [ "$1" = "0" ]; then
+       %{apxs} -e -A -n %{mod_name} %{_pkglibdir}/mod_%{mod_name}.so 1>&2
+       if [ -f /var/lock/subsys/httpd ]; then
+               /etc/rc.d/init.d/httpd restart 1>&2
+       fi
+fi
+
+%files
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_pkglibdir}/*
This page took 0.106371 seconds and 4 git commands to generate.