]>
Commit | Line | Data |
---|---|---|
840971ab | 1 | Summary: A high-speed character set detection library |
ec970c50 | 2 | Summary(pl.UTF-8): Biblioteka do szybkiego rozpoznawania zestawu znaków |
840971ab | 3 | Name: libguess |
a6c6d7ac JB |
4 | Version: 1.2 |
5 | Release: 1 | |
ec970c50 JB |
6 | License: BSD |
7 | Group: Libraries | |
a6c6d7ac JB |
8 | # code developed at https://github.com/atheme/libguess (no releases tagged) |
9 | Source0: http://rabbit.dereferenced.org/~nenolod/distfiles/%{name}-%{version}.tar.bz2 | |
10 | # Source0-md5: 7633fbfbeb75b1ded7f33cca3d8d4762 | |
11 | URL: http://atheme.org/projects/libguess.html | |
ec970c50 | 12 | BuildRequires: pkgconfig |
a6c6d7ac | 13 | BuildRequires: sed >= 4.0 |
840971ab AM |
14 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
15 | ||
16 | %description | |
ec970c50 JB |
17 | libguess is a high-speed character set detection library. It has two |
18 | functions: | |
19 | - to determine encoding, | |
20 | - to validate UTF-8 encoding. | |
840971ab | 21 | |
ec970c50 JB |
22 | %description -l pl.UTF-8 |
23 | libguess to biblioteka do szybkiego rozpoznawania zestawu znaków. Ma | |
24 | dwie funkcje: | |
25 | - do określania kodowania, | |
26 | - do sprawdzania poprawności kodowania UTF-8. | |
840971ab AM |
27 | |
28 | %package devel | |
ec970c50 JB |
29 | Summary: Header files for libguess library |
30 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libguess | |
840971ab | 31 | Group: Development/Libraries |
ec970c50 | 32 | Requires: %{name} = %{version}-%{release} |
840971ab AM |
33 | |
34 | %description devel | |
ec970c50 | 35 | Header files for libguess library. |
840971ab AM |
36 | |
37 | %description devel -l pl.UTF-8 | |
ec970c50 | 38 | Pliki nagłówkowe biblioteki libguess. |
840971ab | 39 | |
840971ab AM |
40 | %prep |
41 | %setup -q | |
42 | ||
a6c6d7ac JB |
43 | %{__sed} -i -e '/^\.SILENT/d' buildsys.mk.in |
44 | ||
840971ab AM |
45 | %build |
46 | %configure | |
47 | ||
48 | %install | |
49 | rm -rf $RPM_BUILD_ROOT | |
50 | ||
51 | %{__make} install \ | |
52 | DESTDIR=$RPM_BUILD_ROOT | |
53 | ||
54 | %clean | |
55 | rm -rf $RPM_BUILD_ROOT | |
56 | ||
57 | %post -p /sbin/ldconfig | |
58 | %postun -p /sbin/ldconfig | |
59 | ||
60 | %files | |
61 | %defattr(644,root,root,755) | |
ec970c50 | 62 | %doc COPYING README |
a6c6d7ac | 63 | %attr(755,root,root) %{_libdir}/libguess.so.*.*.* |
840971ab AM |
64 | %attr(755,root,root) %ghost %{_libdir}/libguess.so.1 |
65 | ||
66 | %files devel | |
67 | %defattr(644,root,root,755) | |
68 | %attr(755,root,root) %{_libdir}/libguess.so | |
69 | %{_includedir}/libguess | |
70 | %{_pkgconfigdir}/libguess.pc |