]> git.pld-linux.org Git - packages/dirac.git/blob - dirac.spec
ce5ec68ef9cec5ba1bc12e615a7531b6c34c04ab
[packages/dirac.git] / dirac.spec
1 Summary:        General purpose video codec
2 Summary(pl):    Kodek obrazu ogólnego przeznaczenia
3 Name:           dirac
4 Version:        0.3.1
5 Release:        1
6 License:        Mozilla Public License
7 Group:          Libraries
8 Source0:        http://dl.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
9 # Source0-md5:  12d0c09b3128ea88d10b9491b56364e0
10 Patch0:         %{name}-shared.patch
11 URL:            http://www.bbc.co.uk/rd/projects/dirac/
12 BuildRequires:  autoconf
13 BuildRequires:  automake
14 Buildrequires:  doxygen
15 BuildRequires:  libtool
16 BuildRequires:  perl-base
17 BuildRequires:  tetex-format-latex
18 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20 %define         _noautocompressdoc      *.map
21
22 %description
23 Dirac is a general-purpose video codec aimed at resolutions from QCIF
24 (180x144) to HDTV (1920x1080) progressive or interlaced. It uses
25 wavelets, motion compensation and arithmetic coding.
26
27 %description -l pl
28 Dirac jest kodekiem ogólnego przeznaczenia dla obrazu o
29 rozdzielczo¶ciach od QCIF (180x144) do HDTV (1920x1080). Kodek ten
30 wykorzystuje fale elementarne (wavelets), kompensacjê ruchu (motion
31 compensation) oraz kodowanie arytmentczne (arithmetic coding).
32
33 %package devel
34 Summary:        Header files for dirac library
35 Summary(pl):    Pliki nag³ówkowe biblioteki dirac
36 Group:          Development/Libraries
37 Requires:       %{name} = %{version}-%{release}
38
39 %description devel
40 Header files for dirac library.
41
42 %description devel -l pl
43 Pliki nag³ówkowe biblioteki dirac.
44
45 %package static
46 Summary:        Static dirac library
47 Summary(pl):    Statyczna biblioteka dirac
48 Group:          Development/Libraries
49 Requires:       %{name}-devel = %{version}-%{release}
50
51 %description static
52 Static dirac library.
53
54 %description static -l pl
55 Statyczna biblioteka dirac.
56
57 %prep
58 %setup -q
59 %patch0 -p1
60
61 %build
62 %{__libtoolize}
63 %{__aclocal}
64 %{__autoconf}
65 %{__automake}
66 %configure
67 %{__make}
68
69 %install
70 rm -rf $RPM_BUILD_ROOT
71 install -d $RPM_BUILD_ROOT%{_pkgconfigdir}
72
73 %{__make} install \
74         DESTDIR=$RPM_BUILD_ROOT
75
76 install %{name}.pc $RPM_BUILD_ROOT%{_pkgconfigdir}
77
78 %{__perl} -pi -e 's@libdirac_common/@@g' \
79         $RPM_BUILD_ROOT%{_includedir}/%{name}/*.h
80 %{__perl} -pi -e 's@libdirac_motionest/@@g' \
81         $RPM_BUILD_ROOT%{_includedir}/%{name}/*.h
82
83 rm -f doc/api/{Makefile*,dirac_api.doxygen,dirac_api_foot.html,dirac_api_head.html,html/{*.md5,graph_legend.dot}}
84
85 %clean
86 rm -rf $RPM_BUILD_ROOT
87
88 %post   -p /sbin/ldconfig
89 %postun -p /sbin/ldconfig
90
91 %files
92 %defattr(644,root,root,755)
93 %doc AUTHORS ChangeLog NEWS README TODO doc/faq.htm
94 %attr(755,root,root) %{_bindir}/*
95 %attr(755,root,root) %{_libdir}/lib*.so.*.*.*
96
97 %files devel
98 %defattr(644,root,root,755)
99 %doc doc/api doc/programmers/programmers_guide.pdf doc/dirac_doc_howto.txt
100 %attr(755,root,root) %{_libdir}/lib*.so
101 %{_libdir}/lib*.la
102 %{_includedir}/%{name}
103 %{_pkgconfigdir}/*.pc
104
105 %files static
106 %defattr(644,root,root,755)
107 %{_libdir}/lib*.a
This page took 0.064438 seconds and 2 git commands to generate.