- cosmetics.
[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 License:        GPL
8 Group:          Libraries
9 Group(de):      Libraries
10 Group(es):      Bibliotecas
11 Group(fr):      Librairies
12 Group(pl):      Biblioteki
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
35 %description devel
36 DjVu Reference Library - static library and header files.
37
38 %description devel -l pl
39 Biblioteka DjVu - biblioteka statyczna i pliki nag³ówkowe.
40
41 %prep
42 %setup -q -n DjVu3
43 %patch0 -p1
44 %patch1 -p1
45
46 %build
47 OPT="%{rpmcflags}"
48 %ifarch i586 i686
49 OPT="$OPT -DMMX"
50 %endif
51 # uses exceptions and implicit templactes
52 OPTXX="$OPT"
53 export OPT OPTXX
54 ./configure --with-threads=posix
55 cd build/linux-libc6/configure
56 %{__make}
57
58 %install
59 rm -rf $RPM_BUILD_ROOT
60 install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir},%{_includedir}}
61
62 install build/linux-libc6/configure/bin/* $RPM_BUILD_ROOT%{_bindir}
63 install build/linux-libc6/configure/lib/*.a $RPM_BUILD_ROOT%{_libdir}
64 install src/include/*.h $RPM_BUILD_ROOT%{_includedir}
65
66 gzip -9nf README.txt Samples/README
67
68 %clean
69 rm -rf $RPM_BUILD_ROOT
70
71 %files
72 %defattr(644,root,root,755)
73 %doc Doc Samples *.gz
74 %attr(755,root,root) %{_bindir}/*
75
76 %files devel
77 %defattr(644,root,root,755)
78 %{_libdir}/*.a
79 %{_includedir}/*.h
This page took 0.036997 seconds and 3 git commands to generate.