]> git.pld-linux.org Git - packages/libfilezilla.git/blame - libfilezilla.spec
- up to 0.37.2
[packages/libfilezilla.git] / libfilezilla.spec
CommitLineData
fdec25bb
WF
1#
2# Conditional build:
98d72535
JB
3%bcond_without apidocs # doxygen API documentation
4%bcond_without static_libs # static library
5%bcond_without tests # "make check"
fdec25bb 6#
ff2110f4 7%define libver 25
3733d616 8#
98d72535
JB
9Summary: Library for high-performing platform-independent programs
10Summary(pl.UTF-8): Biblioteka do wydajnych programów niezależnych od platformy
fdec25bb 11Name: libfilezilla
c2f4ada0 12Version: 0.37.2
fe7ec2b4 13Release: 1
2feaabb3 14License: GPL v2+
fdec25bb 15Group: Libraries
35f64aba 16Source0: https://download.filezilla-project.org/libfilezilla/%{name}-%{version}.tar.bz2
c2f4ada0 17# Source0-md5: fd8e6ad1a77a1c768750bf285dceb23c
35f64aba 18URL: https://lib.filezilla-project.org/
02115c6c
WF
19BuildRequires: autoconf >= 2.50
20BuildRequires: automake
15f7a1c5
JB
21%{?with_tests:BuildRequires: cppunit-devel >= 1.13.0}
22%{?with_apidocs:BuildRequires: doxygen}
02f4ce22 23BuildRequires: gettext-tools >= 0.11.0
639cd55f
JB
24%if %{with tests} && %(locale -a | grep -q '^C\.utf8$'; echo $?)
25BuildRequires: glibc-localedb-all
26%endif
9ceb0780
JB
27BuildRequires: gmp-devel
28BuildRequires: gnutls-devel >= 3.7.0
15f7a1c5
JB
29# -std=c++17
30BuildRequires: libstdc++-devel >= 6:7
02115c6c 31BuildRequires: libtool >= 2:2
639cd55f 32BuildRequires: nettle-devel >= 3.3
02115c6c 33BuildRequires: pkgconfig >= 1:0.7
fdec25bb 34BuildRequires: rpmbuild(macros) >= 1.583
9ceb0780 35Requires: gnutls-libs >= 3.7.0
639cd55f 36Requires: nettle >= 3.3
fdec25bb
WF
37BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
38
39%description
40libfilezilla is a free, open source C++ library, offering some basic
41functionality to build high-performing, platform-independent programs.
42Some of the highlights include:
43
44- A typesafe, multi-threaded event system that's very simple to use
45 yet extremely efficient
46- Timers for periodic events
47- A datetime class that not only tracks timestamp but also their
48 accuracy, which simplifies dealing with timestamps originating from
49 different sources
50- Simple process handling for spawning child processes with redirected
51 I/O
52
98d72535
JB
53%description -l pl.UTF-8
54libfilezilla to wolnodostępna biblioteka C++ o otwartych źródłach,
55oferująca pewną podstawową funkcjonalność do tworzenia wydajnych
56programów niezależnych od platformy. Uwzględnione funkcje obejmują:
3733d616
KM
57- bezpieczny pod względem typów, wielowątkowy system zdarzeń - bardzo
58 prosty w użyciu, a jednocześnie bardzo wydajny
98d72535
JB
59- zegary do zdarzeń regularnych
60- klasa daty i czasu nie tylko śledząca znacznik czasu, ale także jego
61 dokładność, co upraszcza obsługę znaczników czasu pochodzących z
62 różnych źródeł
63- prostą obsługę procesów do tworzenia procesów potomnych z
64 przekierowanym wejściem/wyjściem
fdec25bb
WF
65
66%package devel
98d72535
JB
67Summary: Header files for libfilezilla library
68Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libfilezilla
fdec25bb
WF
69Group: Development/Libraries
70Requires: %{name} = %{version}-%{release}
9ceb0780 71Requires: gnutls-devel >= 3.7.0
3733d616 72Requires: libstdc++-devel >= 6:7
639cd55f 73Requires: nettle-devel >= 3.3
fdec25bb
WF
74
75%description devel
98d72535 76Header files for libfilezilla library.
fdec25bb
WF
77
78%description devel -l pl.UTF-8
98d72535 79Pliki nagłówkowe biblioteki libfilezilla.
fdec25bb
WF
80
81%package static
98d72535
JB
82Summary: Static libfilezilla library
83Summary(pl.UTF-8): Statyczna biblioteka libfilezilla
fdec25bb
WF
84Group: Development/Libraries
85Requires: %{name}-devel = %{version}-%{release}
86
87%description static
98d72535 88Static libfilezilla library.
fdec25bb
WF
89
90%description static -l pl.UTF-8
98d72535 91Statyczna biblioteka libfilezilla.
fdec25bb
WF
92
93%package apidocs
94Summary: %{name} API documentation
95Summary(pl.UTF-8): Dokumentacja API biblioteki %{name}
96Group: Documentation
97
98%description apidocs
99API documentation for %{name} library.
100
101%description apidocs -l pl.UTF-8
102Dokumentacja API biblioteki %{name}.
103
104%prep
105%setup -q
106
1676018f
AG
107cd locales
108%{__mv} bg{_BG,}.po
109%{__mv} ca{_ES,}@valencia.po
110%{__mv} cs{_CZ,}.po
111%{__mv} fa{_IR,}.po
112%{__mv} fi{_FI,}.po
113%{__mv} gl{_ES,}.po
114%{__mv} he{_IL,}.po
115%{__mv} hu{_HU,}.po
116%{__mv} id{_ID,}.po
117%{__mv} ja{_JP,}.po
118%{__mv} ko{_KR,}.po
119%{__mv} lo{_LA,}.po
120%{__mv} lt{_LT,}.po
121%{__mv} lv{_LV,}.po
122%{__mv} mk{_MK,}.po
123%{__mv} nb{_NO,}.po
124%{__mv} nn{_NO,}.po
125%{__mv} pl{_PL,}.po
126%{__mv} pt{_PT,}.po
127%{__mv} ro{_RO,}.po
128%{__mv} sk{_SK,}.po
129%{__mv} sl{_SI,}.po
130%{__mv} th{_TH,}.po
131%{__mv} uk{_UA,}.po
132%{__mv} vi{_VN,}.po
133
fdec25bb 134%build
02115c6c
WF
135%{__libtoolize}
136%{__aclocal} -I m4
137%{__autoconf}
138%{__autoheader}
139%{__automake}
fdec25bb
WF
140%configure \
141 %{!?with_static_libs:--disable-static}
142%{__make}
143
98d72535
JB
144%if %{with tests}
145# wide char conversion test fails with plain C locale
146LC_ALL=C.UTF-8 \
147%{__make} check
148%endif
149
150%if %{with apidocs}
151%{__make} -C doc html
152%endif
153
fdec25bb
WF
154%install
155rm -rf $RPM_BUILD_ROOT
156
157%{__make} install \
158 DESTDIR=$RPM_BUILD_ROOT
159
160%{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
161
1676018f
AG
162# not supported by glibc (as of 2.25)
163%{__rm} -r $RPM_BUILD_ROOT%{_localedir}/co
164
db09d1b5
AG
165%find_lang %{name}
166
fdec25bb
WF
167%clean
168rm -rf $RPM_BUILD_ROOT
169
170%post -p /sbin/ldconfig
171%postun -p /sbin/ldconfig
172
db09d1b5 173%files -f %{name}.lang
fdec25bb 174%defattr(644,root,root,755)
98d72535
JB
175%doc AUTHORS ChangeLog NEWS README
176%attr(755,root,root) %{_libdir}/libfilezilla.so.*.*.*
5b44552d 177%attr(755,root,root) %ghost %{_libdir}/libfilezilla.so.%{libver}
fdec25bb
WF
178
179%files devel
180%defattr(644,root,root,755)
98d72535
JB
181%attr(755,root,root) %{_libdir}/libfilezilla.so
182%{_includedir}/libfilezilla
183%{_pkgconfigdir}/libfilezilla.pc
fdec25bb
WF
184
185%if %{with static_libs}
186%files static
187%defattr(644,root,root,755)
98d72535 188%{_libdir}/libfilezilla.a
fdec25bb
WF
189%endif
190
98d72535 191%if %{with apidocs}
fdec25bb
WF
192%files apidocs
193%defattr(644,root,root,755)
98d72535 194%doc doc/doxygen-doc/html/*
fdec25bb 195%endif
This page took 1.085087 seconds and 4 git commands to generate.