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