]>
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 |
30a81c37 | 8 | Version: 0.3.8 |
15001fd7 | 9 | Release: 2 |
bcbb008b | 10 | Epoch: 1 |
a95b674e | 11 | License: GPL |
9578f9b3 | 12 | Group: Libraries |
30a81c37 RT |
13 | Source0: http://downloads.sourceforge.net/wxdcgui/%{name}-%{version}.tar.bz2 |
14 | # Source0-md5: 4ae0980b1e09eff8c7d193867d213333 | |
46978f0f | 15 | Patch0: %{name}-lying_tags.patch |
66215818 | 16 | URL: http://dcgui.berlios.de/ |
5d8bc76d | 17 | BuildRequires: bzip2-devel |
9578f9b3 | 18 | BuildRequires: libstdc++-devel |
7cca6f8f | 19 | BuildRequires: libxml2-devel > 2.0.0 |
9c907330 | 20 | BuildRequires: openssl-devel >= 0.9.7d |
5d8bc76d | 21 | Requires: libxml2 > 2.0.0 |
a97cdc01 PG |
22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
23 | ||
a97cdc01 | 24 | %description |
5d8bc76d | 25 | DirectConnect support library for dcgui-qt. |
a97cdc01 | 26 | |
3b6ce15d JR |
27 | %description -l pl.UTF-8 |
28 | Biblioteka obsługująca DirectConnect dla dcgui-qt. | |
a97cdc01 PG |
29 | |
30 | %package devel | |
a95b674e | 31 | Summary: Header files for dclib |
45f7b9cd | 32 | Summary(pl.UTF-8): Pliki nagłówkowe dla dclib |
9578f9b3 | 33 | Group: Development/Libraries |
06f9e904 | 34 | Requires: %{name} = %{epoch}:%{version}-%{release} |
9578f9b3 JB |
35 | Requires: bzip2-devel |
36 | Requires: libstdc++-devel | |
37 | Requires: libxml2-devel > 2.0.0 | |
38 | Requires: openssl-devel | |
a97cdc01 PG |
39 | |
40 | %description devel | |
5d8bc76d | 41 | Header files for dclib. |
a97cdc01 | 42 | |
3b6ce15d JR |
43 | %description devel -l pl.UTF-8 |
44 | Pliki nagłówkowe dla dclib. | |
a97cdc01 PG |
45 | |
46 | %package static | |
5d8bc76d | 47 | Summary: Static dclib library |
45f7b9cd | 48 | Summary(pl.UTF-8): Statyczna biblioteka dclib |
9578f9b3 | 49 | Group: Development/Libraries |
06f9e904 | 50 | Requires: %{name}-devel = %{epoch}:%{version}-%{release} |
a97cdc01 PG |
51 | |
52 | %description static | |
5d8bc76d | 53 | Static dclib library. |
a97cdc01 | 54 | |
3b6ce15d | 55 | %description static -l pl.UTF-8 |
5d8bc76d | 56 | Statyczna biblioteka dclib. |
a97cdc01 PG |
57 | |
58 | %prep | |
fa58460f | 59 | %setup -q |
46978f0f | 60 | %{?with_lying:%patch0 -p1} |
a97cdc01 PG |
61 | |
62 | %build | |
a97cdc01 | 63 | %configure |
a97cdc01 PG |
64 | %{__make} |
65 | ||
66 | %install | |
67 | rm -rf $RPM_BUILD_ROOT | |
68 | ||
b4ada796 PG |
69 | %{__make} install \ |
70 | DESTDIR=$RPM_BUILD_ROOT | |
a97cdc01 PG |
71 | |
72 | %clean | |
73 | rm -rf $RPM_BUILD_ROOT | |
74 | ||
5d8bc76d JB |
75 | %post -p /sbin/ldconfig |
76 | %postun -p /sbin/ldconfig | |
77 | ||
a97cdc01 PG |
78 | %files |
79 | %defattr(644,root,root,755) | |
915f2c4a | 80 | %doc AUTHORS README |
5d8bc76d | 81 | %attr(755,root,root) %{_libdir}/libdc.so.*.* |
07892a12 | 82 | %{_datadir}/dclib |
a97cdc01 PG |
83 | |
84 | %files devel | |
85 | %defattr(644,root,root,755) | |
5d8bc76d JB |
86 | %attr(755,root,root) %{_libdir}/*.so |
87 | %{_libdir}/*.la | |
88 | %{_includedir}/dclib | |
130f8006 | 89 | %{_pkgconfigdir}/*.pc |
a97cdc01 PG |
90 | |
91 | %files static | |
92 | %defattr(644,root,root,755) | |
a95b674e | 93 | %{_libdir}/*.a |