]>
Commit | Line | Data |
---|---|---|
1 | %define tag c5e5eb58e48a6ad08298f178a9d91b9539abf883 | |
2 | Summary: Transparent read-write compression filesystem | |
3 | Summary(pl.UTF-8): System plików z przezroczystą kompresją danych | |
4 | Name: fusecompress | |
5 | Version: 2.6 | |
6 | Release: 4 | |
7 | License: GPL v2+ | |
8 | Group: Applications/System | |
9 | Source0: https://github.com/tex/fusecompress/archive/2.6.tar.gz | |
10 | # Source0-md5: 923688bd13b9d87fb74a0449bdf86724 | |
11 | Patch0: fusecompress-git.patch | |
12 | URL: https://code.google.com/p/fusecompress/ | |
13 | BuildRequires: autoconf >= 2.59 | |
14 | BuildRequires: automake | |
15 | BuildRequires: boost-devel >= 1.33.1 | |
16 | BuildRequires: bzip2-devel | |
17 | BuildRequires: libfuse-devel >= 2.6 | |
18 | BuildRequires: libmagic-devel | |
19 | BuildRequires: lzo-devel >= 2 | |
20 | BuildRequires: libstdc++-devel | |
21 | BuildRequires: rlog-devel >= 1.3 | |
22 | BuildRequires: xz-devel | |
23 | BuildRequires: zlib-devel | |
24 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
25 | ||
26 | %description | |
27 | FuseCompress provides a mountable Linux filesystem which transparently | |
28 | compress its content. Files stored in this filesystem are compressed | |
29 | on the fly and Fuse allows to create a transparent interface between | |
30 | compressed files and user applications. | |
31 | ||
32 | %description -l pl.UTF-8 | |
33 | FuseCompress udostępnia montowalny system plików, który przezroczyście | |
34 | kompresuje swoją zawartość. Pliki przechowywane na tym systemie plików | |
35 | są kompresowane w locie, a Fuse pozwala utworzyć przezroczysty | |
36 | interfejs między skompresowanymi plikami a aplikacjami użytkownika | |
37 | ||
38 | %prep | |
39 | %setup -q -n %{name}-%{version} | |
40 | %patch0 -p1 | |
41 | ||
42 | # gold causes really weird issues with fuse apps | |
43 | install -d ld-dir | |
44 | [ ! -x /usr/bin/ld.bfd ] || ln -sf /usr/bin/ld.bfd ld-dir/ld | |
45 | ||
46 | %build | |
47 | PATH=$(pwd)/ld-dir:$PATH | |
48 | %{__aclocal} -I m4 | |
49 | %{__autoconf} | |
50 | %{__autoheader} | |
51 | %{__automake} | |
52 | %configure \ | |
53 | --bindir=%{_sbindir} \ | |
54 | --with-boost-libdir=%{_libdir} \ | |
55 | --with-boost-filesystem=boost_filesystem \ | |
56 | --with-boost-iostreams=boost_iostreams \ | |
57 | --with-boost-program-options=boost_program_options \ | |
58 | --with-boost-serialization=boost_serialization \ | |
59 | --with-boost-system=boost_system \ | |
60 | --with-bz2 \ | |
61 | --with-lzma \ | |
62 | --with-lzo2 \ | |
63 | --with-z | |
64 | %{__make} | |
65 | ||
66 | %install | |
67 | rm -rf $RPM_BUILD_ROOT | |
68 | ||
69 | %{__make} install \ | |
70 | DESTDIR=$RPM_BUILD_ROOT | |
71 | ||
72 | %{__mv} $RPM_BUILD_ROOT%{_sbindir}/{print_compress,fusecompress_print_compress} | |
73 | %{__rm} $RPM_BUILD_ROOT%{_sbindir}/xattrs | |
74 | ||
75 | %clean | |
76 | rm -rf $RPM_BUILD_ROOT | |
77 | ||
78 | %files | |
79 | %defattr(644,root,root,755) | |
80 | %doc AUTHORS LICENSE NEWS README TODO | |
81 | %attr(755,root,root) %{_sbindir}/mount.fusecompress | |
82 | %attr(755,root,root) %{_sbindir}/%{name} | |
83 | %attr(755,root,root) %{_sbindir}/%{name}_offline | |
84 | %attr(755,root,root) %{_sbindir}/%{name}_print_compress | |
85 | %{_mandir}/man1/fusecompress.1* | |
86 | %{_mandir}/man1/fusecompress_offline.1* |