[packages/python-ldaptor] macros for relup
glen
glen at pld-linux.org
Sun Nov 29 11:15:41 CET 2015
commit 9355d5df0ba5ce09ab994c2ea5f8696e915d9126
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Sun Nov 29 12:15:34 2015 +0200
macros for relup
python-ldaptor.spec | 13 +++++++------
1 file changed, 7 insertions(+), 6 deletions(-)
---
diff --git a/python-ldaptor.spec b/python-ldaptor.spec
index f1c6c97..b11a02a 100644
--- a/python-ldaptor.spec
+++ b/python-ldaptor.spec
@@ -1,15 +1,16 @@
#
# Conditional build:
%bcond_without doc # build the documentation
-#
-%define githash 29a06fa
+
+%define rel 2
+%define subver 29a06fa
Summary: Python LDAP client library
Name: python-ldaptor
Version: 0.0.44
-Release: 0.git%{githash}.2
+Release: 0.git%{subver}.%{rel}
License: LGPLv2
Group: Libraries/Python
-Source0: https://codeload.github.com/antong/ldaptor/tar.gz/%{githash}?/python-ldaptor-%{version}.%{githash}.tar.gz
+Source0: https://codeload.github.com/antong/ldaptor/tar.gz/%{subver}?/%{name}-%{version}.%{subver}.tar.gz
# Source0-md5: eace8cf1dc3f7061051b019444d57ca6
Source1: global.cfg
Patch0: %{name}-remove-webui.patch
@@ -70,7 +71,7 @@ The package contains command line utilities build upon python-ldaptor
library.
%prep
-%setup -q -n ldaptor-%{githash}
+%setup -q -n ldaptor-%{subver}
%patch0 -p1
%patch1 -p1
%patch2 -p1
@@ -113,7 +114,7 @@ rm -rf $RPM_BUILD_ROOT
%dir %{_sysconfdir}/ldaptor
%config(noreplace) %{_sysconfdir}/ldaptor/global.cfg
%{_sysconfdir}/ldaptor/ldaptor.schema
-%{py_sitescriptdir}/ldaptor-0.0.0-py2.7.egg-info
+%{py_sitescriptdir}/ldaptor-0.0.0-py*.egg-info
%{py_sitescriptdir}/ldaptor
%if %{with doc}
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-ldaptor.git/commitdiff/9355d5df0ba5ce09ab994c2ea5f8696e915d9126
More information about the pld-cvs-commit
mailing list