]>
Commit | Line | Data |
---|---|---|
421a8b10 ER |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without apidocs # do not build and package API docs | |
4 | %bcond_without static_libs # don't build static libraries | |
5 | ||
ace6e324 | 6 | Summary: General purpose video codec |
7741545a | 7 | Summary(pl.UTF-8): Kodek obrazu ogólnego przeznaczenia |
ace6e324 | 8 | Name: dirac |
7830308b | 9 | Version: 1.0.2 |
6482d31a | 10 | Release: 7 |
ab218fd7 | 11 | License: MPL v1.1 or GPL v2 or LGPL v2.1 |
ace6e324 | 12 | Group: Libraries |
421a8b10 | 13 | Source0: http://downloads.sourceforge.net/dirac/%{name}-%{version}.tar.gz |
7830308b | 14 | # Source0-md5: a57c2c5e58062d437d9ab13dffb28f0f |
d60d05fb | 15 | Patch0: %{name}-am.patch |
ace6e324 | 16 | URL: http://www.bbc.co.uk/rd/projects/dirac/ |
d60d05fb | 17 | BuildRequires: autoconf >= 2.50 |
ace6e324 | 18 | BuildRequires: automake |
d60d05fb JB |
19 | BuildRequires: libstdc++-devel |
20 | BuildRequires: libtool >= 2:1.5 | |
5ed9134e | 21 | BuildRequires: perl-base |
421a8b10 ER |
22 | %if %{with apidocs} |
23 | BuildRequires: doxygen | |
d60d05fb | 24 | BuildRequires: tetex-dvips |
ace6e324 | 25 | BuildRequires: tetex-format-latex |
8f9825e0 | 26 | BuildRequires: tetex-metafont |
421a8b10 | 27 | %endif |
ace6e324 | 28 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
29 | ||
9207ecc8 | 30 | %define _noautocompressdoc *.map *.dot |
ace6e324 | 31 | |
32 | %description | |
33 | Dirac is a general-purpose video codec aimed at resolutions from QCIF | |
34 | (180x144) to HDTV (1920x1080) progressive or interlaced. It uses | |
35 | wavelets, motion compensation and arithmetic coding. | |
36 | ||
ee2cad50 JR |
37 | %description -l pl.UTF-8 |
38 | Dirac jest kodekiem ogólnego przeznaczenia dla obrazu o | |
39 | rozdzielczościach od QCIF (180x144) do HDTV (1920x1080). Kodek ten | |
40 | wykorzystuje fale elementarne (wavelets), kompensację ruchu (motion | |
868410a4 | 41 | compensation) oraz kodowanie arytmetyczne (arithmetic coding). |
ace6e324 | 42 | |
96853469 | 43 | %package libs |
0c659bc2 JB |
44 | Summary: Libraries for dirac codec |
45 | Summary(pl.UTF-8): Biblioteki kodeka dirac | |
96853469 ER |
46 | Group: Libraries |
47 | Conflicts: dirac < 1.0.2-3 | |
48 | ||
49 | %description libs | |
50 | Dirac is a general-purpose video codec aimed at resolutions from QCIF | |
51 | (180x144) to HDTV (1920x1080) progressive or interlaced. It uses | |
52 | wavelets, motion compensation and arithmetic coding. | |
53 | ||
54 | This package contains libraries for dirac. | |
55 | ||
0c659bc2 JB |
56 | %description libs -l pl.UTF-8 |
57 | Dirac jest kodekiem ogólnego przeznaczenia dla obrazu o | |
58 | rozdzielczościach od QCIF (180x144) do HDTV (1920x1080). Kodek ten | |
59 | wykorzystuje fale elementarne (wavelets), kompensację ruchu (motion | |
60 | compensation) oraz kodowanie arytmetyczne (arithmetic coding). | |
61 | ||
62 | Ten pakiet zawiera biblioteki kodeka dirac. | |
63 | ||
ace6e324 | 64 | %package devel |
65 | Summary: Header files for dirac library | |
7741545a | 66 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki dirac |
ace6e324 | 67 | Group: Development/Libraries |
96853469 | 68 | Requires: %{name}-libs = %{version}-%{release} |
d60d05fb | 69 | Requires: libstdc++-devel |
ace6e324 | 70 | |
71 | %description devel | |
72 | Header files for dirac library. | |
73 | ||
ee2cad50 JR |
74 | %description devel -l pl.UTF-8 |
75 | Pliki nagłówkowe biblioteki dirac. | |
ace6e324 | 76 | |
77 | %package static | |
78 | Summary: Static dirac library | |
7741545a | 79 | Summary(pl.UTF-8): Statyczna biblioteka dirac |
ace6e324 | 80 | Group: Development/Libraries |
81 | Requires: %{name}-devel = %{version}-%{release} | |
82 | ||
83 | %description static | |
84 | Static dirac library. | |
85 | ||
ee2cad50 | 86 | %description static -l pl.UTF-8 |
ace6e324 | 87 | Statyczna biblioteka dirac. |
88 | ||
421a8b10 ER |
89 | %package apidocs |
90 | Summary: dirac API documentation | |
91 | Summary(pl.UTF-8): Dokumentacja API biblioteki dirac | |
92 | Group: Documentation | |
b6c85570 | 93 | BuildArch: noarch |
421a8b10 ER |
94 | |
95 | %description apidocs | |
96 | API and internal documentation for dirac library. | |
97 | ||
98 | %description apidocs -l pl.UTF-8 | |
99 | Dokumentacja API biblioteki dirac. | |
100 | ||
ace6e324 | 101 | %prep |
102 | %setup -q | |
103 | %patch0 -p1 | |
104 | ||
105 | %build | |
106 | %{__libtoolize} | |
0e45352f | 107 | %{__aclocal} -I m4 |
ace6e324 | 108 | %{__autoconf} |
109 | %{__automake} | |
421a8b10 ER |
110 | %configure \ |
111 | %{!?with_static_libs:--disable-static} | |
ace6e324 | 112 | %{__make} |
113 | ||
114 | %install | |
115 | rm -rf $RPM_BUILD_ROOT | |
ace6e324 | 116 | |
117 | %{__make} install \ | |
d0d1c2e8 JB |
118 | DESTDIR=$RPM_BUILD_ROOT \ |
119 | CPPUNITTESTS_DIR= | |
ace6e324 | 120 | |
9207ecc8 | 121 | rm -f doc/api/html/*.md5 |
b6c85570 | 122 | rm -rf $RPM_BUILD_ROOT%{_docdir}/dirac |
ace6e324 | 123 | |
124 | %clean | |
125 | rm -rf $RPM_BUILD_ROOT | |
126 | ||
96853469 ER |
127 | %post libs -p /sbin/ldconfig |
128 | %postun libs -p /sbin/ldconfig | |
ace6e324 | 129 | |
130 | %files | |
131 | %defattr(644,root,root,755) | |
95a67f1b | 132 | %doc AUTHORS ChangeLog NEWS README TODO |
421a8b10 ER |
133 | %attr(755,root,root) %{_bindir}/BMPtoRGB |
134 | %attr(755,root,root) %{_bindir}/RGBtoBMP | |
135 | %attr(755,root,root) %{_bindir}/RGBtoUYVY | |
136 | %attr(755,root,root) %{_bindir}/RGBtoYUV411 | |
137 | %attr(755,root,root) %{_bindir}/RGBtoYUV420 | |
138 | %attr(755,root,root) %{_bindir}/RGBtoYUV422 | |
139 | %attr(755,root,root) %{_bindir}/RGBtoYUV444 | |
140 | %attr(755,root,root) %{_bindir}/UYVYtoRGB | |
141 | %attr(755,root,root) %{_bindir}/UYVYtoYUV422 | |
142 | %attr(755,root,root) %{_bindir}/YUV411toRGB | |
143 | %attr(755,root,root) %{_bindir}/YUV420Down2x2 | |
144 | %attr(755,root,root) %{_bindir}/YUV420ItoYUV422I | |
145 | %attr(755,root,root) %{_bindir}/YUV420pt75filter | |
146 | %attr(755,root,root) %{_bindir}/YUV420toRGB | |
147 | %attr(755,root,root) %{_bindir}/YUV420toYUV422 | |
148 | %attr(755,root,root) %{_bindir}/YUV422ItoYUV420I | |
149 | %attr(755,root,root) %{_bindir}/YUV422toRGB | |
150 | %attr(755,root,root) %{_bindir}/YUV422toUYVY | |
151 | %attr(755,root,root) %{_bindir}/YUV422toYUV420 | |
152 | %attr(755,root,root) %{_bindir}/YUV444toRGB | |
153 | %attr(755,root,root) %{_bindir}/create_dirac_testfile.pl | |
154 | %attr(755,root,root) %{_bindir}/dirac_decoder | |
155 | %attr(755,root,root) %{_bindir}/dirac_encoder | |
156 | %attr(755,root,root) %{_bindir}/dirac_instrumentation | |
96853469 ER |
157 | |
158 | %files libs | |
159 | %defattr(644,root,root,755) | |
3e2d701e | 160 | %attr(755,root,root) %{_libdir}/libdirac_decoder.so.*.*.* |
3e2d701e | 161 | %attr(755,root,root) %ghost %{_libdir}/libdirac_decoder.so.0 |
421a8b10 | 162 | %attr(755,root,root) %{_libdir}/libdirac_encoder.so.*.*.* |
3e2d701e | 163 | %attr(755,root,root) %ghost %{_libdir}/libdirac_encoder.so.0 |
ace6e324 | 164 | |
165 | %files devel | |
166 | %defattr(644,root,root,755) | |
3e2d701e JB |
167 | %attr(755,root,root) %{_libdir}/libdirac_decoder.so |
168 | %attr(755,root,root) %{_libdir}/libdirac_encoder.so | |
169 | %{_libdir}/libdirac_decoder.la | |
170 | %{_libdir}/libdirac_encoder.la | |
ace6e324 | 171 | %{_includedir}/%{name} |
3e2d701e | 172 | %{_pkgconfigdir}/dirac.pc |
ace6e324 | 173 | |
421a8b10 | 174 | %if %{with static_libs} |
ace6e324 | 175 | %files static |
176 | %defattr(644,root,root,755) | |
3e2d701e JB |
177 | %{_libdir}/libdirac_decoder.a |
178 | %{_libdir}/libdirac_encoder.a | |
421a8b10 ER |
179 | %endif |
180 | ||
181 | %if %{with apidocs} | |
182 | %files apidocs | |
183 | %defattr(644,root,root,755) | |
184 | %doc doc/html | |
185 | %doc doc/dirac_api_{foot,head}.html | |
186 | %endif |