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