]>
Commit | Line | Data |
---|---|---|
077e9b87 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without apidocs # do not build and package API docs | |
4 | # | |
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 | |
7 | Name: libs3 | |
8 | Version: 2.0 | |
5c3a2836 | 9 | Release: 2 |
077e9b87 JB |
10 | License: GPL v3 with OpenSSL exception |
11 | Group: Libraries | |
12 | Source0: http://libs3.ischo.com.s3.amazonaws.com/%{name}-%{version}.tar.gz | |
13 | # Source0-md5: e52da69ddc11019e98cf8246fc55b4e1 | |
14 | URL: http://libs3.ischo.com.s3.amazonaws.com/index.html | |
15 | BuildRequires: curl-devel | |
16 | %{?with_apidocs:BuildRequires: doxygen} | |
17 | BuildRequires: libxml2-devel | |
18 | BuildRequires: openssl-devel | |
19 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
20 | ||
21 | %description | |
22 | This package includes the libs3 shared library needed to run | |
23 | applications using libs3 and additionally contains the s3 utility | |
24 | for accessing Amazon S3. | |
25 | ||
26 | %description -l pl.UTF-8 | |
27 | Ten pakiet zawiera bibliotekę współdzieloną libs3 niezbędną do | |
28 | uruchamiania aplikacji wykorzystujących libs3 oraz dodatkowo | |
29 | narzędzie s3 pozwalające na dostęp do Amazon S3. | |
30 | ||
31 | %package devel | |
32 | Summary: Header files for libs3 library | |
33 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libs3 | |
34 | Group: Development/Libraries | |
35 | Requires: %{name} = %{version}-%{release} | |
36 | Requires: curl-devel | |
37 | Requires: libxml2-devel | |
38 | Requires: openssl-devel | |
39 | ||
40 | %description devel | |
41 | Header files for libs3 library. | |
42 | ||
43 | %description devel -l pl.UTF-8 | |
44 | Pliki nagłówkowe biblioteki libs3. | |
45 | ||
46 | %package static | |
47 | Summary: Static libs3 library | |
48 | Summary(pl.UTF-8): Statyczna biblioteka libs3 | |
49 | Group: Development/Libraries | |
50 | Requires: %{name}-devel = %{version}-%{release} | |
51 | ||
52 | %description static | |
53 | Static libs3 library. | |
54 | ||
55 | %description static -l pl.UTF-8 | |
56 | Statyczna biblioteka libs3. | |
57 | ||
58 | %package apidocs | |
59 | Summary: libs3 API documentation | |
60 | Summary(pl.UTF-8): Dokumentacja API biblioteki libs3 | |
61 | Group: Documentation | |
62 | ||
63 | %description apidocs | |
64 | API and internal documentation for libs3 library. | |
65 | ||
66 | %description apidocs -l pl.UTF-8 | |
67 | Dokumentacja API biblioteki libs3. | |
68 | ||
69 | %prep | |
70 | %setup -q | |
71 | ||
72 | %build | |
73 | CFLAGS="%{rpmcflags}" \ | |
74 | %{__make} exported \ | |
75 | VERBOSE=1 | |
76 | ||
77 | %{?with_apidocs:doxygen} | |
78 | ||
79 | %install | |
80 | rm -rf $RPM_BUILD_ROOT | |
81 | ||
82 | %{__make} install \ | |
83 | DESTDIR=$RPM_BUILD_ROOT%{_prefix} | |
84 | ||
85 | %if "%{_lib}" != "lib" | |
86 | mv -f $RPM_BUILD_ROOT%{_prefix}/{lib,%{_lib}} | |
87 | %endif | |
88 | ||
89 | %clean | |
90 | rm -rf $RPM_BUILD_ROOT | |
91 | ||
92 | %post -p /sbin/ldconfig | |
93 | %postun -p /sbin/ldconfig | |
94 | ||
95 | %files | |
96 | %defattr(644,root,root,755) | |
97 | %doc ChangeLog LICENSE README TODO | |
98 | %attr(755,root,root) %{_bindir}/s3 | |
99 | %attr(755,root,root) %{_libdir}/libs3.so.*.* | |
100 | %attr(755,root,root) %ghost %{_libdir}/libs3.so.2 | |
101 | ||
102 | %files devel | |
103 | %defattr(644,root,root,755) | |
104 | %attr(755,root,root) %{_libdir}/libs3.so | |
105 | %{_includedir}/libs3.h | |
106 | ||
107 | %files static | |
108 | %defattr(644,root,root,755) | |
109 | %{_libdir}/libs3.a | |
110 | ||
111 | %if %{with apidocs} | |
112 | %files apidocs | |
113 | %defattr(644,root,root,755) | |
114 | %doc dox/html/* | |
115 | %endif |