3 %bcond_without apidocs # doxygen API documentation
4 %bcond_without static_libs # static library
5 %bcond_without tests # "make check"
7 Summary: Library for high-performing platform-independent programs
8 Summary(pl.UTF-8): Biblioteka do wydajnych programów niezależnych od platformy
14 Source0: https://download.filezilla-project.org/libfilezilla/%{name}-%{version}.tar.bz2
15 # Source0-md5: b72d406002aff5128651ab8d7a6666c4
16 URL: https://lib.filezilla-project.org/
17 %{?with_tests:BuildRequires: cppunit-devel >= 1.13.0}
18 %{?with_apidocs:BuildRequires: doxygen}
19 %if %{with tests} && %(locale -a | grep -q '^C\.utf8$'; echo $?)
20 BuildRequires: glibc-localedb-all
22 BuildRequires: autoconf >= 2.50
23 BuildRequires: automake
24 BuildRequires: gettext-tools >= 0.11.0
25 BuildRequires: gnutls-devel >= 3.5.7
26 BuildRequires: libtool >= 2:2
27 BuildRequires: nettle-devel >= 3.1
28 BuildRequires: pkgconfig >= 1:0.7
30 BuildRequires: libstdc++-devel >= 6:7
31 BuildRequires: rpmbuild(macros) >= 1.583
32 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
35 libfilezilla is a free, open source C++ library, offering some basic
36 functionality to build high-performing, platform-independent programs.
37 Some of the highlights include:
39 - A typesafe, multi-threaded event system that's very simple to use
40 yet extremely efficient
41 - Timers for periodic events
42 - A datetime class that not only tracks timestamp but also their
43 accuracy, which simplifies dealing with timestamps originating from
45 - Simple process handling for spawning child processes with redirected
48 %description -l pl.UTF-8
49 libfilezilla to wolnodostępna biblioteka C++ o otwartych źródłach,
50 oferująca pewną podstawową funkcjonalność do tworzenia wydajnych
51 programów niezależnych od platformy. Uwzględnione funkcje obejmują:
52 - bezpieczny pod względem typów, wielowątkowy system zdarzeń -
53 bardzo prosty w użyciu, a jednocześnie bardzo wydajny
54 - zegary do zdarzeń regularnych
55 - klasa daty i czasu nie tylko śledząca znacznik czasu, ale także jego
56 dokładność, co upraszcza obsługę znaczników czasu pochodzących z
58 - prostą obsługę procesów do tworzenia procesów potomnych z
59 przekierowanym wejściem/wyjściem
62 Summary: Header files for libfilezilla library
63 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libfilezilla
64 Group: Development/Libraries
65 Requires: %{name} = %{version}-%{release}
66 Requires: libstdc++-devel >= 6:7
67 Requires: gnutls-devel >= 3.5.7
68 Requires: nettle-devel >= 3.1
71 Header files for libfilezilla library.
73 %description devel -l pl.UTF-8
74 Pliki nagłówkowe biblioteki libfilezilla.
77 Summary: Static libfilezilla library
78 Summary(pl.UTF-8): Statyczna biblioteka libfilezilla
79 Group: Development/Libraries
80 Requires: %{name}-devel = %{version}-%{release}
83 Static libfilezilla library.
85 %description static -l pl.UTF-8
86 Statyczna biblioteka libfilezilla.
89 Summary: %{name} API documentation
90 Summary(pl.UTF-8): Dokumentacja API biblioteki %{name}
94 API documentation for %{name} library.
96 %description apidocs -l pl.UTF-8
97 Dokumentacja API biblioteki %{name}.
104 %{__mv} ca{_ES,}@valencia.po
136 %{!?with_static_libs:--disable-static}
140 # wide char conversion test fails with plain C locale
146 %{__make} -C doc html
150 rm -rf $RPM_BUILD_ROOT
153 DESTDIR=$RPM_BUILD_ROOT
155 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
157 # not supported by glibc (as of 2.25)
158 %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/co
163 rm -rf $RPM_BUILD_ROOT
165 %post -p /sbin/ldconfig
166 %postun -p /sbin/ldconfig
168 %files -f %{name}.lang
169 %defattr(644,root,root,755)
170 %doc AUTHORS ChangeLog NEWS README
171 %attr(755,root,root) %{_libdir}/libfilezilla.so.*.*.*
172 %attr(755,root,root) %ghost %{_libdir}/libfilezilla.so.0
175 %defattr(644,root,root,755)
176 %attr(755,root,root) %{_libdir}/libfilezilla.so
177 %{_includedir}/libfilezilla
178 %{_pkgconfigdir}/libfilezilla.pc
180 %if %{with static_libs}
182 %defattr(644,root,root,755)
183 %{_libdir}/libfilezilla.a
188 %defattr(644,root,root,755)
189 %doc doc/doxygen-doc/html/*