summaryrefslogtreecommitdiffstats
path: root/python-zope-proxy/F-13/python-zope-proxy.spec
blob: 3a6954601dae86151ab90eec47de8ba8f89ea117 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
Name:           python-zope-proxy
Version:        3.6.1
Release:        1%{?dist}
Summary:        Generic Transparent Proxies
Group:          Development/Languages
License:        ZPLv2.1
URL:            http://pypi.python.org/pypi/zope.proxy/
Source0:        http://pypi.python.org/packages/source/z/zope.proxy/zope.proxy-%{version}.zip

BuildRequires:  python-devel
BuildRequires:  python-setuptools
BuildRequires:  python-zope-testing
Requires:       python-zope-interface


%description
Proxies are special objects which serve as mostly-transparent wrappers
around another object, intervening in the apparent behavior of the
wrapped object only when necessary to apply the policy (e.g., access
checking, location brokering, etc.) for which the proxy is responsible.


%package devel
Summary:        Development files for %{name}
Group:          Development/Languages
Requires:       %{name} = %{version}-%{release}
Requires:       python2-devel
BuildArch:      noarch


%description devel
Development headers and libraries for %{name}.


%prep
%setup -q -n zope.proxy-%{version}


%build
CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build


%install
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
rm -f $RPM_BUILD_ROOT%{python_sitearch}/zope/proxy/proxy.h
rm -f $RPM_BUILD_ROOT%{python_sitearch}/zope/proxy/_zope_proxy_proxy.c


%check
%{__python} setup.py test

 
%files
%defattr(-,root,root,-)
%doc CHANGES.txt README.txt COPYRIGHT.txt LICENSE.txt
%{python_sitearch}/zope/proxy/
%{python_sitearch}/zope.proxy-*.egg-info
%{python_sitearch}/zope.proxy-*-nspkg.pth


%files devel
%defattr(-,root,root,-)
%{_includedir}/python?.?/zope.proxy



%changelog
* Tue Aug 31 2010 Robin Lee <robinlee.sysu@gmail.com> - 3.6.1-1
- Update to 3.6.1
- Requirement: python-zope-filesystem removed, python-zope-interface added
- Spec cleaned up
- -devel subpackage set to noarch, added python2-devel as requirement
- Include the license

* Mon Jun 7 2010 Conrad Meyer <konrad@tylerc.org> - 3.6.0-1
- Bump to latest version.

* Mon Feb 15 2010 Conrad Meyer <konrad@tylerc.org> - 3.5.0-3
- Nuke .c/.h files used to build C library from installed
  files.

* Wed Dec 30 2009 Conrad Meyer <konrad@tylerc.org> - 3.5.0-2
- Move development files to devel subpackage.
- Use global instead of define.

* Sun Jul 5 2009 Conrad Meyer <konrad@tylerc.org> - 3.5.0-1
- Bump to latest version.
- Enable tests as zope.testing is in devel.
- Add missing BR on python-setuptools.

* Sun Dec 14 2008 Conrad Meyer <konrad@tylerc.org> - 3.4.2-1
- Initial package.