]>
Commit | Line | Data |
---|---|---|
297e9f86 | 1 | Summary: MSN Library |
2 | Summary(pl.UTF-8): Biblioteka MSN | |
3 | Name: libmsn | |
79bf7923 | 4 | Version: 4.2.1 |
a3fe1423 | 5 | Release: 2 |
297e9f86 | 6 | License: GPL |
7 | Group: Libraries | |
79bf7923 JR |
8 | Source0: http://download.sourceforge.net/libmsn/%{name}-%{version}.tar.bz2 |
9 | # Source0-md5: 38e46e589720eefd71f92b6b76993bf0 | |
10 | Patch0: c++.patch | |
297e9f86 | 11 | URL: http://sourceforge.net/projects/libmsn/ |
12 | BuildRequires: cmake | |
3bbf7121 | 13 | BuildRequires: libstdc++-devel |
6ba0767c | 14 | BuildRequires: openssl-devel |
297e9f86 | 15 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
16 | ||
17 | %description | |
d1c7be78 ER |
18 | Libmsn is a reusable, open-source, fully documented library for |
19 | connecting to Microsoft's MSN Messenger service. | |
297e9f86 | 20 | |
21 | %description -l pl.UTF-8 | |
3bbf7121 ER |
22 | libmsn to mająca otwarte źródła, w pełni udokumentowana biblioteka do |
23 | łączenia się z usługą MSN Messenger Microsoftu. | |
297e9f86 | 24 | |
25 | %package devel | |
26 | Summary: Header files for MSN library | |
27 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki MSN | |
28 | Group: Development/Libraries | |
29 | Requires: %{name} = %{version}-%{release} | |
30 | ||
31 | %description devel | |
32 | Header files for MSN library. | |
33 | ||
34 | %description devel -l pl.UTF-8 | |
35 | Pliki nagłówkowe biblioteki MSN. | |
36 | ||
37 | %prep | |
0d80833f | 38 | %setup -q |
5d421121 | 39 | %patch0 -p1 |
297e9f86 | 40 | |
41 | %build | |
42 | install -d build | |
43 | cd build | |
44 | %cmake \ | |
45 | -DCMAKE_INSTALL_PREFIX=%{_prefix} \ | |
46 | %if "%{_lib}" == "lib64" | |
47 | -DLIB_SUFFIX=64 \ | |
48 | %endif | |
49 | ../ | |
50 | ||
51 | %{__make} | |
52 | ||
53 | %install | |
54 | rm -rf $RPM_BUILD_ROOT | |
55 | install -d $RPM_BUILD_ROOT%{_libdir} | |
56 | ||
57 | %{__make} -C build install \ | |
58 | DESTDIR=$RPM_BUILD_ROOT | |
59 | ||
60 | %clean | |
61 | rm -rf $RPM_BUILD_ROOT | |
62 | ||
63 | %post -p /sbin/ldconfig | |
64 | %postun -p /sbin/ldconfig | |
65 | ||
66 | %files | |
67 | %defattr(644,root,root,755) | |
4bc83219 | 68 | %attr(755,root,root) %{_bindir}/msntest |
5d421121 | 69 | %attr(755,root,root) %ghost %{_libdir}/libmsn.so.0.3 |
297e9f86 | 70 | %attr(755,root,root) %{_libdir}/libmsn.so.*.*.* |
71 | ||
72 | %files devel | |
73 | %defattr(644,root,root,755) | |
74 | %attr(755,root,root) %{_libdir}/libmsn.so | |
4bc83219 | 75 | %{_pkgconfigdir}/libmsn.pc |
297e9f86 | 76 | %{_includedir}/msn |