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