forked from scality/Droplet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
libdroplet.spec.in
60 lines (47 loc) · 1.31 KB
/
libdroplet.spec.in
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
%define name libdroplet
%define release 1
%define version @VERSION@
Summary: Scality Droplet library
License: BSD
Name: %{name}
Version: %{version}
Release: %{release}
Source: %{name}-%{version}.tar.bz2
Group: Development/Tools
Requires: libxml2, json-c
BuildRequires: libxml2-devel, json-c-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
%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: pkgconfig
%description devel
Header files needed to develop programs that link against the Droplet library.
%prep
%setup -q
%build
%configure
make
%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-3.0
%{_libdir}/libdroplet.so
%{_libdir}/libdroplet.a
%{_libdir}/libdroplet.la
%{_libdir}/pkgconfig/droplet-3.0.pc