]> git.pld-linux.org Git - packages/libcassandra.git/blob - libcassandra.spec
- workaround for broken lib suffix guesswork
[packages/libcassandra.git] / libcassandra.spec
1
2 Summary:        A high level C++ client for Cassandra
3 Summary(pl.UTF-8):      Klient Cassandry wyższego poziomu w C++
4 Name:           libcassandra
5 Version:        0.2.91
6 Release:        3
7 License:        BSD
8 Group:          Libraries
9 # https://download.github.com/matkor-libcassandra-0.2.91-0-g98ab52b.tar.gz
10 Source0:        https://download.github.com/matkor-libcassandra-%{version}-0-g98ab52b.tar.gz
11 # Source0-md5:  8563f97a35ca4b465250e1e26873016e
12 # Patch0:               %{name}-link_fix.patch
13 Patch1:         %{name}-ac.patch
14 URL:            https://github.com/posulliv/libcassandra
15 BuildRequires:  autoconf
16 BuildRequires:  automake
17 BuildRequires:  boost-devel
18 BuildRequires:  libtool
19 BuildRequires:  rpmbuild(macros) >= 1.583
20 BuildRequires:  thrift-devel >= 0.9.0
21 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23 %description
24 A C++ wrapper library for the interface to cassandra generated by
25 thrift. This library is based on the Java client hector.
26
27 %description -l pl.UTF-8
28 Biblioteak C++ wokół interfejsu do Cassandry wygnerwoanej przez
29 thrift. Oparta na Javowym kliencie Hector.
30
31
32 %package devel
33 Summary:        Header files for libcassandra library
34 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki libcassandra
35 Group:          Development/Libraries
36 Requires:       %{name} = %{version}-%{release}
37 Requires:       thrift-devel
38
39 %description devel
40 Header files for libcassandra library.
41
42 %description devel -l pl.UTF-8
43 Pliki nagłówkowe biblioteki libcassandra.
44
45
46 %prep
47 %setup -q -n matkor-libcassandra-98ab52b
48 # %patch0 -p1
49 %patch1 -p1
50
51 %{__sed} -i -e 's|-Werror||g' m4/pandora_canonical.m4 m4/pandora_warnings.m4
52 %{__sed} -i -e 's|-O3||g' m4/pandora_optimize.m4
53
54 %build
55 %{__libtoolize}
56 %{__aclocal} -I m4
57 %{__autoconf}
58 %{__autoheader}
59 %{__automake}
60 %configure \
61         acl_libdirstem=%{_lib} \
62         CXXFLAGS="%{rpmcxxflags} -Wno-variadic-macros -Wno-deprecated"
63
64 %{__make} V=1
65
66 %install
67 rm -rf $RPM_BUILD_ROOT
68
69 %{__make} install \
70         DESTDIR=$RPM_BUILD_ROOT
71
72 %clean
73 rm -rf $RPM_BUILD_ROOT
74
75 %post   -p /sbin/ldconfig
76 %postun -p /sbin/ldconfig
77
78 %files
79 %defattr(644,root,root,755)
80 %doc AUTHORS ChangeLog README TODO
81 %attr(755,root,root) %{_libdir}/libcassandra.so.*.*.*
82 %attr(755,root,root) %ghost %{_libdir}/libcassandra.so.3
83 %attr(755,root,root) %{_libdir}/libgenthrift.so.*.*.*
84 %attr(755,root,root) %ghost %{_libdir}/libgenthrift.so.3
85
86 %files devel
87 %defattr(644,root,root,755)
88 %{_libdir}/libcassandra.so
89 %{_libdir}/libcassandra.la
90 %{_libdir}/libgenthrift.so
91 %{_libdir}/libgenthrift.la
92 %{_includedir}/libcassandra
93 %{_includedir}/libgenthrift
This page took 0.094639 seconds and 3 git commands to generate.