]>
Commit | Line | Data |
---|---|---|
25c75371 JB |
1 | # |
2 | # Conditional build: | |
46978f0f | 3 | %bcond_with lying # lie about the H header (always H:1) |
25c75371 | 4 | # |
a95b674e | 5 | Summary: DirectConnect support library for dcgui-qt |
45f7b9cd | 6 | Summary(pl.UTF-8): Biblioteka obsługująca DirectConnect dla dcgui-qt |
a97cdc01 | 7 | Name: dclib |
57a2e0a5 | 8 | Version: 0.3.23 |
50c4c239 | 9 | Release: 4 |
bcbb008b | 10 | Epoch: 1 |
a95b674e | 11 | License: GPL |
9578f9b3 | 12 | Group: Libraries |
af139c20 | 13 | Source0: http://dl.sourceforge.net/wxdcgui/%{name}-%{version}.tar.bz2 |
57a2e0a5 | 14 | # Source0-md5: 6852e420e48d09b514fcb9f783611cdc |
46978f0f | 15 | Patch0: %{name}-lying_tags.patch |
57a2e0a5 | 16 | Patch1: %{name}-ssl.patch |
af139c20 | 17 | URL: http://wxdcgui.sourceforge.net/ |
2b4f16c0 PG |
18 | BuildRequires: autoconf |
19 | BuildRequires: automake | |
5d8bc76d | 20 | BuildRequires: bzip2-devel |
9578f9b3 | 21 | BuildRequires: libstdc++-devel |
2b4f16c0 | 22 | BuildRequires: libtool |
7cca6f8f | 23 | BuildRequires: libxml2-devel > 2.0.0 |
9c907330 | 24 | BuildRequires: openssl-devel >= 0.9.7d |
5dab5143 | 25 | BuildRequires: pkgconfig |
5d8bc76d | 26 | Requires: libxml2 > 2.0.0 |
a97cdc01 PG |
27 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
28 | ||
a97cdc01 | 29 | %description |
5d8bc76d | 30 | DirectConnect support library for dcgui-qt. |
a97cdc01 | 31 | |
3b6ce15d JR |
32 | %description -l pl.UTF-8 |
33 | Biblioteka obsługująca DirectConnect dla dcgui-qt. | |
a97cdc01 PG |
34 | |
35 | %package devel | |
a95b674e | 36 | Summary: Header files for dclib |
45f7b9cd | 37 | Summary(pl.UTF-8): Pliki nagłówkowe dla dclib |
9578f9b3 | 38 | Group: Development/Libraries |
06f9e904 | 39 | Requires: %{name} = %{epoch}:%{version}-%{release} |
9578f9b3 JB |
40 | Requires: bzip2-devel |
41 | Requires: libstdc++-devel | |
42 | Requires: libxml2-devel > 2.0.0 | |
43 | Requires: openssl-devel | |
57a2e0a5 | 44 | Obsoletes: dclib-static |
a97cdc01 PG |
45 | |
46 | %description devel | |
5d8bc76d | 47 | Header files for dclib. |
a97cdc01 | 48 | |
3b6ce15d JR |
49 | %description devel -l pl.UTF-8 |
50 | Pliki nagłówkowe dla dclib. | |
a97cdc01 | 51 | |
a97cdc01 | 52 | %prep |
fa58460f | 53 | %setup -q |
46978f0f | 54 | %{?with_lying:%patch0 -p1} |
af139c20 | 55 | %patch1 -p1 |
a97cdc01 PG |
56 | |
57 | %build | |
2f6eefc2 | 58 | %configure PTHREAD_LIBS=-lpthread |
a97cdc01 PG |
59 | %{__make} |
60 | ||
61 | %install | |
62 | rm -rf $RPM_BUILD_ROOT | |
63 | ||
b4ada796 PG |
64 | %{__make} install \ |
65 | DESTDIR=$RPM_BUILD_ROOT | |
a97cdc01 PG |
66 | |
67 | %clean | |
68 | rm -rf $RPM_BUILD_ROOT | |
69 | ||
5d8bc76d JB |
70 | %post -p /sbin/ldconfig |
71 | %postun -p /sbin/ldconfig | |
72 | ||
a97cdc01 PG |
73 | %files |
74 | %defattr(644,root,root,755) | |
915f2c4a | 75 | %doc AUTHORS README |
fcaab903 | 76 | %attr(755,root,root) %ghost %{_libdir}/libdc.so.5 |
5d8bc76d | 77 | %attr(755,root,root) %{_libdir}/libdc.so.*.* |
a97cdc01 PG |
78 | |
79 | %files devel | |
80 | %defattr(644,root,root,755) | |
5d8bc76d JB |
81 | %attr(755,root,root) %{_libdir}/*.so |
82 | %{_libdir}/*.la | |
57a2e0a5 PG |
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 | |
130f8006 | 88 | %{_pkgconfigdir}/*.pc |