track soname
[packages/dclib.git] / dclib.spec
1 #
2 # Conditional build:
3 %bcond_with     lying   # lie about the H header (always H:1)
4 #
5 Summary:        DirectConnect support library for dcgui-qt
6 Summary(pl.UTF-8):      Biblioteka obsługująca DirectConnect dla dcgui-qt
7 Name:           dclib
8 Version:        0.3.23
9 Release:        2
10 Epoch:          1
11 License:        GPL
12 Group:          Libraries
13 Source0:        http://dl.sourceforge.net/wxdcgui/%{name}-%{version}.tar.bz2
14 # Source0-md5:  6852e420e48d09b514fcb9f783611cdc
15 Patch0:         %{name}-lying_tags.patch
16 Patch1:         %{name}-ssl.patch
17 URL:            http://wxdcgui.sourceforge.net/
18 BuildRequires:  autoconf
19 BuildRequires:  automake
20 BuildRequires:  bzip2-devel
21 BuildRequires:  libstdc++-devel
22 BuildRequires:  libtool
23 BuildRequires:  libxml2-devel > 2.0.0
24 BuildRequires:  openssl-devel >= 0.9.7d
25 BuildRequires:  pkgconfig
26 Requires:       libxml2 > 2.0.0
27 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28
29 %description
30 DirectConnect support library for dcgui-qt.
31
32 %description -l pl.UTF-8
33 Biblioteka obsługująca DirectConnect dla dcgui-qt.
34
35 %package devel
36 Summary:        Header files for dclib
37 Summary(pl.UTF-8):      Pliki nagłówkowe dla dclib
38 Group:          Development/Libraries
39 Requires:       %{name} = %{epoch}:%{version}-%{release}
40 Requires:       bzip2-devel
41 Requires:       libstdc++-devel
42 Requires:       libxml2-devel > 2.0.0
43 Requires:       openssl-devel
44 Obsoletes:      dclib-static
45
46 %description devel
47 Header files for dclib.
48
49 %description devel -l pl.UTF-8
50 Pliki nagłówkowe dla dclib.
51
52 %prep
53 %setup -q
54 %{?with_lying:%patch0 -p1}
55 %patch1 -p1
56
57 %build
58 %configure PTHREAD_LIBS=-lpthread
59 %{__make}
60
61 %install
62 rm -rf $RPM_BUILD_ROOT
63
64 %{__make} install \
65         DESTDIR=$RPM_BUILD_ROOT
66
67 %clean
68 rm -rf $RPM_BUILD_ROOT
69
70 %post   -p /sbin/ldconfig
71 %postun -p /sbin/ldconfig
72
73 %files
74 %defattr(644,root,root,755)
75 %doc AUTHORS README
76 %attr(755,root,root) %ghost %{_libdir}/libdc.so.5
77 %attr(755,root,root) %{_libdir}/libdc.so.*.*
78
79 %files devel
80 %defattr(644,root,root,755)
81 %attr(755,root,root) %{_libdir}/*.so
82 %{_libdir}/*.la
83 %dir %{_includedir}/dclib-0.3/
84 %dir %{_includedir}/dclib-0.3/dclib/core
85 %{_includedir}/dclib-0.3/dclib/core/*.h
86 %dir %{_includedir}/dclib-0.3/dclib
87 %{_includedir}/dclib-0.3/dclib/*.h
88 %{_pkgconfigdir}/*.pc
This page took 0.052068 seconds and 3 git commands to generate.