]> git.pld-linux.org Git - packages/python-zope-base.git/blob - python-zope-base.spec
2e9da5f49a25784b17341b4971476d4c36c16e6a
[packages/python-zope-base.git] / python-zope-base.spec
1 #
2 # Conditional build:
3 %bcond_without  python2 # CPython 2.x module
4 %bcond_without  python3 # CPython 3.x module
5
6 Summary:        Common dirs for Zope libraries
7 Summary(pl.UTF-8):      Katalogi wspólne dla bibliotek Zope
8 Name:           python-zope-base
9 Version:        1.0
10 Release:        6
11 License:        Public Domain
12 Group:          Libraries/Python
13 BuildRequires:  rpm-pythonprov
14 BuildRequires:  rpmbuild(macros) >= 1.219
15 %if %{with python2}
16 BuildRequires:  python
17 BuildRequires:  python-modules
18 %endif
19 %if %{with python3}
20 BuildRequires:  python3
21 BuildRequires:  python3-modules
22 %endif
23 Obsoletes:      Zope-dirs
24 Provides:       Zope-dirs
25 BuildArch:      noarch
26 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28 # nothing to put there
29 %define         _enable_debug_packages  0
30
31 %description
32 Common dirs for Zope libraries.
33
34 %description -l pl.UTF-8
35 Katalogi wspólne dla bibliotek Zope.
36
37 %package -n python3-zope-base
38 Summary:        Common dirs for Zope libraries
39 Summary(pl.UTF-8):      Katalogi wspólne dla bibliotek Zope
40 Group:          Libraries/Python
41
42 %description -n python3-zope-base
43 Common dirs for Zope libraries.
44
45 %description -n python3-zope-base -l pl.UTF-8
46 Katalogi wspólne dla bibliotek Zope.
47
48 %prep
49
50 %install
51 rm -rf $RPM_BUILD_ROOT
52 install -d $RPM_BUILD_ROOT{%{py_sitescriptdir},%{py3_sitescriptdir}}/zope
53
54 %if %{with python2}
55 touch $RPM_BUILD_ROOT%{py_sitescriptdir}/zope/__init__.py
56 %py_comp $RPM_BUILD_ROOT%{py_sitescriptdir}/zope
57 %py_ocomp $RPM_BUILD_ROOT%{py_sitescriptdir}/zope
58 %py_postclean
59 %endif
60
61 %if %{with python3}
62 touch $RPM_BUILD_ROOT%{py3_sitescriptdir}/zope/__init__.py
63 %py3_comp $RPM_BUILD_ROOT%{py3_sitescriptdir}/zope
64 %py3_ocomp $RPM_BUILD_ROOT%{py3_sitescriptdir}/zope
65 %endif
66
67 %clean
68 rm -rf $RPM_BUILD_ROOT
69
70 %if %{with python2}
71 %files
72 %defattr(644,root,root,755)
73 %{py_sitescriptdir}/zope
74 %endif
75
76 %if %{with python3}
77 %files -n python3-zope-base
78 %defattr(644,root,root,755)
79 %{py3_sitescriptdir}/zope
80 %endif
This page took 0.070929 seconds and 2 git commands to generate.