blob: 8c897a3121a6be4277c3386e49423e5a6f0deb7a (
plain)
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
|
Name: libslp-db-util
Summary: DB Utility
Version: 0.1.1
Release: 4
Group: System/Libraries
License: Apache License, Version 2.0
Source0: %{name}-%{version}.tar.gz
Requires(post): /sbin/ldconfig
Requires(postun): /sbin/ldconfig
BuildRequires: cmake
BuildRequires: pkgconfig(sqlite3)
BuildRequires: pkgconfig(dlog)
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(icu-i18n)
%description
%package devel
Summary: Devel package for libslp-db-util (devel)
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
%description devel
%prep
%setup -q -n %{name}-%{version}
%build
cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix}
make %{?jobs:-j%jobs}
%install
rm -rf %{buildroot}
%make_install
mkdir -p %{buildroot}/usr/share/license
install LICENSE.APLv2 %{buildroot}/usr/share/license/%{name}
%post
/sbin/ldconfig
if [ ! -d /opt/dbspace ]
then
mkdir -p /opt/dbspace
fi
if [ ! -d /opt/usr/dbspace ]
then
mkdir -p /opt/usr/dbspace
fi
chown :5000 /opt/dbspace
chmod 775 /opt/dbspace
chown :5000 /opt/usr/dbspace
chmod 775 /opt/usr/dbspace
%postun -p /sbin/ldconfig
%files
%manifest libSLP-db-util.manifest
%defattr(-,root,root,-)
%{_libdir}/libSLP-db-util.so
%{_libdir}/libSLP-db-util.so.0
%{_libdir}/libSLP-db-util.so.0.1.0
/usr/share/license/%{name}
%files devel
%defattr(-,root,root,-)
%{_includedir}/db-util/*.h
%{_libdir}/pkgconfig/db-util.pc
|