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