forked from scality/Droplet
-
Notifications
You must be signed in to change notification settings - Fork 8
/
libdroplet.obs.spec
80 lines (61 loc) · 1.61 KB
/
libdroplet.obs.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
%define name libdroplet
%define release 1
%define version 1
# do not optimize during compile for debugging
%define noopt 1
Summary: Scality Droplet library
License: BSD
Name: %{name}
Version: 3.0
Release: 0%{release}
Source: %{name}-%{version}.tar.bz2
Group: Development/Tools
BuildRequires: libxml2-devel
BuildRequires: pkgconfig(json)
BuildRequires: automake, autoconf, libtool, pkg-config, check-devel, openssl-devel, bison, attr-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
BuildRequires: -post-build-checks
%description
Library to help the transition to object based cloud storage by providing a
structured API to simplify application developers job and address key user
concerns.
%package devel
Group: Development/Libraries
Summary: Developer tools for the Scality Droplet library
Requires: libdroplet = %{version}-%{release}
Requires: libxml2-devel
%description devel
Header files needed to develop programs that link against the Droplet library.
%prep
%setup -q
#%%patch1 -p1
aclocal -I m4
autoreconf -i -f
%build
%if %{noopt}
export CFLAGS="-g"
export CXXFLAGS="-g"
export GCJFLAGS="-g"
%endif
%configure
make %{?_smp_mflags}
%install
rm -rf %{buildroot}
make install DESTDIR=$RPM_BUILD_ROOT
/sbin/ldconfig -N -n %{buildroot}%{_libdir}
%clean
rm -rf %{buildroot}
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root,-)
%{_libdir}/libdroplet.so.*
%files devel
%defattr(-,root,root,-)
%{_includedir}/droplet.h
%{_includedir}/dropletp.h
%{_includedir}/droplet
%{_libdir}/libdroplet.so
%{_libdir}/libdroplet.a
%{_libdir}/libdroplet.la
%{_libdir}/pkgconfig/droplet-3.0.pc