]> git.pld-linux.org Git - packages/djvu.git/blob - djvu.spec
f352c74f0a183df5e231288bab4226565504e965
[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 i586 i686 athlon
43 OPT="$OPT -DMMX"
44 %endif
45 # uses exceptions and implicit templactes
46 OPTXX="$OPT"
47 export OPT OPTXX
48 ./configure --with-threads=posix
49 cd build/linux-libc6/configure
50 %{__make}
51
52 %install
53 rm -rf $RPM_BUILD_ROOT
54 install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir},%{_includedir}}
55
56 install build/linux-libc6/configure/bin/* $RPM_BUILD_ROOT%{_bindir}
57 install build/linux-libc6/configure/lib/*.a $RPM_BUILD_ROOT%{_libdir}
58 install src/include/*.h $RPM_BUILD_ROOT%{_includedir}
59
60 %clean
61 rm -rf $RPM_BUILD_ROOT
62
63 %files
64 %defattr(644,root,root,755)
65 %doc Doc Samples README.txt
66 %attr(755,root,root) %{_bindir}/*
67
68 %files devel
69 %defattr(644,root,root,755)
70 %{_libdir}/*.a
71 %{_includedir}/*.h
This page took 0.038115 seconds and 2 git commands to generate.