]> git.pld-linux.org Git - packages/chmlib.git/blob - chmlib.spec
c1a834a2b1fd001f3968172444002c4685eeaf15
[packages/chmlib.git] / chmlib.spec
1 Summary:        chmlib - library designed for accessing MS ITSS files
2 Summary(pl):    chmlib - biblioteka pozwalaj±ca na dostêp do plików MS ITSS
3 Name:           chmlib
4 Version:        0.35
5 Release:        1
6 License:        GPL
7 Group:          Libraries
8 Source0:        http://66.93.236.84/~jedwin/projects/chmlib/%{name}-%{version}.tbz
9 # Source0-md5:  8cee5e39ebe00db41b55e4f1a948106c
10 Patch0:         %{name}-morearchs.patch
11 Patch1:         %{name}-LIBDIR.patch
12 URL:            http://66.93.236.84/~jedwin/projects/chmlib/
13 BuildRequires:  autoconf
14 BuildRequires:  automake
15 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16
17 %description
18 chmlib is a small library designed for accessing MS ITSS files. The
19 ITSS file format is used for Microsoft HTML Help files (.chm), which
20 have been the predominant medium for software documentation from
21 Microsoft during the past several years, having superceded the
22 previously used .hlp file format.
23
24 %description -l pl
25 chmlib to niewielka biblioteka przeznaczona do odczytu plików MS ITSS.
26 Format ITSS jest u¿ywany w plikach Microsoft HTML Help (.chm), które
27 sta³y siê dominuj±cym medium dla elektronicznej dokumentacji
28 udostêpnianej przez Microsoft w ostatnim czasie, zastêpuj±c poprzednio
29 u¿ywane pliki .hlp.
30
31 %package devel
32 Summary:        chmlib header files
33 Summary(pl):    Pliki nag³ówkowe chmlib
34 Group:          Development/Libraries
35 Requires:       %{name} = %{version}-%{release}
36
37 %description devel
38 Header files needed for building programs that use chmlib.
39
40 %description devel -l pl
41 Pliki nag³ówkowe potrzebne do tworzenia programów z u¿yciem chmlib.
42
43 %package static
44 Summary:        chmlib static library
45 Summary(pl):    Biblioteka statyczna chmlib
46 Group:          Development/Libraries
47 Requires:       %{name}-devel = %{version}-%{release}
48
49 %description static
50 Static version of chmlib.
51
52 %description static -l pl
53 Statyczna wersja chmlib.
54
55 %prep
56 %setup -q
57 %patch0 -p1
58 %patch1 -p1
59
60 %build
61 cp -f /usr/share/automake/config.* .
62 %{__autoconf}
63 %configure
64
65 %{__make}
66
67 %{__make} examples \
68         LIBDIR=src/.libs
69
70 %install
71 rm -rf $RPM_BUILD_ROOT
72 install -d $RPM_BUILD_ROOT{%{_libdir},%{_includedir},%{_bindir}}
73
74 %{__make} install \
75         INSTALLPREFIX=$RPM_BUILD_ROOT%{_prefix} \
76         LIBDIR=$RPM_BUILD_ROOT%{_libdir}
77
78 install *_chmLib chm_http $RPM_BUILD_ROOT%{_bindir}
79
80 %clean
81 rm -rf $RPM_BUILD_ROOT
82
83 %post   -p /sbin/ldconfig
84 %postun -p /sbin/ldconfig
85
86 %files
87 %defattr(644,root,root,755)
88 %doc AUTHORS README
89 %attr(755,root,root) %{_bindir}/*
90 %attr(755,root,root) %{_libdir}/lib*.so.*.*
91
92 %files devel
93 %defattr(644,root,root,755)
94 %{_includedir}/*.h
95 %attr(755,root,root) %{_libdir}/lib*.so
96 %{_libdir}/lib*.la
97
98 %files static
99 %defattr(644,root,root,755)
100 %{_libdir}/lib*.a
This page took 0.063742 seconds and 2 git commands to generate.