1 |
Name: libmsn |
2 |
Summary: Reusable, open-source and fully documented library for MSN |
3 |
Version: 4.2 |
4 |
Release: %mkrel 1 |
5 |
Url: http://sourceforge.net/projects/libmsn |
6 |
License: GPLv2+ |
7 |
Group: Development/C++ |
8 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build |
9 |
Source0: http://downloads.sourceforge.net/libmsn/%name-%version.tar.bz2 |
10 |
BuildRequires: cmake |
11 |
BuildRequires: openssl-devel |
12 |
BuildRequires: pkgconfig |
13 |
|
14 |
%description |
15 |
Libmsn is a reusable, open-source, fully documented library for |
16 |
connecting to Microsoft's MSN Messenger service. |
17 |
|
18 |
#----------------------------------------------------------------------------- |
19 |
|
20 |
%define msn_major 0.3 |
21 |
%define libmsn %mklibname msn %{msn_major} |
22 |
|
23 |
%package -n %libmsn |
24 |
Summary: %name library |
25 |
Group: System/Libraries |
26 |
# Fix temporary cooker update issue |
27 |
Obsoletes: %{_lib}msn0 > 4.0 |
28 |
|
29 |
%description -n %libmsn |
30 |
%name library |
31 |
|
32 |
%files -n %libmsn |
33 |
%defattr(-,root,root) |
34 |
%_libdir/libmsn.so.%{msn_major}* |
35 |
|
36 |
#----------------------------------------------------------------------------- |
37 |
|
38 |
%package test |
39 |
Summary: Connection test utility |
40 |
Group: Development/C++ |
41 |
|
42 |
%description test |
43 |
Connection test utility. |
44 |
|
45 |
%files test |
46 |
%defattr(-,root,root) |
47 |
%_bindir/* |
48 |
|
49 |
#----------------------------------------------------------------------------- |
50 |
|
51 |
%package devel |
52 |
Summary: Devel stuff for %{name} |
53 |
Group: Development/C++ |
54 |
Requires: %libmsn = %version |
55 |
|
56 |
%description devel |
57 |
Files needed to build applications based on %{name}. |
58 |
|
59 |
%files devel |
60 |
%defattr(-,root,root) |
61 |
%_libdir/pkgconfig/* |
62 |
%_includedir/msn |
63 |
%_libdir/libmsn.so |
64 |
|
65 |
#----------------------------------------------------------------------------- |
66 |
|
67 |
%prep |
68 |
%setup -q |
69 |
|
70 |
%build |
71 |
%cmake |
72 |
%make |
73 |
|
74 |
%install |
75 |
rm -fr %buildroot |
76 |
%makeinstall_std -C build |
77 |
|
78 |
%clean |
79 |
rm -rf "%{buildroot}" |
80 |
|
81 |
|