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: http://download.filezilla-project.org/libfilezilla/%{name}-%{version}.tar.bz2
15 # Source0-md5: 4676304b048869ab6ac6ae09a1ab29f9
16 URL: http://lib.filezilla-project.org/
17 %{?with_tests:BuildRequires: cppunit-devel >= 1.10.2}
18 %{?with_apidocs:BuildRequires: doxygen}
19 %if %{with tests} && %(locale -a | grep -q '^C\.UTF-8$'; echo $?)
20 BuildRequires: glibc-localedb-all
23 BuildRequires: libstdc++-devel >= 6:5
24 BuildRequires: rpmbuild(macros) >= 1.583
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28 libfilezilla is a free, open source C++ library, offering some basic
29 functionality to build high-performing, platform-independent programs.
30 Some of the highlights include:
32 - A typesafe, multi-threaded event system that's very simple to use
33 yet extremely efficient
34 - Timers for periodic events
35 - A datetime class that not only tracks timestamp but also their
36 accuracy, which simplifies dealing with timestamps originating from
38 - Simple process handling for spawning child processes with redirected
41 %description -l pl.UTF-8
42 libfilezilla to wolnodostępna biblioteka C++ o otwartych źródłach,
43 oferująca pewną podstawową funkcjonalność do tworzenia wydajnych
44 programów niezależnych od platformy. Uwzględnione funkcje obejmują:
45 - bezpieczny pod względem typów, wielowątkowy system zdarzeń -
46 bardzo prosty w użyciu, a jednocześnie bardzo wydajny
47 - zegary do zdarzeń regularnych
48 - klasa daty i czasu nie tylko śledząca znacznik czasu, ale także jego
49 dokładność, co upraszcza obsługę znaczników czasu pochodzących z
51 - prostą obsługę procesów do tworzenia procesów potomnych z
52 przekierowanym wejściem/wyjściem
55 Summary: Header files for libfilezilla library
56 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libfilezilla
57 Group: Development/Libraries
58 Requires: %{name} = %{version}-%{release}
59 Requires: libstdc++-devel >= 6:5
62 Header files for libfilezilla library.
64 %description devel -l pl.UTF-8
65 Pliki nagłówkowe biblioteki libfilezilla.
68 Summary: Static libfilezilla library
69 Summary(pl.UTF-8): Statyczna biblioteka libfilezilla
70 Group: Development/Libraries
71 Requires: %{name}-devel = %{version}-%{release}
74 Static libfilezilla library.
76 %description static -l pl.UTF-8
77 Statyczna biblioteka libfilezilla.
80 Summary: %{name} API documentation
81 Summary(pl.UTF-8): Dokumentacja API biblioteki %{name}
85 API documentation for %{name} library.
87 %description apidocs -l pl.UTF-8
88 Dokumentacja API biblioteki %{name}.
95 %{!?with_static_libs:--disable-static}
99 # wide char conversion test fails with plain C locale
105 %{__make} -C doc html
109 rm -rf $RPM_BUILD_ROOT
112 DESTDIR=$RPM_BUILD_ROOT
114 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
117 rm -rf $RPM_BUILD_ROOT
119 %post -p /sbin/ldconfig
120 %postun -p /sbin/ldconfig
123 %defattr(644,root,root,755)
124 %doc AUTHORS ChangeLog NEWS README
125 %attr(755,root,root) %{_libdir}/libfilezilla.so.*.*.*
126 %attr(755,root,root) %ghost %{_libdir}/libfilezilla.so.0
129 %defattr(644,root,root,755)
130 %attr(755,root,root) %{_libdir}/libfilezilla.so
131 %{_includedir}/libfilezilla
132 %{_pkgconfigdir}/libfilezilla.pc
134 %if %{with static_libs}
136 %defattr(644,root,root,755)
137 %{_libdir}/libfilezilla.a
142 %defattr(644,root,root,755)
143 %doc doc/doxygen-doc/html/*