3 %bcond_without apidocs # do not build and package API docs
5 Summary: C library and tools for Amazon S3 access
6 Summary(pl.UTF-8): Biblioteka C i narzędzia do dostępu do Amazon S3
10 License: GPL v3 with OpenSSL exception
12 Source0: http://libs3.ischo.com.s3.amazonaws.com/%{name}-%{version}.tar.gz
13 # Source0-md5: e52da69ddc11019e98cf8246fc55b4e1
14 Patch0: %{name}-make.patch
15 URL: https://github.com/bji/libs3
16 BuildRequires: curl-devel
17 %{?with_apidocs:BuildRequires: doxygen}
18 BuildRequires: libxml2-devel
19 BuildRequires: openssl-devel
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 This package includes the libs3 shared library needed to run
24 applications using libs3 and additionally contains the s3 utility for
27 %description -l pl.UTF-8
28 Ten pakiet zawiera bibliotekę współdzieloną libs3 niezbędną do
29 uruchamiania aplikacji wykorzystujących libs3 oraz dodatkowo narzędzie
30 s3 pozwalające na dostęp do Amazon S3.
33 Summary: Header files for libs3 library
34 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libs3
35 Group: Development/Libraries
36 Requires: %{name} = %{version}-%{release}
38 Requires: libxml2-devel
39 Requires: openssl-devel
42 Header files for libs3 library.
44 %description devel -l pl.UTF-8
45 Pliki nagłówkowe biblioteki libs3.
48 Summary: Static libs3 library
49 Summary(pl.UTF-8): Statyczna biblioteka libs3
50 Group: Development/Libraries
51 Requires: %{name}-devel = %{version}-%{release}
56 %description static -l pl.UTF-8
57 Statyczna biblioteka libs3.
60 Summary: libs3 API documentation
61 Summary(pl.UTF-8): Dokumentacja API biblioteki libs3
63 %if "%{_rpmversion}" >= "5"
68 API and internal documentation for libs3 library.
70 %description apidocs -l pl.UTF-8
71 Dokumentacja API biblioteki libs3.
78 CFLAGS="%{rpmcflags} %{rpmcppflags}" \
81 LDOPTS="%{rpmldflags}" \
84 %{?with_apidocs:doxygen}
87 rm -rf $RPM_BUILD_ROOT
90 DESTDIR=$RPM_BUILD_ROOT%{_prefix}
92 %if "%{_lib}" != "lib"
93 %{__mv} $RPM_BUILD_ROOT%{_prefix}/{lib,%{_lib}}
96 # let rpm generate dependencies
97 chmod 755 $RPM_BUILD_ROOT%{_libdir}/libs3.so*
100 rm -rf $RPM_BUILD_ROOT
102 %post -p /sbin/ldconfig
103 %postun -p /sbin/ldconfig
106 %defattr(644,root,root,755)
107 %doc ChangeLog LICENSE README TODO
108 %attr(755,root,root) %{_bindir}/s3
109 %attr(755,root,root) %{_libdir}/libs3.so.*.*
110 %attr(755,root,root) %ghost %{_libdir}/libs3.so.2
113 %defattr(644,root,root,755)
114 %attr(755,root,root) %{_libdir}/libs3.so
115 %{_includedir}/libs3.h
118 %defattr(644,root,root,755)
123 %defattr(644,root,root,755)