eb32b3985ef10ad72f7239f72acff3eff971b71f
[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:        1
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 Requires:       libxml2 > 2.0.0
26 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28 %description
29 DirectConnect support library for dcgui-qt.
30
31 %description -l pl.UTF-8
32 Biblioteka obsługująca DirectConnect dla dcgui-qt.
33
34 %package devel
35 Summary:        Header files for dclib
36 Summary(pl.UTF-8):      Pliki nagłówkowe dla dclib
37 Group:          Development/Libraries
38 Requires:       %{name} = %{epoch}:%{version}-%{release}
39 Requires:       bzip2-devel
40 Requires:       libstdc++-devel
41 Requires:       libxml2-devel > 2.0.0
42 Requires:       openssl-devel
43 Obsoletes:      dclib-static
44
45 %description devel
46 Header files for dclib.
47
48 %description devel -l pl.UTF-8
49 Pliki nagłówkowe dla dclib.
50
51 %prep
52 %setup -q
53 %{?with_lying:%patch0 -p1}
54 %patch1 -p1
55
56 %build
57 %configure
58 %{__make}
59
60 %install
61 rm -rf $RPM_BUILD_ROOT
62
63 %{__make} install \
64         DESTDIR=$RPM_BUILD_ROOT
65
66 %clean
67 rm -rf $RPM_BUILD_ROOT
68
69 %post   -p /sbin/ldconfig
70 %postun -p /sbin/ldconfig
71
72 %files
73 %defattr(644,root,root,755)
74 %doc AUTHORS README
75 %attr(755,root,root) %{_libdir}/libdc.so.*.*
76
77 %files devel
78 %defattr(644,root,root,755)
79 %attr(755,root,root) %{_libdir}/*.so
80 %{_libdir}/*.la
81 %dir %{_includedir}/dclib-0.3/
82 %dir %{_includedir}/dclib-0.3/dclib/core
83 %{_includedir}/dclib-0.3/dclib/core/*.h
84 %dir %{_includedir}/dclib-0.3/dclib
85 %{_includedir}/dclib-0.3/dclib/*.h
86 %{_pkgconfigdir}/*.pc
This page took 0.054117 seconds and 2 git commands to generate.