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
|
#
# Copyright 2008 Archie L. Cobbs.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
#
# In addition, as a special exception, the copyright holders give
# permission to link the code of portions of this program with the
# OpenSSL library under certain conditions as described in each
# individual source file, and distribute linked combinations including
# the two.
#
# You must obey the GNU General Public License in all respects for all
# of the code used other than OpenSSL. If you modify file(s) with this
# exception, you may extend this exception to your version of the
# file(s), but you are not obligated to do so. If you do not wish to do
# so, delete this exception statement from your version. If you delete
# this exception statement from all source files in the program, then
# also delete it here.
#
Name: s3backer
Version: @PACKAGE_VERSION@
Release: 1
License: GNU General Public License, Version 2
Summary: FUSE-based single file backing store via Amazon S3
Group: System/Filesystems
Source: https://s3.amazonaws.com/archie-public/%{name}/%{name}-%{version}.tar.gz
URL: https://github.com/archiecobbs/%{name}
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%if 0%{?suse_version} >= 1100
BuildRequires: libcurl-devel >= 7.16.2
BuildRequires: libopenssl-devel
%else
BuildRequires: curl-devel >= 7.16.2
BuildRequires: openssl-devel
%endif
BuildRequires: fuse-devel >= 2.5
BuildRequires: zlib-devel
%if 0%{?suse_version} < 1000 || 0%{?fedora_version} != 0 || 0%{?centos_version} != 0
BuildRequires: expat
%else
BuildRequires: libexpat-devel
%endif
BuildRequires: pkgconfig
%description
s3backer is a filesystem that contains a single file backed by the Amazon
Simple Storage Service (Amazon S3). As a filesystem, it is very simple:
it provides a single normal file having a fixed size. Underneath, the
file is divided up into blocks, and the content of each block is stored
in a unique Amazon S3 object. In other words, what s3backer provides is
really more like an S3-backed virtual hard disk device, rather than a
filesystem.
In typical usage, a `normal' filesystem is mounted on top of the file
exported by the s3backer filesystem using a loopback mount (or disk image
mount on Mac OS X).
%prep
%setup -q
%build
%{configure}
make
%install
rm -rf ${RPM_BUILD_ROOT}
%{makeinstall}
%files
%attr(0755,root,root) %{_bindir}/%{name}
%if 0%{?mandriva_version}
%attr(0644,root,root) %{_mandir}/man1/%{name}.1
%else
%attr(0644,root,root) %{_mandir}/man1/%{name}.1.gz
%endif
%defattr(0644,root,root,0755)
%doc %{_datadir}/doc/packages/%{name}
|