]> git.pld-linux.org Git - packages/chmlib.git/blob - chmlib.spec
- massive attack: no need for 755 for *.la
[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.2
5 Release:        1
6 License:        GPL
7 Group:          Libraries
8 Source0:        http://64.81.172.220/~jedwin/projects/chmlib/%{name}-%{version}.tbz
9 URL:            http://64.81.172.220/~jedwin/projects/chmlib/
10 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
11
12 %description
13 chmlib is a small library designed for accessing MS ITSS files. The
14 ITSS file format is used for Microsoft Html Help files (.chm), which
15 have been the predominant medium for software documentation from
16 Microsoft during the past several years, having superceded the
17 previously used .hlp file format.
18
19 %description -l pl
20 chmlib to niewielka biblioteka przeznaczona do odczytu plików MS ITSS.
21 Format ITSS jest u¿ywany w plikach Microsoft Html Help (.chm), które
22 sta³y siê dominuj±cym medium dla elektronicznej dokumentacji
23 udostêpnianej przez Microsoft w ostatnim czasie, zastêpuj±c poprzednio
24 u¿ywane pliki .hlp.
25
26 %package devel
27 Summary:        chmlib header files
28 Summary(pl):    Pliki nag³ówkowe chmlib
29 Group:          Development/Libraries
30 Requires:       %{name} = %{version}
31
32 %description devel
33 Header files needed for building programs that use chmlib.
34
35 %description devel -l pl
36 Pliki nag³ówkowe potrzebne do tworzenia programów z u¿yciem chmlib.
37
38 %package static
39 Summary:        chmlib static library
40 Summary(pl):    Biblioteka statyczna chmlib
41 Group:          Development/Libraries
42 Requires:       %{name}-devel = %{version}
43
44 %description static
45 Static version of chmlib.
46
47 %description static -l pl
48 Statyczna wersja chmlib.
49
50 %prep
51 %setup -q
52
53 %build
54 %{__make} all examples \
55         CFLAGS="%{rpmcflags} -DCHM_MT -DCHM_USE_PREAD -DCHM_USE_IO64 -L.libs" \
56         LDFLAGS="%{rpmldflags} -lpthread" \
57         CC="%{__cc}" LD="%{__cc}" \
58         INSTALLPREFIX="%{_prefix}"
59
60 %install
61 rm -rf $RPM_BUILD_ROOT
62 install -d $RPM_BUILD_ROOT{%{_libdir},%{_includedir},%{_bindir}}
63
64 %{__make} install \
65         INSTALLPREFIX=$RPM_BUILD_ROOT%{_prefix}
66
67 install *_chmLib chm_http $RPM_BUILD_ROOT%{_bindir}
68
69 %clean
70 rm -rf $RPM_BUILD_ROOT
71
72 %post   -p /sbin/ldconfig
73 %postun -p /sbin/ldconfig
74
75 %files
76 %defattr(644,root,root,755)
77 %doc AUTHORS README
78 %attr(755,root,root) %{_bindir}/*
79 %attr(755,root,root) %{_libdir}/lib*.so.*.*
80
81 %files devel
82 %defattr(644,root,root,755)
83 %{_includedir}/*.h
84 %attr(755,root,root) %{_libdir}/lib*.so
85 %{_libdir}/lib*.la
86
87 %files static
88 %defattr(644,root,root,755)
89 %{_libdir}/lib*.a
This page took 0.080588 seconds and 3 git commands to generate.