]>
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 |
96853469 | 10 | Release: 3 |
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 | |
93 | ||
94 | %description apidocs | |
95 | API and internal documentation for dirac library. | |
96 | ||
97 | %description apidocs -l pl.UTF-8 | |
98 | Dokumentacja API biblioteki dirac. | |
99 | ||
ace6e324 | 100 | %prep |
101 | %setup -q | |
102 | %patch0 -p1 | |
103 | ||
104 | %build | |
105 | %{__libtoolize} | |
0e45352f | 106 | %{__aclocal} -I m4 |
ace6e324 | 107 | %{__autoconf} |
108 | %{__automake} | |
421a8b10 ER |
109 | %configure \ |
110 | %{!?with_static_libs:--disable-static} | |
ace6e324 | 111 | %{__make} |
112 | ||
113 | %install | |
114 | rm -rf $RPM_BUILD_ROOT | |
ace6e324 | 115 | |
116 | %{__make} install \ | |
d0d1c2e8 JB |
117 | DESTDIR=$RPM_BUILD_ROOT \ |
118 | CPPUNITTESTS_DIR= | |
ace6e324 | 119 | |
9207ecc8 | 120 | rm -f doc/api/html/*.md5 |
121 | rm -rf $RPM_BUILD_ROOT%{_datadir}/doc/dirac | |
ace6e324 | 122 | |
123 | %clean | |
124 | rm -rf $RPM_BUILD_ROOT | |
125 | ||
96853469 ER |
126 | %post libs -p /sbin/ldconfig |
127 | %postun libs -p /sbin/ldconfig | |
ace6e324 | 128 | |
129 | %files | |
130 | %defattr(644,root,root,755) | |
95a67f1b | 131 | %doc AUTHORS ChangeLog NEWS README TODO |
421a8b10 ER |
132 | %attr(755,root,root) %{_bindir}/BMPtoRGB |
133 | %attr(755,root,root) %{_bindir}/RGBtoBMP | |
134 | %attr(755,root,root) %{_bindir}/RGBtoUYVY | |
135 | %attr(755,root,root) %{_bindir}/RGBtoYUV411 | |
136 | %attr(755,root,root) %{_bindir}/RGBtoYUV420 | |
137 | %attr(755,root,root) %{_bindir}/RGBtoYUV422 | |
138 | %attr(755,root,root) %{_bindir}/RGBtoYUV444 | |
139 | %attr(755,root,root) %{_bindir}/UYVYtoRGB | |
140 | %attr(755,root,root) %{_bindir}/UYVYtoYUV422 | |
141 | %attr(755,root,root) %{_bindir}/YUV411toRGB | |
142 | %attr(755,root,root) %{_bindir}/YUV420Down2x2 | |
143 | %attr(755,root,root) %{_bindir}/YUV420ItoYUV422I | |
144 | %attr(755,root,root) %{_bindir}/YUV420pt75filter | |
145 | %attr(755,root,root) %{_bindir}/YUV420toRGB | |
146 | %attr(755,root,root) %{_bindir}/YUV420toYUV422 | |
147 | %attr(755,root,root) %{_bindir}/YUV422ItoYUV420I | |
148 | %attr(755,root,root) %{_bindir}/YUV422toRGB | |
149 | %attr(755,root,root) %{_bindir}/YUV422toUYVY | |
150 | %attr(755,root,root) %{_bindir}/YUV422toYUV420 | |
151 | %attr(755,root,root) %{_bindir}/YUV444toRGB | |
152 | %attr(755,root,root) %{_bindir}/create_dirac_testfile.pl | |
153 | %attr(755,root,root) %{_bindir}/dirac_decoder | |
154 | %attr(755,root,root) %{_bindir}/dirac_encoder | |
155 | %attr(755,root,root) %{_bindir}/dirac_instrumentation | |
96853469 ER |
156 | |
157 | %files libs | |
158 | %defattr(644,root,root,755) | |
3e2d701e | 159 | %attr(755,root,root) %{_libdir}/libdirac_decoder.so.*.*.* |
3e2d701e | 160 | %attr(755,root,root) %ghost %{_libdir}/libdirac_decoder.so.0 |
421a8b10 | 161 | %attr(755,root,root) %{_libdir}/libdirac_encoder.so.*.*.* |
3e2d701e | 162 | %attr(755,root,root) %ghost %{_libdir}/libdirac_encoder.so.0 |
ace6e324 | 163 | |
164 | %files devel | |
165 | %defattr(644,root,root,755) | |
3e2d701e JB |
166 | %attr(755,root,root) %{_libdir}/libdirac_decoder.so |
167 | %attr(755,root,root) %{_libdir}/libdirac_encoder.so | |
168 | %{_libdir}/libdirac_decoder.la | |
169 | %{_libdir}/libdirac_encoder.la | |
ace6e324 | 170 | %{_includedir}/%{name} |
3e2d701e | 171 | %{_pkgconfigdir}/dirac.pc |
ace6e324 | 172 | |
421a8b10 | 173 | %if %{with static_libs} |
ace6e324 | 174 | %files static |
175 | %defattr(644,root,root,755) | |
3e2d701e JB |
176 | %{_libdir}/libdirac_decoder.a |
177 | %{_libdir}/libdirac_encoder.a | |
421a8b10 ER |
178 | %endif |
179 | ||
180 | %if %{with apidocs} | |
181 | %files apidocs | |
182 | %defattr(644,root,root,755) | |
183 | %doc doc/html | |
184 | %doc doc/dirac_api_{foot,head}.html | |
185 | %endif |