]>
Commit | Line | Data |
---|---|---|
2048019f | 1 | # NOTE: obsolete project, use djvulibre instead |
1aac2a37 | 2 | Summary: DjVu Reference Library |
9aa4329d | 3 | Summary(pl.UTF-8): Biblioteka do obsługi formatu DjVu |
1aac2a37 JB |
4 | Name: djvu |
5 | Version: 3.0 | |
6 | %define snap 20010511 | |
08a97ff9 | 7 | Release: 0.%{snap}.1 |
bcfc4fb5 | 8 | License: GPL |
1aac2a37 | 9 | Group: Libraries |
1aac2a37 | 10 | Source0: http://www.lizardtech.com/software/djvureferencelibrary/version3/DjVu%{version}.snapshot-%{snap}.src.tar.gz |
104907f9 | 11 | # Source0-md5: 959742232203df8cbeaa210ce4623bba |
1aac2a37 JB |
12 | Patch0: %{name}-config.patch |
13 | Patch1: %{name}-libjpeg.patch | |
2048019f JB |
14 | Patch2: %{name}-c++.patch |
15 | URL: http://www.djvu.org/ | |
1aac2a37 JB |
16 | BuildRequires: libjpeg-devel |
17 | BuildRequires: libstdc++-devel | |
18 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
19 | ||
20 | %description | |
21 | DjVu Reference Library. | |
22 | ||
76c1f196 JR |
23 | %description -l pl.UTF-8 |
24 | Biblioteka do obsługi formatu DjVu. | |
1aac2a37 JB |
25 | |
26 | %package devel | |
27 | Summary: DjVu Reference Library development package | |
9aa4329d | 28 | Summary(pl.UTF-8): Biblioteka DjVu dla programistów |
1aac2a37 | 29 | Group: Development/Libraries |
1aac2a37 JB |
30 | |
31 | %description devel | |
32 | DjVu Reference Library - static library and header files. | |
33 | ||
76c1f196 JR |
34 | %description devel -l pl.UTF-8 |
35 | Biblioteka DjVu - biblioteka statyczna i pliki nagłówkowe. | |
1aac2a37 JB |
36 | |
37 | %prep | |
38 | %setup -q -n DjVu3 | |
39 | %patch0 -p1 | |
40 | %patch1 -p1 | |
2048019f | 41 | %patch2 -p1 |
1aac2a37 JB |
42 | |
43 | %build | |
44 | OPT="%{rpmcflags}" | |
22239409 | 45 | %ifarch %{ix86} |
46 | %ifnarch i386 i486 | |
1aac2a37 JB |
47 | OPT="$OPT -DMMX" |
48 | %endif | |
22239409 | 49 | %endif |
1aac2a37 JB |
50 | # uses exceptions and implicit templactes |
51 | OPTXX="$OPT" | |
52 | export OPT OPTXX | |
2048019f JB |
53 | ./configure \ |
54 | --with-threads=posix | |
55 | ||
1aac2a37 JB |
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 | ||
1aac2a37 JB |
67 | %clean |
68 | rm -rf $RPM_BUILD_ROOT | |
69 | ||
70 | %files | |
71 | %defattr(644,root,root,755) | |
b9d40516 | 72 | %doc Doc Samples README.txt |
2048019f JB |
73 | %attr(755,root,root) %{_bindir}/bzz |
74 | %attr(755,root,root) %{_bindir}/c44 | |
75 | %attr(755,root,root) %{_bindir}/cdjvu | |
76 | %attr(755,root,root) %{_bindir}/cjb2 | |
77 | %attr(755,root,root) %{_bindir}/cpaldjvu | |
78 | %attr(755,root,root) %{_bindir}/csepdjvu | |
79 | %attr(755,root,root) %{_bindir}/d44 | |
80 | %attr(755,root,root) %{_bindir}/ddjvu | |
81 | %attr(755,root,root) %{_bindir}/djthumb | |
82 | %attr(755,root,root) %{_bindir}/djvm | |
83 | %attr(755,root,root) %{_bindir}/djvmcvt | |
84 | %attr(755,root,root) %{_bindir}/djvuanno | |
85 | %attr(755,root,root) %{_bindir}/djvudump | |
86 | %attr(755,root,root) %{_bindir}/djvuextract | |
87 | %attr(755,root,root) %{_bindir}/djvumake | |
88 | %attr(755,root,root) %{_bindir}/djvutxt | |
89 | %attr(755,root,root) %{_bindir}/ppmcoco | |
1aac2a37 JB |
90 | |
91 | %files devel | |
92 | %defattr(644,root,root,755) | |
2048019f JB |
93 | %{_libdir}/libdjvu.a |
94 | %{_includedir}/DjVu.h | |
95 | %{_includedir}/DjVuVersion.h |