]>
Commit | Line | Data |
---|---|---|
7f6eecee | 1 | %define _gccver_ix86 3.3.3 |
ebf986dd | 2 | %define _gccver_x86_64 3.4.2 |
7f6eecee | 3 | %ifarch %{ix86} |
8ae0bfee | 4 | %define _gccver %{_gccver_ix86} |
7f6eecee | 5 | %else |
8ae0bfee | 6 | %define _gccver %{_gccver_x86_64} |
7f6eecee | 7 | %endif |
ebf986dd | 8 | Summary: Easy network socket library |
be33979f | 9 | Summary(pl.UTF-8): Łatwa w użyciu biblioteka do gniazd |
ebf986dd | 10 | Name: SolarSockets |
11 | Version: 0.4.0 | |
7f6eecee | 12 | %define _rel 0.1 |
13 | Release: %{_rel}@%{_gccver} | |
ebf986dd | 14 | License: Free for non comercial use |
15 | Vendor: Solar-OpenSource.Com | |
16 | Group: Libraries | |
17 | Source0: http://dl.sourceforge.net/solarirc/%{name}-%{version}-GCC%{_gccver_ix86}.i386.tgz | |
7f6eecee | 18 | # NoSource0-md5: 45190052e0d0cafc9cf71016b4ea064d |
ebf986dd | 19 | Source1: http://dl.sourceforge.net/solarirc/%{name}-%{version}-GCC%{_gccver_x86_64}.x86_64.tgz |
20 | # NoSource1-md5: aea57a8abb555dc6ef11f843e677debb | |
eb876b03 JB |
21 | NoSource: 0 |
22 | NoSource: 1 | |
ebf986dd | 23 | URL: http://solarirc.sourceforge.net/solarsockets/ |
24 | ExclusiveArch: %{ix86} %{x8664} | |
25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
26 | ||
27 | %description | |
28 | Easy network socket library. | |
29 | ||
eb876b03 JB |
30 | Warning: this library from time to time connects to Solar OpenSource |
31 | server for track use statistics. | |
32 | ||
4d6c1c7d JR |
33 | %description -l pl.UTF-8 |
34 | Łatwa w użyciu biblioteka do gniazd. | |
eb876b03 | 35 | |
4d6c1c7d JR |
36 | Uwaga: ta biblioteka od czasu do czasu łączy się z serwerem Solar |
37 | OpenSource w celu uzyskania statystyk użycia. | |
ebf986dd | 38 | |
39 | %package devel | |
eb876b03 | 40 | Summary: Developement files for SolarSockets library |
be33979f | 41 | Summary(pl.UTF-8): Pliki programistyczne biblioteki SolarSockets |
ebf986dd | 42 | Group: Development/Libraries |
eb876b03 | 43 | Requires: %{name} = %{version}-%{release} |
ebf986dd | 44 | |
45 | %description devel | |
eb876b03 JB |
46 | Developement files for SolarSockets library. |
47 | ||
4d6c1c7d | 48 | %description devel -l pl.UTF-8 |
eb876b03 | 49 | Pliki programistyczne biblioteki SolarSockets. |
ebf986dd | 50 | |
51 | %package static | |
eb876b03 | 52 | Summary: Static SolarSockets library |
be33979f | 53 | Summary(pl.UTF-8): Statyczna biblioteka SolarSockets |
ebf986dd | 54 | Group: Development/Libraries |
eb876b03 | 55 | Requires: %{name}-devel = %{version}-%{release} |
ebf986dd | 56 | |
57 | %description static | |
eb876b03 JB |
58 | Static SolarSockets library. |
59 | ||
4d6c1c7d | 60 | %description static -l pl.UTF-8 |
eb876b03 | 61 | Statyczna biblioteka SolarSockets. |
ebf986dd | 62 | |
63 | %prep | |
64 | %setup -q -T -c -a0 -a1 | |
65 | %ifarch %{ix86} | |
66 | mv %{name}-%{version}-GCC%{_gccver_ix86}.i386/* . | |
67 | %else | |
68 | mv %{name}-%{version}-GCC%{_gccver_x86_64}.x86_64/* . | |
69 | %endif | |
70 | mv README{,.es} | |
71 | ||
ebf986dd | 72 | %install |
73 | rm -rf $RPM_BUILD_ROOT | |
74 | install -d $RPM_BUILD_ROOT{%{_libdir},%{_includedir}/%{name}} | |
75 | ||
76 | install lib/* $RPM_BUILD_ROOT%{_libdir} | |
77 | tr "\r" "\n" < include/%{name}.h \ | |
78 | > $RPM_BUILD_ROOT%{_includedir}/%{name}/%{name}.h | |
79 | ||
eb876b03 JB |
80 | %clean |
81 | rm -rf $RPM_BUILD_ROOT | |
82 | ||
ebf986dd | 83 | %post -p /sbin/ldconfig |
84 | %postun -p /sbin/ldconfig | |
85 | ||
86 | %files | |
87 | %defattr(644,root,root,755) | |
88 | %doc README.es | |
89 | %attr(755,root,root) %{_libdir}/libsolarsockets.so.*.*.* | |
90 | ||
91 | %files devel | |
92 | %defattr(644,root,root,755) | |
93 | %attr(755,root,root) %{_libdir}/libsolarsockets.so | |
94 | %{_libdir}/libsolarsockets.la | |
95 | %{_includedir}/%{name} | |
96 | ||
97 | %files static | |
98 | %defattr(644,root,root,755) | |
99 | %{_libdir}/libsolarsockets.a |