blob: ac9770b1f1f66171da8091484a50ac6e642c4aff (
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
|
Name: libsqlfs
Summary: FUSE module for filesystem on top of an SQLite db
Version: 1.2
Release: 11
Group: TO_BE/FILLED_IN
License: LGPLv2
Source0: libsqlfs-%{version}.tar.gz
Source1: opt-var-kdb-db.mount
Source4: mount.fuse.libsqlfs
Source5: opt-var-kdb-db-libsqlfs.service
Source6: opt-var-kdb-db-smack-labels.service
Source7: libsqlfs.preinit
Source1001: libsqlfs.manifest
BuildRequires: pkgconfig(sqlite3)
BuildRequires: pkgconfig(fuse)
BuildRequires: libattr-devel
BuildRequires: libcap-devel
Requires: /usr/bin/find
Requires(post): systemd
Requires(postun): systemd
%description
FUSE module for filesystem on top of an SQLite database
%prep
%setup -q
cp %{SOURCE1001} .
%build
#%configure
#make
gcc $CFLAGS -g \
-DFUSE \
-D_GNU_SOURCE \
-D_FILE_OFFSET_BITS=64 \
-D_REENTRANT \
-DFUSE_USE_VERSION=25 \
-I/usr/include -I. \
sqlfs.c fuse_main.c \
-o libsqlfs_mount \
$LDFLAGS \
-L/usr/lib \
-lpthread \
-lfuse -lrt\
-lsqlite3 -ldl -lcap
gcc $CFLAGS -g \
sqlfs_txn_cmd.c \
-o sqlfs_txn_cmd \
$LDFLAGS
%install
mkdir -p %{buildroot}%{_bindir}
install -m 0755 libsqlfs_mount %{buildroot}%{_bindir}/
install -m 0755 sqlfs_txn_cmd %{buildroot}%{_bindir}/
#mkdir -p %{buildroot}/sbin
#install -m 0755 %{SOURCE4} %{buildroot}/sbin/
#mkdir -p %{buildroot}%{_libdir}/systemd/system/basic.target.wants
#install -m 0644 %{SOURCE1} %{buildroot}%{_libdir}/systemd/system/
#install -m 0644 %{SOURCE5} %{buildroot}%{_libdir}/systemd/system/
#install -m 0644 %{SOURCE6} %{buildroot}%{_libdir}/systemd/system/
#ln -sf ../opt-var-kdb-db-libsqlfs.service %{buildroot}%{_libdir}/systemd/system/basic.target.wants/
#ln -sf ../opt-var-kdb-db-smack-labels.service %{buildroot}%{_libdir}/systemd/system/basic.target.wants/
mkdir -p %{buildroot}%{_sysconfdir}/rc.d/init.d
mkdir -p %{buildroot}%{_sysconfdir}/rc.d/rc3.d
mkdir -p %{buildroot}%{_sysconfdir}/rc.d/rc4.d
install -m 0755 sqlfs-mount %{buildroot}%{_sysconfdir}/rc.d/init.d
ln -s ../init.d/sqlfs-mount %{buildroot}%{_sysconfdir}/rc.d/rc3.d/S03sqlfs-mount
ln -s ../init.d/sqlfs-mount %{buildroot}%{_sysconfdir}/rc.d/rc4.d/S03sqlfs-mount
#mkdir -p %{buildroot}%{_sysconfdir}/preconf.d
#install -m 0755 %{SOURCE7} %{buildroot}%{_sysconfdir}/preconf.d
mkdir -p %{buildroot}/usr/share/license
install COPYING %{buildroot}/usr/share/license/%{name}
%post
systemctl daemon-reload
%postun
systemctl daemon-reload
%files
%manifest %{name}.manifest
%{_sysconfdir}/rc.d/init.d/sqlfs-mount
%{_sysconfdir}/rc.d/rc3.d/S03sqlfs-mount
%{_sysconfdir}/rc.d/rc4.d/S03sqlfs-mount
#/sbin/mount.fuse.libsqlfs
%{_bindir}/sqlfs_txn_cmd
%{_bindir}/libsqlfs_mount
#%{_libdir}/systemd/system/opt-var-kdb-db.mount
#%{_libdir}/systemd/system/opt-var-kdb-db-libsqlfs.service
#%{_libdir}/systemd/system/opt-var-kdb-db-smack-labels.service
#%{_libdir}/systemd/system/basic.target.wants/opt-var-kdb-db-libsqlfs.service
#%{_libdir}/systemd/system/basic.target.wants/opt-var-kdb-db-smack-labels.service
/usr/share/license/%{name}
#%{_sysconfdir}/preconf.d/libsqlfs.preinit
%changelog
* Thu Jul 12 2012 - Hyungdeuk Kim <hd3.kim@samsung.com>
- Add -g flags to spec file for exe file strip
|