]>
Commit | Line | Data |
---|---|---|
494eaa33 | 1 | Summary: chmlib - library designed for accessing MS ITSS files |
1c19a441 | 2 | Summary(pl.UTF-8): chmlib - biblioteka pozwalająca na dostęp do plików MS ITSS |
494eaa33 | 3 | Name: chmlib |
84d37114 | 4 | Version: 0.40 |
2288206c | 5 | Release: 2 |
494eaa33 JB |
6 | License: GPL |
7 | Group: Libraries | |
d7b5714a | 8 | Source0: http://www.jedrea.com/chmlib/%{name}-%{version}.tar.gz |
84d37114 | 9 | # Source0-md5: 96b8e9ac52015902941862171f5daa4c |
6e8f69fd | 10 | Patch0: %{name}-morearchs.patch |
d7b5714a | 11 | URL: http://www.jedrea.com/chmlib/ |
abcede53 | 12 | BuildRequires: autoconf |
137b62d4 | 13 | BuildRequires: automake |
494eaa33 JB |
14 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
15 | ||
16 | %description | |
17 | chmlib is a small library designed for accessing MS ITSS files. The | |
8d1f713c | 18 | ITSS file format is used for Microsoft HTML Help files (.chm), which |
494eaa33 JB |
19 | have been the predominant medium for software documentation from |
20 | Microsoft during the past several years, having superceded the | |
21 | previously used .hlp file format. | |
22 | ||
18a507da JR |
23 | %description -l pl.UTF-8 |
24 | chmlib to niewielka biblioteka przeznaczona do odczytu plików MS ITSS. | |
25 | Format ITSS jest używany w plikach Microsoft HTML Help (.chm), które | |
26 | stały się dominującym medium dla elektronicznej dokumentacji | |
27 | udostępnianej przez Microsoft w ostatnim czasie, zastępując poprzednio | |
28 | używane pliki .hlp. | |
494eaa33 JB |
29 | |
30 | %package devel | |
31 | Summary: chmlib header files | |
1c19a441 | 32 | Summary(pl.UTF-8): Pliki nagłówkowe chmlib |
494eaa33 | 33 | Group: Development/Libraries |
137b62d4 | 34 | Requires: %{name} = %{version}-%{release} |
494eaa33 JB |
35 | |
36 | %description devel | |
37 | Header files needed for building programs that use chmlib. | |
38 | ||
18a507da JR |
39 | %description devel -l pl.UTF-8 |
40 | Pliki nagłówkowe potrzebne do tworzenia programów z użyciem chmlib. | |
494eaa33 JB |
41 | |
42 | %package static | |
43 | Summary: chmlib static library | |
1c19a441 | 44 | Summary(pl.UTF-8): Biblioteka statyczna chmlib |
494eaa33 | 45 | Group: Development/Libraries |
137b62d4 | 46 | Requires: %{name}-devel = %{version}-%{release} |
494eaa33 JB |
47 | |
48 | %description static | |
49 | Static version of chmlib. | |
50 | ||
18a507da | 51 | %description static -l pl.UTF-8 |
494eaa33 JB |
52 | Statyczna wersja chmlib. |
53 | ||
54 | %prep | |
d7b5714a | 55 | %setup -q |
6e8f69fd | 56 | %patch0 -p1 |
494eaa33 JB |
57 | |
58 | %build | |
137b62d4 | 59 | cp -f /usr/share/automake/config.* . |
abcede53 | 60 | %{__autoconf} |
7d866c24 JB |
61 | %configure \ |
62 | --enable-examples | |
137b62d4 JB |
63 | |
64 | %{__make} | |
65 | ||
494eaa33 JB |
66 | %install |
67 | rm -rf $RPM_BUILD_ROOT | |
6896cc7b | 68 | install -d $RPM_BUILD_ROOT%{_bindir} |
494eaa33 JB |
69 | |
70 | %{__make} install \ | |
6896cc7b | 71 | DESTDIR=$RPM_BUILD_ROOT |
494eaa33 | 72 | |
494eaa33 JB |
73 | %clean |
74 | rm -rf $RPM_BUILD_ROOT | |
75 | ||
76 | %post -p /sbin/ldconfig | |
77 | %postun -p /sbin/ldconfig | |
78 | ||
79 | %files | |
80 | %defattr(644,root,root,755) | |
8c348a67 | 81 | %doc AUTHORS NEWS README |
494eaa33 | 82 | %attr(755,root,root) %{_bindir}/* |
8c348a67 | 83 | %attr(755,root,root) %{_libdir}/libchm.so.*.*.* |
2288206c | 84 | %attr(755,root,root) %ghost %{_libdir}/libchm.so.0 |
494eaa33 JB |
85 | |
86 | %files devel | |
87 | %defattr(644,root,root,755) | |
8c348a67 JB |
88 | %attr(755,root,root) %{_libdir}/libchm.so |
89 | %{_libdir}/libchm.la | |
90 | %{_includedir}/chm_lib.h | |
7d866c24 | 91 | %{_includedir}/lzx.h |
494eaa33 JB |
92 | |
93 | %files static | |
94 | %defattr(644,root,root,755) | |
8c348a67 | 95 | %{_libdir}/libchm.a |