]>
Commit | Line | Data |
---|---|---|
1 | Summary: General purpose video codec | |
2 | Summary(pl.UTF-8): Kodek obrazu ogólnego przeznaczenia | |
3 | Name: dirac | |
4 | Version: 0.10.0 | |
5 | Release: 1 | |
6 | License: MPL v1.1 or GPL v2 or LGPL v2.1 | |
7 | Group: Libraries | |
8 | Source0: http://dl.sourceforge.net/dirac/%{name}-%{version}.tar.gz | |
9 | # Source0-md5: 82615435ae77cdf0a7e1ab6b4c30cb11 | |
10 | Patch0: %{name}-am.patch | |
11 | URL: http://www.bbc.co.uk/rd/projects/dirac/ | |
12 | BuildRequires: autoconf >= 2.50 | |
13 | BuildRequires: automake | |
14 | BuildRequires: doxygen | |
15 | BuildRequires: libstdc++-devel | |
16 | BuildRequires: libtool >= 2:1.5 | |
17 | BuildRequires: perl-base | |
18 | BuildRequires: tetex-dvips | |
19 | BuildRequires: tetex-format-latex | |
20 | BuildRequires: tetex-metafont | |
21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
22 | ||
23 | %define _noautocompressdoc *.map *.dot | |
24 | ||
25 | %description | |
26 | Dirac is a general-purpose video codec aimed at resolutions from QCIF | |
27 | (180x144) to HDTV (1920x1080) progressive or interlaced. It uses | |
28 | wavelets, motion compensation and arithmetic coding. | |
29 | ||
30 | %description -l pl.UTF-8 | |
31 | Dirac jest kodekiem ogólnego przeznaczenia dla obrazu o | |
32 | rozdzielczościach od QCIF (180x144) do HDTV (1920x1080). Kodek ten | |
33 | wykorzystuje fale elementarne (wavelets), kompensację ruchu (motion | |
34 | compensation) oraz kodowanie arytmetyczne (arithmetic coding). | |
35 | ||
36 | %package devel | |
37 | Summary: Header files for dirac library | |
38 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki dirac | |
39 | Group: Development/Libraries | |
40 | Requires: %{name} = %{version}-%{release} | |
41 | Requires: libstdc++-devel | |
42 | ||
43 | %description devel | |
44 | Header files for dirac library. | |
45 | ||
46 | %description devel -l pl.UTF-8 | |
47 | Pliki nagłówkowe biblioteki dirac. | |
48 | ||
49 | %package static | |
50 | Summary: Static dirac library | |
51 | Summary(pl.UTF-8): Statyczna biblioteka dirac | |
52 | Group: Development/Libraries | |
53 | Requires: %{name}-devel = %{version}-%{release} | |
54 | ||
55 | %description static | |
56 | Static dirac library. | |
57 | ||
58 | %description static -l pl.UTF-8 | |
59 | Statyczna biblioteka dirac. | |
60 | ||
61 | %prep | |
62 | %setup -q | |
63 | %patch0 -p1 | |
64 | ||
65 | %build | |
66 | %{__libtoolize} | |
67 | %{__aclocal} -I m4 | |
68 | %{__autoconf} | |
69 | %{__automake} | |
70 | %configure | |
71 | %{__make} | |
72 | ||
73 | %install | |
74 | rm -rf $RPM_BUILD_ROOT | |
75 | ||
76 | %{__make} install \ | |
77 | DESTDIR=$RPM_BUILD_ROOT \ | |
78 | CPPUNITTESTS_DIR= | |
79 | ||
80 | rm -f doc/api/html/*.md5 | |
81 | rm -rf $RPM_BUILD_ROOT%{_datadir}/doc/dirac | |
82 | ||
83 | %clean | |
84 | rm -rf $RPM_BUILD_ROOT | |
85 | ||
86 | %post -p /sbin/ldconfig | |
87 | %postun -p /sbin/ldconfig | |
88 | ||
89 | %files | |
90 | %defattr(644,root,root,755) | |
91 | %doc AUTHORS ChangeLog NEWS README TODO doc/faq.html | |
92 | %attr(755,root,root) %{_bindir}/* | |
93 | %attr(755,root,root) %{_libdir}/libdirac_decoder.so.*.*.* | |
94 | %attr(755,root,root) %{_libdir}/libdirac_encoder.so.*.*.* | |
95 | %attr(755,root,root) %ghost %{_libdir}/libdirac_decoder.so.0 | |
96 | %attr(755,root,root) %ghost %{_libdir}/libdirac_encoder.so.0 | |
97 | ||
98 | %files devel | |
99 | %defattr(644,root,root,755) | |
100 | %doc doc/documentation/code/api/html | |
101 | %attr(755,root,root) %{_libdir}/libdirac_decoder.so | |
102 | %attr(755,root,root) %{_libdir}/libdirac_encoder.so | |
103 | %{_libdir}/libdirac_decoder.la | |
104 | %{_libdir}/libdirac_encoder.la | |
105 | %{_includedir}/%{name} | |
106 | %{_pkgconfigdir}/dirac.pc | |
107 | ||
108 | %files static | |
109 | %defattr(644,root,root,755) | |
110 | %{_libdir}/libdirac_decoder.a | |
111 | %{_libdir}/libdirac_encoder.a |