-
Notifications
You must be signed in to change notification settings - Fork 71
/
upscaledb.spec
90 lines (63 loc) · 1.85 KB
/
upscaledb.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
81
82
83
84
85
86
87
88
89
Summary: upscaledb embedded database engine
Name: upscaledb
Version: 2.2.1
Release: 1%{?dist}
Source0: https://upscaledb.com/public/dl/%{name}-%{version}.tar.gz
URL: https://upscaledb.com
License: APLv2
Group: System Environment/Libraries
BuildRequires: protobuf-devel, protobuf-compiler, libtool, boost-devel, snappy-devel, gperftools
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
%description
A lightweight embedded key-value store with a built-in query language.
%package devel
Summary: Upscaledb development files for C/C++
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
%description devel
A lightweight embedded key-value store with a built-in query language.
%package static
Summary: Upscaledb static libraries
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
Requires: %{name}-devel = %{version}-%{release}
%description static
A lightweight embedded key-value store with a built-in query language.
%prep
%setup -q
%build
#autoconf
export CFLAGS="-ggdb2 -O3"
CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"; export CFLAGS
%configure
make %{?_smp_mflags}
%install
rm -rf %{buildroot}
make DESTDIR=%{buildroot} prefix=%{_prefix} libdir=%{_libdir} install
rm -fv ${RPM_BUILD_ROOT}%{_libdir}/*.la
%clean
rm -rf %{buildroot}
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%post -p /sbin/ldconfig devel
%postun -p /sbin/ldconfig devel
%post -p /sbin/ldconfig static
%postun -p /sbin/ldconfig static
%files
%defattr(-,root,root,-)
%doc AUTHORS COPYING README
%{_bindir}/*
%{_libdir}/*.so.*
%files devel
%defattr(-,root,root,-)
%doc documentation/*
%{_libdir}/*.so
%{_includedir}/ups
%files static
%defattr(-,root,root,-)
%{_libdir}/libupscaledb.a
%{_libdir}/libupsserver.a
%changelog
* Sat Jan 29 2011 [email protected] - 1.1.8-1
- initial version of spec file
- rest of changelog goes here