]>
Commit | Line | Data |
---|---|---|
21556048 | 1 | # |
316e0eaa | 2 | # Conditional build: |
739dc455 JB |
3 | %bcond_without gui # don't build gui stuff |
4 | %bcond_with mmx # use MMX asm (won't run on non-MMX CPU!) | |
f50fb0ea | 5 | %bcond_without static_libs # don't build static library |
316e0eaa | 6 | # |
1edcc35b | 7 | %ifarch athlon pentium3 pentium4 %{x8664} |
af3905f4 | 8 | %define with_mmx 1 |
f51e783b | 9 | %endif |
f6799040 | 10 | Summary: DV video software codec |
1bc57a27 | 11 | Summary(pl.UTF-8): Biblioteka do obsługi formatu wideo DV |
f6799040 | 12 | Name: libdv |
739dc455 | 13 | Version: 1.0.0 |
94193aba | 14 | Release: 4 |
462ff59f | 15 | License: LGPL |
e2cb4575 | 16 | Group: Libraries |
2d5466b8 | 17 | Source0: http://dl.sourceforge.net/libdv/%{name}-%{version}.tar.gz |
739dc455 | 18 | # Source0-md5: f895162161cfa4bb4a94c070a7caa6c7 |
e2cb4575 | 19 | Patch0: %{name}-include_fix.patch |
acaa529c | 20 | URL: http://libdv.sourceforge.net/ |
677b231f | 21 | %if %{with gui} |
29b73891 | 22 | BuildRequires: SDL-devel >= 1.1.6 |
b734a431 | 23 | BuildRequires: gtk+-devel >= 1.2.10-3 |
739dc455 | 24 | BuildRequires: xorg-lib-libXv-devel |
677b231f | 25 | %endif |
739dc455 | 26 | BuildRequires: autoconf >= 2.59-9 |
590fdaef | 27 | BuildRequires: automake |
876805d3 | 28 | BuildRequires: libtool |
9dba36da | 29 | BuildRequires: pkgconfig >= 1:0.7 |
acaa529c | 30 | BuildRequires: popt-devel |
7556b25f | 31 | BuildRequires: rpmbuild(macros) >= 1.213 |
acaa529c | 32 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
f6799040 | 33 | |
f6799040 | 34 | %description |
35 | The Quasar DV codec (libdv) is a software codec for DV video. DV is | |
36 | the encoding format used by most digital camcorders, typically those | |
37 | that support the IEEE 1394 (aka FireWire or i.Link) interface. libdv | |
38 | was developed according to the official standards for DV video, IEC | |
39 | 61834 and SMPTE 314M. See http://libdv.sourceforge.net/ for more. | |
40 | ||
f0c4af57 JR |
41 | %description -l pl.UTF-8 |
42 | Quasar DV (libdv) jest biblioteką do obsługi obrazu DV. DV jest | |
43 | formatem stosowanym przez większość cyfrowych urządzeń, zwykle tych, | |
44 | które używają interfejsu IEEE 1394 (FireWire/i.Link). libdv jest | |
21556048 JB |
45 | pisany zgodnie z oficjalnymi standardami DV, IEC 61834, SMPTE 314M. |
46 | ||
f6799040 | 47 | %package -n dv |
48 | Summary: Programs to encode and play DV files | |
1bc57a27 | 49 | Summary(pl.UTF-8): Programy do kodowania i odtwarzania plików DV |
f6799040 | 50 | Group: X11/Applications/Multimedia |
e2cb4575 | 51 | Requires: %{name} = %{version}-%{release} |
f6799040 | 52 | |
53 | %description -n dv | |
54 | Programs to encode and play DV files. | |
55 | ||
f0c4af57 JR |
56 | %description -n dv -l pl.UTF-8 |
57 | Programy do kodowania i odtwarzania plików DV. | |
21556048 | 58 | |
f6799040 | 59 | %package devel |
60 | Summary: DV library headers | |
1bc57a27 | 61 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki DV |
f6799040 | 62 | Group: Development/Libraries |
e2cb4575 | 63 | Requires: %{name} = %{version}-%{release} |
f6799040 | 64 | |
65 | %description devel | |
66 | This is the libraries, include files and other resources you can use | |
67 | to incorporate libdv into applications. | |
68 | ||
f0c4af57 JR |
69 | %description devel -l pl.UTF-8 |
70 | Pliki nagłówkowe potrzebne do budowania programów korzystających z | |
21556048 JB |
71 | libdv. |
72 | ||
f6799040 | 73 | %package static |
74 | Summary: DV static libraries | |
1bc57a27 | 75 | Summary(pl.UTF-8): Statyczne biblioteki do obsługi formatu DV |
f6799040 | 76 | Group: Development/Libraries |
e2cb4575 | 77 | Requires: %{name}-devel = %{version}-%{release} |
f6799040 | 78 | |
f6799040 | 79 | %description static |
80 | This is package with static libdv libraries. | |
81 | ||
f0c4af57 | 82 | %description static -l pl.UTF-8 |
21556048 JB |
83 | Statyczna wersja biblioteki libdv. |
84 | ||
f6799040 | 85 | %prep |
8f79d7f7 | 86 | %setup -q |
b162cc71 | 87 | %patch0 -p1 |
f6799040 | 88 | |
89 | %build | |
876805d3 KK |
90 | %{__libtoolize} |
91 | %{__aclocal} | |
92 | %{__autoconf} | |
739dc455 | 93 | %{__autoheader} |
876805d3 | 94 | %{__automake} |
c36d6af8 JB |
95 | %configure \ |
96 | --enable-shared \ | |
677b231f | 97 | %if %{with gui} |
539837cf | 98 | --enable-sdl \ |
99 | --enable-gtk \ | |
677b231f | 100 | %else |
e75c2c51 JB |
101 | --disable-sdl \ |
102 | --disable-gtk \ | |
677b231f | 103 | %endif |
21556048 | 104 | --without-debug \ |
f50fb0ea | 105 | %{!?with_mmx:--disable-asm} \ |
106 | %{!?with_static_libs:--disable-static} | |
c36d6af8 | 107 | |
f6799040 | 108 | %{__make} |
109 | ||
110 | %install | |
111 | rm -rf $RPM_BUILD_ROOT | |
112 | ||
21556048 JB |
113 | %{__make} install \ |
114 | DESTDIR=$RPM_BUILD_ROOT \ | |
71901d86 | 115 | pkgconfigdir=%{_pkgconfigdir} |
f6799040 | 116 | |
f6799040 | 117 | %clean |
118 | rm -rf $RPM_BUILD_ROOT | |
119 | ||
b734a431 JB |
120 | %post -p /sbin/ldconfig |
121 | %postun -p /sbin/ldconfig | |
122 | ||
f6799040 | 123 | %files |
124 | %defattr(644,root,root,755) | |
8f79d7f7 | 125 | %doc AUTHORS ChangeLog NEWS README.* TODO |
739dc455 | 126 | %attr(755,root,root) %{_libdir}/libdv.so.*.*.* |
94193aba | 127 | %attr(755,root,root) %ghost %{_libdir}/libdv.so.? |
f6799040 | 128 | |
677b231f | 129 | %if %{with gui} |
f6799040 | 130 | %files -n dv |
131 | %defattr(644,root,root,755) | |
132 | %attr(755,root,root) %{_bindir}/* | |
21556048 | 133 | %{_mandir}/man1/* |
677b231f | 134 | %endif |
f6799040 | 135 | |
136 | %files devel | |
137 | %defattr(644,root,root,755) | |
739dc455 JB |
138 | %attr(755,root,root) %{_libdir}/libdv.so |
139 | %{_libdir}/libdv.la | |
8f79d7f7 | 140 | %{_includedir}/libdv |
739dc455 | 141 | %{_pkgconfigdir}/libdv.pc |
f6799040 | 142 | |
f50fb0ea | 143 | %if %{with static_libs} |
f6799040 | 144 | %files static |
145 | %defattr(644,root,root,755) | |
739dc455 | 146 | %{_libdir}/libdv.a |
f50fb0ea | 147 | %endif |