]>
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 ER |
43 | %package libs |
44 | Summary: Libraries for dirac | |
45 | Group: Libraries | |
46 | Conflicts: dirac < 1.0.2-3 | |
47 | ||
48 | %description libs | |
49 | Dirac is a general-purpose video codec aimed at resolutions from QCIF | |
50 | (180x144) to HDTV (1920x1080) progressive or interlaced. It uses | |
51 | wavelets, motion compensation and arithmetic coding. | |
52 | ||
53 | This package contains libraries for dirac. | |
54 | ||
ace6e324 | 55 | %package devel |
56 | Summary: Header files for dirac library | |
7741545a | 57 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki dirac |
ace6e324 | 58 | Group: Development/Libraries |
96853469 | 59 | Requires: %{name}-libs = %{version}-%{release} |
d60d05fb | 60 | Requires: libstdc++-devel |
ace6e324 | 61 | |
62 | %description devel | |
63 | Header files for dirac library. | |
64 | ||
ee2cad50 JR |
65 | %description devel -l pl.UTF-8 |
66 | Pliki nagłówkowe biblioteki dirac. | |
ace6e324 | 67 | |
68 | %package static | |
69 | Summary: Static dirac library | |
7741545a | 70 | Summary(pl.UTF-8): Statyczna biblioteka dirac |
ace6e324 | 71 | Group: Development/Libraries |
72 | Requires: %{name}-devel = %{version}-%{release} | |
73 | ||
74 | %description static | |
75 | Static dirac library. | |
76 | ||
ee2cad50 | 77 | %description static -l pl.UTF-8 |
ace6e324 | 78 | Statyczna biblioteka dirac. |
79 | ||
421a8b10 ER |
80 | %package apidocs |
81 | Summary: dirac API documentation | |
82 | Summary(pl.UTF-8): Dokumentacja API biblioteki dirac | |
83 | Group: Documentation | |
84 | ||
85 | %description apidocs | |
86 | API and internal documentation for dirac library. | |
87 | ||
88 | %description apidocs -l pl.UTF-8 | |
89 | Dokumentacja API biblioteki dirac. | |
90 | ||
ace6e324 | 91 | %prep |
92 | %setup -q | |
93 | %patch0 -p1 | |
94 | ||
95 | %build | |
96 | %{__libtoolize} | |
0e45352f | 97 | %{__aclocal} -I m4 |
ace6e324 | 98 | %{__autoconf} |
99 | %{__automake} | |
421a8b10 ER |
100 | %configure \ |
101 | %{!?with_static_libs:--disable-static} | |
ace6e324 | 102 | %{__make} |
103 | ||
104 | %install | |
105 | rm -rf $RPM_BUILD_ROOT | |
ace6e324 | 106 | |
107 | %{__make} install \ | |
d0d1c2e8 JB |
108 | DESTDIR=$RPM_BUILD_ROOT \ |
109 | CPPUNITTESTS_DIR= | |
ace6e324 | 110 | |
9207ecc8 | 111 | rm -f doc/api/html/*.md5 |
112 | rm -rf $RPM_BUILD_ROOT%{_datadir}/doc/dirac | |
ace6e324 | 113 | |
114 | %clean | |
115 | rm -rf $RPM_BUILD_ROOT | |
116 | ||
96853469 ER |
117 | %post libs -p /sbin/ldconfig |
118 | %postun libs -p /sbin/ldconfig | |
ace6e324 | 119 | |
120 | %files | |
121 | %defattr(644,root,root,755) | |
95a67f1b | 122 | %doc AUTHORS ChangeLog NEWS README TODO |
421a8b10 ER |
123 | %attr(755,root,root) %{_bindir}/BMPtoRGB |
124 | %attr(755,root,root) %{_bindir}/RGBtoBMP | |
125 | %attr(755,root,root) %{_bindir}/RGBtoUYVY | |
126 | %attr(755,root,root) %{_bindir}/RGBtoYUV411 | |
127 | %attr(755,root,root) %{_bindir}/RGBtoYUV420 | |
128 | %attr(755,root,root) %{_bindir}/RGBtoYUV422 | |
129 | %attr(755,root,root) %{_bindir}/RGBtoYUV444 | |
130 | %attr(755,root,root) %{_bindir}/UYVYtoRGB | |
131 | %attr(755,root,root) %{_bindir}/UYVYtoYUV422 | |
132 | %attr(755,root,root) %{_bindir}/YUV411toRGB | |
133 | %attr(755,root,root) %{_bindir}/YUV420Down2x2 | |
134 | %attr(755,root,root) %{_bindir}/YUV420ItoYUV422I | |
135 | %attr(755,root,root) %{_bindir}/YUV420pt75filter | |
136 | %attr(755,root,root) %{_bindir}/YUV420toRGB | |
137 | %attr(755,root,root) %{_bindir}/YUV420toYUV422 | |
138 | %attr(755,root,root) %{_bindir}/YUV422ItoYUV420I | |
139 | %attr(755,root,root) %{_bindir}/YUV422toRGB | |
140 | %attr(755,root,root) %{_bindir}/YUV422toUYVY | |
141 | %attr(755,root,root) %{_bindir}/YUV422toYUV420 | |
142 | %attr(755,root,root) %{_bindir}/YUV444toRGB | |
143 | %attr(755,root,root) %{_bindir}/create_dirac_testfile.pl | |
144 | %attr(755,root,root) %{_bindir}/dirac_decoder | |
145 | %attr(755,root,root) %{_bindir}/dirac_encoder | |
146 | %attr(755,root,root) %{_bindir}/dirac_instrumentation | |
96853469 ER |
147 | |
148 | %files libs | |
149 | %defattr(644,root,root,755) | |
3e2d701e | 150 | %attr(755,root,root) %{_libdir}/libdirac_decoder.so.*.*.* |
3e2d701e | 151 | %attr(755,root,root) %ghost %{_libdir}/libdirac_decoder.so.0 |
421a8b10 | 152 | %attr(755,root,root) %{_libdir}/libdirac_encoder.so.*.*.* |
3e2d701e | 153 | %attr(755,root,root) %ghost %{_libdir}/libdirac_encoder.so.0 |
ace6e324 | 154 | |
155 | %files devel | |
156 | %defattr(644,root,root,755) | |
3e2d701e JB |
157 | %attr(755,root,root) %{_libdir}/libdirac_decoder.so |
158 | %attr(755,root,root) %{_libdir}/libdirac_encoder.so | |
159 | %{_libdir}/libdirac_decoder.la | |
160 | %{_libdir}/libdirac_encoder.la | |
ace6e324 | 161 | %{_includedir}/%{name} |
3e2d701e | 162 | %{_pkgconfigdir}/dirac.pc |
ace6e324 | 163 | |
421a8b10 | 164 | %if %{with static_libs} |
ace6e324 | 165 | %files static |
166 | %defattr(644,root,root,755) | |
3e2d701e JB |
167 | %{_libdir}/libdirac_decoder.a |
168 | %{_libdir}/libdirac_encoder.a | |
421a8b10 ER |
169 | %endif |
170 | ||
171 | %if %{with apidocs} | |
172 | %files apidocs | |
173 | %defattr(644,root,root,755) | |
174 | %doc doc/html | |
175 | %doc doc/dirac_api_{foot,head}.html | |
176 | %endif |