path: root/libs3.spec
diff options
authorKen Dreyer <>2015-06-11 19:10:42 -0600
committerKen Dreyer <>2015-06-11 19:10:42 -0600
commit780dcbfd13c37a10734007f1e21d1cb12e86ea1c (patch)
tree2f238b3078ad31fb66b82d8b2336588f5fc61ca5 /libs3.spec
initial package importHEADmaster
Diffstat (limited to 'libs3.spec')
1 files changed, 88 insertions, 0 deletions
diff --git a/libs3.spec b/libs3.spec
new file mode 100644
index 0000000..26ff32f
--- /dev/null
+++ b/libs3.spec
@@ -0,0 +1,88 @@
+%global commitdate 20150611
+%global commit 11a4e976c28ba525e7d61fbc3867c345a2af1519
+%global shortcommit %(c=%{commit}; echo ${c:0:7})
+Name: libs3
+Version: 2.0
+Release: 0.1.%{commitdate}git%{shortcommit}%{?dist}
+Summary: C Library and Tools for Amazon S3 Access
+License: LGPLv3
+Group: System Environment/Libraries
+BuildRequires: curl-devel
+BuildRequires: libxml2-devel
+This package includes the libs3 shared object library, needed to run
+applications compiled against libs3, and additionally contains the s3
+utility for accessing Amazon S3.
+%package devel
+Summary: Headers and documentation for libs3
+Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
+%description devel
+This library provides an API for using Amazon's S3 service (see
+ Its design goals are:
+ - To provide a simple and straightforward API for accessing all of S3's
+ functionality
+ - To not require the developer using libs3 to need to know anything about:
+ - HTTP
+ - XML
+ - SSL
+ In other words, this API is meant to stand on its own, without requiring
+ any implicit knowledge of how S3 services are accessed using HTTP
+ protocols.
+ - To be usable from multithreaded code
+ - To be usable by code which wants to process multiple S3 requests
+ simultaneously from a single thread
+ - To be usable in the simple, straightforward way using sequentialized
+ blocking requests
+%setup -q -n %{name}-%{commit}
+make %{?_smp_mflags} exported
+# Does this work with libs3?
+#make check
+DESTDIR=%{buildroot}%{_prefix} LIBDIR=%{buildroot}%{_libdir} make install
+# Remove static libtool archive:
+rm %{buildroot}%{_libdir}/libs3.a
+%if 0%{?el6}
+ /sbin/ldconfig
+ %{_sbindir}/ldconfig
+%if 0%{?el6}
+ /sbin/ldconfig
+ %{_sbindir}/ldconfig
+%{!?_licensedir:%global license %%doc}
+%license COPYING
+%files devel
+* Fri Jun 12 2015 Ken Dreyer <> - 2.0-0.1.20150611git11a4e97
+- Initial package