]> git.pld-linux.org Git - packages/talloc.git/blob - talloc.spec
- epoch 2: there already were python-talloc 2:2.0.6 packages in Th before spec rename...
[packages/talloc.git] / talloc.spec
1 #
2 # WARNING: check if samba builds with new version before updating!
3 #
4 Summary:        The talloc library - a hierarchical pool based memory system
5 Summary(pl.UTF-8):      Biblioteka talloc - system przydzielania pamięci oparty na hierarchicznej puli
6 Name:           talloc
7 Version:        2.0.6
8 Release:        4
9 Epoch:          2
10 License:        LGPL v3+
11 Group:          Libraries
12 Source0:        http://samba.org/ftp/talloc/%{name}-%{version}.tar.gz
13 # Source0-md5:  bd1be34297e89b27a394b49d5182550e
14 URL:            http://talloc.samba.org/
15 BuildRequires:  docbook-dtd42-xml
16 BuildRequires:  docbook-style-xsl
17 BuildRequires:  libxslt-progs
18 BuildRequires:  python >= 1:2.4.2
19 BuildRequires:  python-devel >= 1:2.4.2
20 BuildRequires:  python-modules
21 BuildRequires:  rpm-pythonprov
22 Provides:       libtalloc = 2:%{version}-%{release}
23 Obsoletes:      libtalloc < 2:2.0.7-2
24 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26 %description
27 The talloc library implements a hierarchical allocator with
28 destructors.
29
30 %description -l pl.UTF-8
31 Biblioteka talloc jest implementacją systemu zarządzania pamięcią
32 opartego na hierarchicznej puli wraz z destruktorami.
33
34 %package devel
35 Summary:        Development files for the talloc library
36 Summary(pl.UTF-8):      Pliki programistyczne biblioteki talloc
37 Group:          Development/Libraries
38 Requires:       %{name} = %{epoch}:%{version}-%{release}
39 Provides:       libtalloc-devel = 2:%{version}-%{release}
40 Obsoletes:      libtalloc-devel < 2:2.0.7-2
41 Obsoletes:      libtalloc-static
42
43 %description devel
44 Development files needed to create programs that link against the
45 talloc library.
46
47 %description devel -l pl.UTF-8
48 Pliki programistyczne potrzebne do tworzenia programów używających
49 biblioteki talloc.
50
51 %package -n python-talloc
52 Summary:        Python binding for talloc library
53 Summary(pl.UTF-8):      Wiązanie Pythona do biblioteki talloc
54 Group:          Libraries/Python
55 Requires:       %{name} = %{epoch}:%{version}-%{release}
56 Requires:       python-libs >= 1:2.4.2
57
58 %description -n python-talloc
59 Python binding for talloc library.
60
61 %description -n python-talloc -l pl.UTF-8
62 Wiązanie Pythona do biblioteki talloc.
63
64 %package -n python-talloc-devel
65 Summary:        Development files for pytalloc-util library
66 Summary(pl.UTF-8):      Pliki programistyczne biblioteki pytalloc-util
67 Group:          Development/Libraries
68 Requires:       %{name}-devel = %{epoch}:%{version}-%{release}
69 Requires:       python-devel >= 1:2.4.2
70 Requires:       python-talloc = %{epoch}:%{version}-%{release}
71
72 %description -n python-talloc-devel
73 Development files for pytalloc-util library.
74
75 %description -n python-talloc-devel -l pl.UTF-8
76 Pliki programistyczne biblioteki pytalloc-util.
77
78 %prep
79 %setup -q
80
81 %build
82 # note: configure in fact is waf call
83 CC="%{__cc}" \
84 CFLAGS="%{rpmcflags}" \
85 PYTHONDIR=%{py_sitedir} \
86 ./configure \
87         --prefix=%{_prefix} \
88         --libdir=%{_libdir}
89
90 %{__make} \
91         V=1
92
93 %install
94 rm -rf $RPM_BUILD_ROOT
95
96 %{__make} install \
97         DESTDIR=$RPM_BUILD_ROOT
98
99 %clean
100 rm -rf $RPM_BUILD_ROOT
101
102 %post   -p /sbin/ldconfig
103 %postun -p /sbin/ldconfig
104
105 %triggerpostun -p /sbin/postshell -- libtalloc < 2:2.0.1-5
106 -rm -f %{_libdir}/libtalloc.so.2
107 /sbin/ldconfig
108
109 %files
110 %defattr(644,root,root,755)
111 %attr(755,root,root) %{_libdir}/libtalloc.so.*.*.*
112 %attr(755,root,root) %ghost %{_libdir}/libtalloc.so.2
113
114 %files devel
115 %defattr(644,root,root,755)
116 %doc talloc_guide.txt
117 %attr(755,root,root) %{_libdir}/libtalloc.so
118 %{_includedir}/talloc.h
119 %{_pkgconfigdir}/talloc.pc
120 %{_mandir}/man3/talloc.3*
121
122 %files -n python-talloc
123 %defattr(644,root,root,755)
124 %attr(755,root,root) %{_libdir}/libpytalloc-util.so.*.*.*
125 %attr(755,root,root) %ghost %{_libdir}/libpytalloc-util.so.2
126 %attr(755,root,root) %{py_sitedir}/talloc.so
127
128 %files -n python-talloc-devel
129 %defattr(644,root,root,755)
130 %attr(755,root,root) %{_libdir}/libpytalloc-util.so
131 %{_includedir}/pytalloc.h
132 %{_pkgconfigdir}/pytalloc-util.pc
This page took 0.035232 seconds and 4 git commands to generate.