packages: trac-plugin-accountldap/trac-plugin-accountldap.spec (NEW) - new
zbyniu
zbyniu at pld-linux.org
Mon Oct 3 12:20:57 CEST 2011
Author: zbyniu Date: Mon Oct 3 10:20:57 2011 GMT
Module: packages Tag: HEAD
---- Log message:
- new
---- Files affected:
packages/trac-plugin-accountldap:
trac-plugin-accountldap.spec (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: packages/trac-plugin-accountldap/trac-plugin-accountldap.spec
diff -u /dev/null packages/trac-plugin-accountldap/trac-plugin-accountldap.spec:1.1
--- /dev/null Mon Oct 3 12:20:57 2011
+++ packages/trac-plugin-accountldap/trac-plugin-accountldap.spec Mon Oct 3 12:20:52 2011
@@ -0,0 +1,60 @@
+# $Revision$, $Date$
+%define trac_ver 0.12
+%define plugin accountldap
+Summary: AccountLdap Plugin for Trac
+Name: trac-plugin-%{plugin}
+Version: 0.32
+Release: 0.1
+License: BSD-like / GPL / ...
+Group: Applications/WWW
+Source0: http://trac-hacks.org/changeset/latest/tracsqlhelperscript?old_path=/&format=zip#/%{plugin}.zip
+# Source0-md5: 9f706e733d205d4467ce6534772cb505
+URL: http://trac-hacks.org/wiki/AccountLdapPlugin
+BuildRequires: python-devel
+Requires: trac >= %{trac_ver}
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+
+%prep
+%setup -q -n %{plugin}plugin
+mv %{trac_ver}/* .
+
+%build
+%{__python} setup.py build
+%{__python} setup.py egg_info
+
+ver=$(awk '$1 == "Version:" {print $2}' *.egg-info/PKG-INFO)
+test "$ver" = %{version}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%{__python} setup.py install \
+ --single-version-externally-managed \
+ --optimize 2 \
+ --root=$RPM_BUILD_ROOT
+
+%py_postclean
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post
+# XXX: try to figure out from .egg-info / __init__py at build time
+#trac-enableplugin "%{plugin}.Trac%{plugin}Module"
+
+%files
+%defattr(644,root,root,755)
+%{py_sitescriptdir}/%{plugin}
+%{py_sitescriptdir}/*-*.egg-info
+
+%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1 2011/10/03 10:20:52 zbyniu
+- new
+
================================================================
More information about the pld-cvs-commit
mailing list