]> git.pld-linux.org Git - packages/djvu.git/blob - djvu.spec
b2d761205a43917fa3f3c13fb40c993ce973c800
[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}.1
7 License:        GPL
8 Group:          Libraries
9 Source0:        http://www.lizardtech.com/software/djvureferencelibrary/version3/DjVu%{version}.snapshot-%{snap}.src.tar.gz
10 # Source0-md5:  959742232203df8cbeaa210ce4623bba
11 Patch0:         %{name}-config.patch
12 Patch1:         %{name}-libjpeg.patch
13 URL:            http://www.djvu.att.com/
14 BuildRequires:  libjpeg-devel
15 BuildRequires:  libstdc++-devel
16 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18 %description
19 DjVu Reference Library.
20
21 %description -l pl
22 Biblioteka do obs³ugi formatu DjVu.
23
24 %package devel
25 Summary:        DjVu Reference Library development package
26 Summary(pl):    Biblioteka DjVu dla programistów
27 Group:          Development/Libraries
28
29 %description devel
30 DjVu Reference Library - static library and header files.
31
32 %description devel -l pl
33 Biblioteka DjVu - biblioteka statyczna i pliki nag³ówkowe.
34
35 %prep
36 %setup -q -n DjVu3
37 %patch0 -p1
38 %patch1 -p1
39
40 %build
41 OPT="%{rpmcflags}"
42 %ifarch %{ix86}
43 %ifnarch i386 i486
44 OPT="$OPT -DMMX"
45 %endif
46 %endif
47 # uses exceptions and implicit templactes
48 OPTXX="$OPT"
49 export OPT OPTXX
50 ./configure --with-threads=posix
51 cd build/linux-libc6/configure
52 %{__make}
53
54 %install
55 rm -rf $RPM_BUILD_ROOT
56 install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir},%{_includedir}}
57
58 install build/linux-libc6/configure/bin/* $RPM_BUILD_ROOT%{_bindir}
59 install build/linux-libc6/configure/lib/*.a $RPM_BUILD_ROOT%{_libdir}
60 install src/include/*.h $RPM_BUILD_ROOT%{_includedir}
61
62 %clean
63 rm -rf $RPM_BUILD_ROOT
64
65 %files
66 %defattr(644,root,root,755)
67 %doc Doc Samples README.txt
68 %attr(755,root,root) %{_bindir}/*
69
70 %files devel
71 %defattr(644,root,root,755)
72 %{_libdir}/*.a
73 %{_includedir}/*.h
This page took 0.044781 seconds and 2 git commands to generate.