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