Author: shadzik                      Date: Tue Jan 20 17:26:59 2009 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- init

---- Files affected:
SPECS:
   apache-mod_auth_cas.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SPECS/apache-mod_auth_cas.spec
diff -u /dev/null SPECS/apache-mod_auth_cas.spec:1.1
--- /dev/null   Tue Jan 20 18:26:59 2009
+++ SPECS/apache-mod_auth_cas.spec      Tue Jan 20 18:26:53 2009
@@ -0,0 +1,76 @@
+# $Revision$, $Date$
+# Replace MODNAME with real module name (example for mod_example)
+# Replace VERSION with version since what confdir support was
+# introduced for the module. only needed for older .specs, not needed
+# for new packages.
+#
+%define                mod_name        auth_cas
+%define        apxs            %{_sbindir}/apxs
+Summary:       Apache module: CAS
+Summary(pl.UTF-8):     ModuĊ‚ Apache'a: CAS
+Name:          apache-mod_%{mod_name}
+Version:       1.0.8
+Release:       0.1
+License:       GPL v3+
+Group:         Networking/Daemons/HTTP
+# svn export 
https://www.ja-sig.org/svn/cas-clients/mod_auth_cas/tags/mod_auth_cas-1.0.8
+Source0:       mod_%{mod_name}-%{version}.tar.bz2
+# Source0-md5: 2bd4117f7a8b25ade77f53c59c66944a
+Source1:       %{name}.conf
+URL:           https://www.ja-sig.org/svn/cas-clients/mod_auth_cas/
+BuildRequires: %{apxs}
+BuildRequires: apache-devel >= 2.2
+BuildRequires: rpmbuild(macros) >= 1.268
+Requires:      apache(modules-api) = %apache_modules_api
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define                _pkglibdir      %(%{apxs} -q LIBEXECDIR 2>/dev/null)
+%define                _sysconfdir     %(%{apxs} -q SYSCONFDIR 
2>/dev/null)/conf.d
+
+%description
+
+%description -l pl.UTF-8
+
+%prep
+%setup -q -n mod_%{mod_name}-%{version}
+
+%build
+%{apxs} -c src/mod_%{mod_name}.c
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_pkglibdir},%{_sysconfdir}}
+
+install src/.libs/mod_%{mod_name}.so $RPM_BUILD_ROOT%{_pkglibdir}
+
+# module configuration
+# - should contain LoadModule line
+# - and directives must be between IfModule (so user could disable the module 
easily)
+install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/90_mod_%{mod_name}.conf
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post
+%service -q httpd restart
+
+%postun
+if [ "$1" = "0" ]; then
+       %service -q httpd restart
+fi
+
+%files
+%defattr(644,root,root,755)
+%doc README
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) 
%{_sysconfdir}/*_mod_%{mod_name}.conf
+%attr(755,root,root) %{_pkglibdir}/*
+
+%define date   %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <[email protected]>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2009/01/20 17:26:53  shadzik
+- init
+
================================================================
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to