[packages/python-zope-base] Zope-dirs.spec renamed to python-zope-base.spec

jajcus jajcus at pld-linux.org
Tue Dec 27 14:45:40 CET 2016


commit e9fd392db221d7e4b7ad12df1cd2b8e26b018ebc
Author: Jacek Konieczny <j.konieczny at eggsoft.pl>
Date:   Tue Dec 27 14:45:04 2016 +0100

    Zope-dirs.spec renamed  to python-zope-base.spec
    
    It is just a place for python libraries.

 Zope-dirs.spec        | 38 -------------------------
 python-zope-base.spec | 79 +++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 79 insertions(+), 38 deletions(-)
---
diff --git a/Zope-dirs.spec b/Zope-dirs.spec
deleted file mode 100644
index 5da283e..0000000
--- a/Zope-dirs.spec
+++ /dev/null
@@ -1,38 +0,0 @@
-Summary:	Common dirs for Zope libraries
-Summary(pl.UTF-8):	Katalogi wspólne dla bibliotek Zope
-Name:		Zope-dirs
-Version:	1.0
-Release:	7
-License:	Public Domain
-Group:		Libraries/Python
-BuildRequires:	python
-BuildRequires:	python-devel
-BuildRequires:	rpm-pythonprov
-BuildRequires:	rpmbuild(macros) >= 1.219
-BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-
-# nothing to put there
-%define		_enable_debug_packages	0
-
-%description
-Common dirs for Zope libraries.
-
-%description -l pl.UTF-8
-Katalogi wspólne dla bibliotek Zope.
-
-%prep
-
-%install
-rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{py_sitedir}/zope
-touch $RPM_BUILD_ROOT%{py_sitedir}/zope/__init__.py
-%py_comp $RPM_BUILD_ROOT%{py_sitedir}/zope
-%py_ocomp $RPM_BUILD_ROOT%{py_sitedir}/zope
-%py_postclean
-
-%clean
-rm -rf $RPM_BUILD_ROOT
-
-%files
-%defattr(644,root,root,755)
-%{py_sitedir}/zope
diff --git a/python-zope-base.spec b/python-zope-base.spec
new file mode 100644
index 0000000..e60d577
--- /dev/null
+++ b/python-zope-base.spec
@@ -0,0 +1,79 @@
+#
+# Conditional build:
+%bcond_without	python2 # CPython 2.x module
+%bcond_without	python3 # CPython 3.x module
+
+Summary:	Common dirs for Zope libraries
+Summary(pl.UTF-8):	Katalogi wspólne dla bibliotek Zope
+Name:		python-zope-base
+Version:	1.0
+Release:	1
+License:	Public Domain
+Group:		Libraries/Python
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 1.219
+%if %{with python2}
+BuildRequires:	python
+BuildRequires:	python-modules
+%endif
+%if %{with python3}
+BuildRequires:	python3
+BuildRequires:	python3-modules
+%endif
+Obsoletes:	Zope-dirs
+Provides:	Zope-dirs
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+# nothing to put there
+%define		_enable_debug_packages	0
+
+%description
+Common dirs for Zope libraries.
+
+%description -l pl.UTF-8
+Katalogi wspólne dla bibliotek Zope.
+
+%package -n python3-zope-base
+Summary:	Common dirs for Zope libraries
+Summary(pl.UTF-8):	Katalogi wspólne dla bibliotek Zope
+Group:		Libraries/Python
+
+%description -n python3-zope-base
+Common dirs for Zope libraries.
+
+%description -n python3-zope-base -l pl.UTF-8
+Katalogi wspólne dla bibliotek Zope.
+
+%prep
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{py_sitedir},%{py3_sitedir}}/zope
+
+%if %{with python2}
+touch $RPM_BUILD_ROOT%{py_sitedir}/zope/__init__.py
+%py_comp $RPM_BUILD_ROOT%{py_sitedir}/zope
+%py_ocomp $RPM_BUILD_ROOT%{py_sitedir}/zope
+%py_postclean
+%endif
+
+%if %{with python3}
+touch $RPM_BUILD_ROOT%{py3_sitedir}/zope/__init__.py
+%py3_comp $RPM_BUILD_ROOT%{py3_sitedir}/zope
+%py3_ocomp $RPM_BUILD_ROOT%{py3_sitedir}/zope
+%endif
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%if %{with python2}
+%files
+%defattr(644,root,root,755)
+%{py_sitedir}/zope
+%endif
+
+%if %{with python3}
+%files -n python3-zope-base
+%defattr(644,root,root,755)
+%{py3_sitedir}/zope
+%endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-zope-base.git/commitdiff/e9fd392db221d7e4b7ad12df1cd2b8e26b018ebc



More information about the pld-cvs-commit mailing list