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