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