120951f5e85bfcfae8bc2fa4ffe6aa20b117dbca
[packages/djvu.git] / djvu.spec
1 Summary:        DjVu Reference Library
2 Summary(pl):    Biblioteka do obs³ugi formatu DjVu
3 Name:           djvu
4 Version:        3.0
5 %define         snap    20010511
6 Release:        0.%{snap}
7 Group:          Libraries
8 Group(de):      Libraries
9 Group(es):      Bibliotecas
10 Group(fr):      Librairies
11 Group(pl):      Biblioteki
12 License:        GPL
13 Source0:        http://www.lizardtech.com/software/djvureferencelibrary/version3/DjVu%{version}.snapshot-%{snap}.src.tar.gz
14 Patch0:         %{name}-config.patch
15 Patch1:         %{name}-libjpeg.patch
16 URL:            http://www.djvu.att.com/
17 BuildRequires:  libjpeg-devel
18 BuildRequires:  libstdc++-devel
19 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21 %description
22 DjVu Reference Library.
23
24 %description -l pl
25 Biblioteka do obs³ugi formatu DjVu.
26
27 %package devel
28 Summary:        DjVu Reference Library development package
29 Summary(pl):    Biblioteka DjVu dla programistów
30 Group:          Development/Libraries
31 Group(de):      Entwicklung/Libraries
32 Group(fr):      Development/Librairies
33 Group(pl):      Programowanie/Biblioteki
34 # doesn't require base
35
36 %description devel
37 DjVu Reference Library - static library and header files.
38
39 %description devel -l pl
40 Biblioteka DjVu - biblioteka statyczna i pliki nag³ówkowe.
41
42 %prep
43 %setup -q -n DjVu3
44 %patch0 -p1
45 %patch1 -p1
46
47 %build
48 OPT="%{rpmcflags}"
49 %ifarch i586 i686
50 OPT="$OPT -DMMX"
51 %endif
52 # uses exceptions and implicit templactes
53 OPTXX="$OPT"
54 export OPT OPTXX
55 ./configure --with-threads=posix
56 cd build/linux-libc6/configure
57 %{__make}
58
59 %install
60 rm -rf $RPM_BUILD_ROOT
61 install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir},%{_includedir}}
62
63 install build/linux-libc6/configure/bin/* $RPM_BUILD_ROOT%{_bindir}
64 install build/linux-libc6/configure/lib/*.a $RPM_BUILD_ROOT%{_libdir}
65 install src/include/*.h $RPM_BUILD_ROOT%{_includedir}
66
67 gzip -9nf README.txt Samples/README
68
69 %clean
70 rm -rf $RPM_BUILD_ROOT
71
72 %files
73 %defattr(644,root,root,755)
74 %doc Doc Samples *.gz
75 %attr(755,root,root) %{_bindir}/*
76
77 %files devel
78 %defattr(644,root,root,755)
79 %{_libdir}/*.a
80 %{_includedir}/*.h
This page took 0.078294 seconds and 2 git commands to generate.