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