]> git.pld-linux.org Git - packages/libs3.git/blame - libs3.spec
- updated to (probably post-, but there are no tagged releses) 4.1 snapshot (new...
[packages/libs3.git] / libs3.spec
CommitLineData
077e9b87
JB
1#
2# Conditional build:
3%bcond_without apidocs # do not build and package API docs
7f316357 4
077e9b87
JB
5Summary: C library and tools for Amazon S3 access
6Summary(pl.UTF-8): Biblioteka C i narzędzia do dostępu do Amazon S3
7Name: libs3
e1576b75
JB
8Version: 4.1
9%define gitref 287e4bee6fd430ffb52604049de80a27a77ff6b4
10%define snap 20190410
11%define rel 1
12Release: 0.%{snap}.%{rel}
13License: LGPL v3+ or GPL v2 with OpenSSL exception
077e9b87 14Group: Libraries
e1576b75
JB
15#Source0Download: https://github.com/bji/libs3/releases
16Source0: https://github.com/bji/libs3/archive/%{gitref}/%{name}-%{snap}.tar.gz
17# Source0-md5: e5600266b8430bdf5dd8d44869857b32
e3493c15 18Patch0: %{name}-make.patch
8e086a84 19URL: https://github.com/bji/libs3
077e9b87
JB
20BuildRequires: curl-devel
21%{?with_apidocs:BuildRequires: doxygen}
e1576b75 22BuildRequires: libxml2-devel >= 2
077e9b87
JB
23BuildRequires: openssl-devel
24BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26%description
27This package includes the libs3 shared library needed to run
7f316357
ER
28applications using libs3 and additionally contains the s3 utility for
29accessing Amazon S3.
077e9b87
JB
30
31%description -l pl.UTF-8
32Ten pakiet zawiera bibliotekę współdzieloną libs3 niezbędną do
7f316357
ER
33uruchamiania aplikacji wykorzystujących libs3 oraz dodatkowo narzędzie
34s3 pozwalające na dostęp do Amazon S3.
077e9b87
JB
35
36%package devel
37Summary: Header files for libs3 library
38Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libs3
39Group: Development/Libraries
40Requires: %{name} = %{version}-%{release}
41Requires: curl-devel
e1576b75 42Requires: libxml2-devel >= 2
077e9b87
JB
43Requires: openssl-devel
44
45%description devel
46Header files for libs3 library.
47
48%description devel -l pl.UTF-8
49Pliki nagłówkowe biblioteki libs3.
50
51%package static
52Summary: Static libs3 library
53Summary(pl.UTF-8): Statyczna biblioteka libs3
54Group: Development/Libraries
55Requires: %{name}-devel = %{version}-%{release}
56
57%description static
58Static libs3 library.
59
60%description static -l pl.UTF-8
61Statyczna biblioteka libs3.
62
63%package apidocs
64Summary: libs3 API documentation
65Summary(pl.UTF-8): Dokumentacja API biblioteki libs3
66Group: Documentation
e1576b75 67%if "%{_rpmversion}" >= "4.6"
7f316357
ER
68BuildArch: noarch
69%endif
077e9b87
JB
70
71%description apidocs
72API and internal documentation for libs3 library.
73
74%description apidocs -l pl.UTF-8
75Dokumentacja API biblioteki libs3.
76
77%prep
e1576b75 78%setup -q -n %{name}-%{gitref}
e3493c15 79%patch0 -p1
077e9b87
JB
80
81%build
e3493c15 82CFLAGS="%{rpmcflags} %{rpmcppflags}" \
077e9b87 83%{__make} exported \
e3493c15
JB
84 CC="%{__cc}" \
85 LDOPTS="%{rpmldflags}" \
077e9b87
JB
86 VERBOSE=1
87
88%{?with_apidocs:doxygen}
89
90%install
91rm -rf $RPM_BUILD_ROOT
92
93%{__make} install \
e1576b75
JB
94 DESTDIR=$RPM_BUILD_ROOT%{_prefix} \
95 LIBDIR=$RPM_BUILD_ROOT%{_libdir}
077e9b87 96
e3493c15
JB
97# let rpm generate dependencies
98chmod 755 $RPM_BUILD_ROOT%{_libdir}/libs3.so*
99
077e9b87
JB
100%clean
101rm -rf $RPM_BUILD_ROOT
102
103%post -p /sbin/ldconfig
104%postun -p /sbin/ldconfig
105
106%files
107%defattr(644,root,root,755)
108%doc ChangeLog LICENSE README TODO
109%attr(755,root,root) %{_bindir}/s3
110%attr(755,root,root) %{_libdir}/libs3.so.*.*
e1576b75 111%attr(755,root,root) %ghost %{_libdir}/libs3.so.4
077e9b87
JB
112
113%files devel
114%defattr(644,root,root,755)
115%attr(755,root,root) %{_libdir}/libs3.so
116%{_includedir}/libs3.h
117
118%files static
119%defattr(644,root,root,755)
120%{_libdir}/libs3.a
121
122%if %{with apidocs}
123%files apidocs
124%defattr(644,root,root,755)
e1576b75 125%doc dox/html/*.{css,html,js,png}
077e9b87 126%endif
This page took 0.084877 seconds and 4 git commands to generate.