]> git.pld-linux.org Git - packages/wvstreams.git/blob - wvstreams.spec
f0ad61b734158c42371480c6ab99d340e9993072
[packages/wvstreams.git] / wvstreams.spec
1 #
2 # Conditional build:
3 %bcond_without  apidocs # Doxygen documentation
4 %bcond_without  qt      # wvstreams-qt library
5
6 Summary:        A network programming library written in C++
7 Summary(pl.UTF-8):      Biblioteka programowania sieciowego napisana w C++
8 Name:           wvstreams
9 Version:        4.6.1
10 Release:        12
11 License:        LGPL v2
12 Group:          Libraries
13 #Source0Download: http://code.google.com/p/wvstreams/downloads/list
14 Source0:        http://wvstreams.googlecode.com/files/%{name}-%{version}.tar.gz
15 # Source0-md5:  2760dac31a43d452a19a3147bfde571c
16 Patch0:         %{name}-sort.patch
17 Patch1:         %{name}-tcl.patch
18 Patch2:         %{name}-qt.patch
19 Patch3:         %{name}-openssl.patch
20 Patch4:         %{name}-includes.patch
21 Patch5:         %{name}-4.2.2-multilib.patch
22 Patch6:         %{name}-4.5-noxplctarget.patch
23 Patch7:         %{name}-4.6.1-make.patch
24 Patch8:         %{name}-4.6.1-gcc47.patch
25 Patch9:         %{name}-4.6.1-magic.patch
26 Patch10:        gcc-6.patch
27 Patch11:        unsigned.patch
28 URL:            http://alumnit.ca/wiki/index.php?page=WvStreams
29 BuildRequires:  autoconf >= 2.50
30 BuildRequires:  boost-devel
31 BuildRequires:  dbus-devel >= 1.2.14
32 %{?with_apidocs:BuildRequires:  doxygen}
33 BuildRequires:  libstdc++-devel
34 BuildRequires:  openssl-devel >= 0.9.7i
35 BuildRequires:  pam-devel
36 BuildRequires:  pkgconfig
37 %{?with_qt:BuildRequires:       qt-devel >= 3}
38 BuildRequires:  readline-devel
39 BuildRequires:  tcl-devel
40 BuildRequires:  zlib-devel
41 Obsoletes:      libwvstreams
42 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
43
44 %description
45 WvStreams aims to be an efficient, secure, and easy-to-use library for
46 doing network applications development.
47
48 %description -l pl.UTF-8
49 WvStreams próbuje być wydajną, bezpieczną i łatwą w użyciu biblioteką
50 do tworzenia aplikacji sieciowych.
51
52 %package devel
53 Summary:        Development files for WvStreams
54 Summary(pl.UTF-8):      Pliki developerskie dla WvStreams
55 Group:          Development/Libraries
56 Requires:       %{name} = %{version}-%{release}
57 Requires:       libstdc++-devel
58 Obsoletes:      libwvstreams-devel
59
60 %description devel
61 WvStreams aims to be an efficient, secure, and easy-to-use library for
62 doing network applications development. This package contains the
63 files needed for developing applications which use WvStreams.
64
65 %description devel -l pl.UTF-8
66 WvStreams próbuje być wydajną, bezpieczną i łatwą w użyciu biblioteką
67 do tworzenia aplikacji sieciowych. Pakiet ten zawiera pliki niezbędne
68 do kompilowania oprogramowania używającego WvStreams.
69
70 %package static
71 Summary:        Static WvStreams library
72 Summary(pl.UTF-8):      Statyczna biblioteka WvStreams
73 Group:          Development/Libraries
74 Requires:       %{name}-devel = %{version}-%{release}
75
76 %description static
77 Static WvStreams library.
78
79 %description static -l pl.UTF-8
80 Statyczna wersja biblioteki WvStreams.
81
82 %package qt
83 Summary:        WvStreams interface to Qt 3 library
84 Summary(pl.UTF-8):      Interfejs WvStreams do biblioteki Qt 3
85 Group:          X11/Libraries
86 Requires:       %{name} = %{version}-%{release}
87
88 %description qt
89 WvStreams interface to Qt 3 library.
90
91 %description qt -l pl.UTF-8
92 Interfejs WvStreams do biblioteki Qt 3.
93
94 %package qt-devel
95 Summary:        WvStreams interface to Qt 3 library - development files
96 Summary(pl.UTF-8):      Interfejs WvStreams do biblioteki Qt 3 - pliki programistyczne
97 Group:          X11/Libraries
98 Requires:       %{name}-devel = %{version}-%{release}
99 Requires:       %{name}-qt = %{version}-%{release}
100 Requires:       qt-devel >= 3
101
102 %description qt-devel
103 WvStreams interface to Qt 3 library - development files.
104
105 %description qt-devel -l pl.UTF-8
106 Interfejs WvStreams do biblioteki Qt 3 - pliki programistyczne.
107
108 %package apidocs
109 Summary:        API documentation for WvStreams libraries
110 Summary(pl.UTF-8):      Dokumentacja API bibliotek WvStreams
111 Group:          Documentation
112 BuildArch:      noarch
113
114 %description apidocs
115 API documentation for WvStreams libraries.
116
117 %description apidocs -l pl.UTF-8
118 Dokumentacja API bibliotek WvStreams.
119
120 %package uniconfd
121 Summary:        Daemon for the UniConf configuration system
122 Summary(pl.UTF-8):      Demon dla systemu konfiguracji UniConf
123 Group:          Daemons
124 Requires:       %{name} = %{version}-%{release}
125
126 %description uniconfd
127 UniConf is the One True Configuration system that includes all the
128 others because it has plugin backends and frontends. Or, less
129 grandiosely, it's a lightweight, distributed, cacheable tree of
130 strings.
131
132 uniconfd is necessary when you have more than one application, or
133 multiple instances of an application, sharing one configuration.
134 UniConf-enabled applications contact uniconfd which provides
135 notifications when any of their watched keys change.
136
137 %description uniconfd -l pl.UTF-8
138 UniConf to system Jedynie Słusznej Konfiguracji zawierający
139 wszystkie inne, ponieważ ma wtyczki backendowe i frontendowe.
140 Mniej górnolotnie mówiąc, jest to lekkie, rozproszone, cache'owalne
141 drzewo łańcuchów znaków.
142
143 uniconfd jest potrzebny w przypadku korzystania z jednej konfiguracji
144 przez więcej niż jedną aplikację lub wiele instancji aplikacji. Wtedy
145 aplikacje korzystające z UniConfa kontaktują się z uniconfd, który
146 zapewnia powiadomienia w przypadku zmiany dowolnego z obserwowanych
147 kluczy.
148
149 %package -n valgrind-wvstreams
150 Summary:        WvStreams support for Valgrind
151 Summary(pl.UTF-8):      Obsługa WvStreams dla Valgrinda
152 Group:          Development/Libraries
153 Requires:       %{name} = %{version}-%{release}
154 Requires:       valgrind
155
156 %description -n valgrind-wvstreams
157 WvStreams support for Valgrind.
158
159 %description -n valgrind-wvstreams -l pl.UTF-8
160 Obsługa WvStreams dla Valgrinda.
161
162 %prep
163 %setup -q
164 %patch0 -p1
165 %patch1 -p1
166 %patch2 -p1
167 %patch3 -p1
168 %patch4 -p1
169 %patch5 -p1
170 %patch6 -p1
171 %patch7 -p1
172 %patch8 -p1
173 %patch9 -p1
174 %patch10 -p1
175 %patch11 -p1
176
177 %build
178 %{__autoconf}
179 # disable-optimization disables -O2 override
180 %configure \
181         --disable-optimization \
182         %{!?with_qt:--without-qt}
183
184 %{__make} -j1 \
185         VPATH=%{_libdir} \
186         DEBUG=%{?debug:1}%{!?debug:0} \
187         CXX="%{__cxx}" \
188         VERBOSE=1 \
189         CXXOPTS="%{rpmcxxflags} -fPIC -fpermissive -fno-strict-aliasing -fno-tree-dce -fno-optimize-sibling-calls"
190         COPTS="%{rpmcflags} -fPIC -fPIC -fno-strict-aliasing"
191
192 %if %{with apidocs}
193 %{__make} doxygen
194 %endif
195
196 %install
197 rm -rf $RPM_BUILD_ROOT
198
199 %{__make} install \
200         DESTDIR=$RPM_BUILD_ROOT
201
202 %clean
203 rm -rf $RPM_BUILD_ROOT
204
205 %post   -p /sbin/ldconfig
206 %postun -p /sbin/ldconfig
207
208 %files
209 %defattr(644,root,root,755)
210 %doc README ChangeLog
211 %attr(755,root,root) %{_bindir}/uni
212 %attr(755,root,root) %{_bindir}/wsd
213 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/uniconf.conf
214 %attr(755,root,root) %{_libdir}/libuniconf.so.*.*
215 %attr(755,root,root) %{_libdir}/libwvbase.so.*.*
216 %attr(755,root,root) %{_libdir}/libwvdbus.so.*.*
217 %attr(755,root,root) %{_libdir}/libwvstreams.so.*.*
218 %attr(755,root,root) %{_libdir}/libwvutils.so.*.*
219 %{_mandir}/man8/uni.8*
220 %dir /var/lib/uniconf
221
222 %files devel
223 %defattr(644,root,root,755)
224 %attr(755,root,root) %{_bindir}/wvtestrun
225 %attr(755,root,root) %{_libdir}/libuniconf.so
226 %attr(755,root,root) %{_libdir}/libwvbase.so
227 %attr(755,root,root) %{_libdir}/libwvdbus.so
228 %attr(755,root,root) %{_libdir}/libwvstreams.so
229 %attr(755,root,root) %{_libdir}/libwvutils.so
230 %{_libdir}/libwvtest.a
231 %{_includedir}/wvstreams
232 %exclude %{_includedir}/wvstreams/wvqthook.h
233 %exclude %{_includedir}/wvstreams/wvqtstreamclone.h
234 %{_pkgconfigdir}/libuniconf.pc
235 %{_pkgconfigdir}/libwvbase.pc
236 %{_pkgconfigdir}/libwvdbus.pc
237 %{_pkgconfigdir}/libwvstreams.pc
238 %{_pkgconfigdir}/libwvtest.pc
239 %{_pkgconfigdir}/libwvutils.pc
240
241 %files static
242 %defattr(644,root,root,755)
243 %{_libdir}/libwvstatic.a
244
245 %if %{with qt}
246 %files qt
247 %defattr(644,root,root,755)
248 %attr(755,root,root) %{_libdir}/libwvqt.so.*.*
249
250 %files qt-devel
251 %defattr(644,root,root,755)
252 %attr(755,root,root) %{_libdir}/libwvqt.so
253 %{_includedir}/wvstreams/wvqthook.h
254 %{_includedir}/wvstreams/wvqtstreamclone.h
255 %{_pkgconfigdir}/libwvqt.pc
256 %endif
257
258 %if %{with apidocs}
259 %files apidocs
260 %defattr(644,root,root,755)
261 %doc Docs/doxy-html/*
262 %endif
263
264 %files uniconfd
265 %defattr(644,root,root,755)
266 %attr(755,root,root) %{_sbindir}/uniconfd
267 %config(noreplace) %verify(not md5 mtime size) /var/lib/uniconf/uniconfd.ini
268 %{_mandir}/man8/uniconfd.8*
269
270 %files -n valgrind-wvstreams
271 %defattr(644,root,root,755)
272 %{_libdir}/valgrind/wvstreams.supp
This page took 0.058178 seconds and 2 git commands to generate.