From 237fbaa3caaa9ec86c4b8e542d3b998d49db31a0 Mon Sep 17 00:00:00 2001 From: Tomek Orzechowski Date: Thu, 24 Apr 2003 10:27:29 +0000 Subject: [PATCH] - new Changed files: apache1-mod_ometer.spec -> 1.1 --- apache1-mod_ometer.spec | 75 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 75 insertions(+) create mode 100644 apache1-mod_ometer.spec diff --git a/apache1-mod_ometer.spec b/apache1-mod_ometer.spec new file mode 100644 index 0000000..8f769d5 --- /dev/null +++ b/apache1-mod_ometer.spec @@ -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}/* -- 2.43.0