0df31721b1a30f91cec5846d134d39846ff1324d
[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.11
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:  607fe7a1217792a8a023cd86a2847888
15 Patch0:         %{name}-lying_tags.patch
16 Patch1:         %{name}-include.patch
17 Patch2:         %{name}-DESTDIR.patch
18 URL:            http://wxdcgui.sourceforge.net/
19 BuildRequires:  autoconf
20 BuildRequires:  automake
21 BuildRequires:  bzip2-devel
22 BuildRequires:  libstdc++-devel
23 BuildRequires:  libtool
24 BuildRequires:  libxml2-devel > 2.0.0
25 BuildRequires:  openssl-devel >= 0.9.7d
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
45 %description devel
46 Header files for dclib.
47
48 %description devel -l pl.UTF-8
49 Pliki nagłówkowe dla dclib.
50
51 %package static
52 Summary:        Static dclib library
53 Summary(pl.UTF-8):      Statyczna biblioteka dclib
54 Group:          Development/Libraries
55 Requires:       %{name}-devel = %{epoch}:%{version}-%{release}
56
57 %description static
58 Static dclib library.
59
60 %description static -l pl.UTF-8
61 Statyczna biblioteka dclib.
62
63 %prep
64 %setup -q
65 %{?with_lying:%patch0 -p1}
66 %patch1 -p1
67 %patch2 -p1
68
69 %build
70 %{__libtoolize}
71 %{__aclocal}
72 %{__autoconf}
73 %{__automake}
74 %configure
75 %{__make}
76
77 %install
78 rm -rf $RPM_BUILD_ROOT
79
80 %{__make} install \
81         DESTDIR=$RPM_BUILD_ROOT
82
83 %clean
84 rm -rf $RPM_BUILD_ROOT
85
86 %post   -p /sbin/ldconfig
87 %postun -p /sbin/ldconfig
88
89 %files
90 %defattr(644,root,root,755)
91 %doc AUTHORS README
92 %attr(755,root,root) %{_libdir}/libdc.so.*.*
93 %{_datadir}/dclib
94
95 %files devel
96 %defattr(644,root,root,755)
97 %attr(755,root,root) %{_libdir}/*.so
98 %{_libdir}/*.la
99 %{_includedir}/dclib
100 %{_pkgconfigdir}/*.pc
101
102 %files static
103 %defattr(644,root,root,755)
104 %{_libdir}/*.a
This page took 0.185683 seconds and 2 git commands to generate.