]>
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 |
2b4f16c0 | 8 | Version: 0.3.10 |
af139c20 | 9 | Release: 1 |
bcbb008b | 10 | Epoch: 1 |
a95b674e | 11 | License: GPL |
9578f9b3 | 12 | Group: Libraries |
af139c20 | 13 | Source0: http://dl.sourceforge.net/wxdcgui/%{name}-%{version}.tar.bz2 |
2b4f16c0 | 14 | # Source0-md5: 9b73b1dae2d7767452fca11a3ca61333 |
46978f0f | 15 | Patch0: %{name}-lying_tags.patch |
af139c20 | 16 | Patch1: %{name}-include.patch |
2b4f16c0 | 17 | Patch2: %{name}-DESTDIR.patch |
af139c20 | 18 | URL: http://wxdcgui.sourceforge.net/ |
2b4f16c0 PG |
19 | BuildRequires: autoconf |
20 | BuildRequires: automake | |
5d8bc76d | 21 | BuildRequires: bzip2-devel |
9578f9b3 | 22 | BuildRequires: libstdc++-devel |
2b4f16c0 | 23 | BuildRequires: libtool |
7cca6f8f | 24 | BuildRequires: libxml2-devel > 2.0.0 |
9c907330 | 25 | BuildRequires: openssl-devel >= 0.9.7d |
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 | |
a97cdc01 PG |
44 | |
45 | %description devel | |
5d8bc76d | 46 | Header files for dclib. |
a97cdc01 | 47 | |
3b6ce15d JR |
48 | %description devel -l pl.UTF-8 |
49 | Pliki nagłówkowe dla dclib. | |
a97cdc01 PG |
50 | |
51 | %package static | |
5d8bc76d | 52 | Summary: Static dclib library |
45f7b9cd | 53 | Summary(pl.UTF-8): Statyczna biblioteka dclib |
9578f9b3 | 54 | Group: Development/Libraries |
06f9e904 | 55 | Requires: %{name}-devel = %{epoch}:%{version}-%{release} |
a97cdc01 PG |
56 | |
57 | %description static | |
5d8bc76d | 58 | Static dclib library. |
a97cdc01 | 59 | |
3b6ce15d | 60 | %description static -l pl.UTF-8 |
5d8bc76d | 61 | Statyczna biblioteka dclib. |
a97cdc01 PG |
62 | |
63 | %prep | |
fa58460f | 64 | %setup -q |
46978f0f | 65 | %{?with_lying:%patch0 -p1} |
af139c20 | 66 | %patch1 -p1 |
2b4f16c0 | 67 | %patch2 -p1 |
a97cdc01 PG |
68 | |
69 | %build | |
2b4f16c0 PG |
70 | cp /usr/share/automake/config.sub . |
71 | %{__libtoolize} | |
72 | %{__aclocal} | |
73 | %{__autoconf} | |
74 | %{__automake} | |
a97cdc01 | 75 | %configure |
a97cdc01 PG |
76 | %{__make} |
77 | ||
78 | %install | |
79 | rm -rf $RPM_BUILD_ROOT | |
80 | ||
b4ada796 PG |
81 | %{__make} install \ |
82 | DESTDIR=$RPM_BUILD_ROOT | |
a97cdc01 PG |
83 | |
84 | %clean | |
85 | rm -rf $RPM_BUILD_ROOT | |
86 | ||
5d8bc76d JB |
87 | %post -p /sbin/ldconfig |
88 | %postun -p /sbin/ldconfig | |
89 | ||
a97cdc01 PG |
90 | %files |
91 | %defattr(644,root,root,755) | |
915f2c4a | 92 | %doc AUTHORS README |
5d8bc76d | 93 | %attr(755,root,root) %{_libdir}/libdc.so.*.* |
07892a12 | 94 | %{_datadir}/dclib |
a97cdc01 PG |
95 | |
96 | %files devel | |
97 | %defattr(644,root,root,755) | |
5d8bc76d JB |
98 | %attr(755,root,root) %{_libdir}/*.so |
99 | %{_libdir}/*.la | |
100 | %{_includedir}/dclib | |
130f8006 | 101 | %{_pkgconfigdir}/*.pc |
a97cdc01 PG |
102 | |
103 | %files static | |
104 | %defattr(644,root,root,755) | |
a95b674e | 105 | %{_libdir}/*.a |