]>
Commit | Line | Data |
---|---|---|
494eaa33 | 1 | Summary: chmlib - library designed for accessing MS ITSS files |
18a507da | 2 | Summary(pl.UTF-8): chmlib - biblioteka pozwalająca na dostęp do plików MS ITSS |
494eaa33 | 3 | Name: chmlib |
8c348a67 | 4 | Version: 0.37.4 |
d620ecd1 | 5 | Release: 2 |
494eaa33 JB |
6 | License: GPL |
7 | Group: Libraries | |
5b03aeba | 8 | Source0: http://66.93.236.84/~jedwin/projects/chmlib/%{name}-%{version}.tbz |
8c348a67 | 9 | # Source0-md5: b3a0c3bc955abd2155cc298c6cdbbf20 |
6e8f69fd | 10 | Patch0: %{name}-morearchs.patch |
5b03aeba | 11 | URL: http://66.93.236.84/~jedwin/projects/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 | |
18a507da | 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 | |
18a507da | 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 | |
6896cc7b | 55 | %setup -q -n %{name}-0.37 |
6e8f69fd | 56 | %patch0 -p1 |
494eaa33 JB |
57 | |
58 | %build | |
137b62d4 | 59 | cp -f /usr/share/automake/config.* . |
abcede53 | 60 | %{__autoconf} |
137b62d4 JB |
61 | %configure |
62 | ||
63 | %{__make} | |
64 | ||
65 | %{__make} examples \ | |
70e64bbf | 66 | libdir=src/.libs |
494eaa33 JB |
67 | |
68 | %install | |
69 | rm -rf $RPM_BUILD_ROOT | |
6896cc7b | 70 | install -d $RPM_BUILD_ROOT%{_bindir} |
494eaa33 JB |
71 | |
72 | %{__make} install \ | |
6896cc7b | 73 | DESTDIR=$RPM_BUILD_ROOT |
494eaa33 JB |
74 | |
75 | install *_chmLib chm_http $RPM_BUILD_ROOT%{_bindir} | |
76 | ||
494eaa33 JB |
77 | %clean |
78 | rm -rf $RPM_BUILD_ROOT | |
79 | ||
80 | %post -p /sbin/ldconfig | |
81 | %postun -p /sbin/ldconfig | |
82 | ||
83 | %files | |
84 | %defattr(644,root,root,755) | |
8c348a67 | 85 | %doc AUTHORS NEWS README |
494eaa33 | 86 | %attr(755,root,root) %{_bindir}/* |
8c348a67 | 87 | %attr(755,root,root) %{_libdir}/libchm.so.*.*.* |
494eaa33 JB |
88 | |
89 | %files devel | |
90 | %defattr(644,root,root,755) | |
8c348a67 JB |
91 | %attr(755,root,root) %{_libdir}/libchm.so |
92 | %{_libdir}/libchm.la | |
93 | %{_includedir}/chm_lib.h | |
494eaa33 JB |
94 | |
95 | %files static | |
96 | %defattr(644,root,root,755) | |
8c348a67 | 97 | %{_libdir}/libchm.a |