]>
Commit | Line | Data |
---|---|---|
b66ef5e8 JB |
1 | Summary: SMPTE DPX v2 Image Format reader/writer library |
2 | Summary(pl.UTF-8): Biblioteka do odczytu/zapisu obrazów w formacie SMPTE DPX v2 | |
3 | Name: dpx | |
4 | Version: 0.5 | |
5 | %define subver svn4 | |
6 | Release: 0.%{subver}.1 | |
7 | License: BSD | |
8 | Group: Libraries | |
9 | # svn checkout http://dpx.googlecode.com/svn/trunk/ dpx | |
10 | Source0: %{name}-%{subver}.tar.xz | |
11 | # Source0-md5: a6bf177cb29eaaefb5208f3dcf486658 | |
12 | Patch0: %{name}-shared.patch | |
13 | URL: http://code.google.com/p/dpx/ | |
14 | BuildRequires: autoconf >= 2.61 | |
15 | BuildRequires: automake | |
16 | BuildRequires: libstdc++-devel | |
17 | BuildRequires: libtiff-devel | |
18 | BuildRequires: libtool >= 2:1.5 | |
19 | BuildRequires: tar >= 1:1.22 | |
20 | BuildRequires: xz | |
21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
22 | ||
23 | %description | |
24 | SMPTE DPX v2 Image Format reader/writer library written in portable | |
25 | C++. | |
26 | ||
27 | %description -l pl.UTF-8 | |
28 | Biblioteka do odczytu/zapisu obrazów w formacie SMPTE DPX v2, napisana | |
29 | w przenośnym C++. | |
30 | ||
31 | %package devel | |
32 | Summary: Header files for DPX library | |
33 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki DPX | |
34 | Group: Development/Libraries | |
35 | Requires: %{name} = %{version}-%{release} | |
36 | Requires: libstdc++-devel | |
37 | ||
38 | %description devel | |
39 | Header files for DPX library. | |
40 | ||
41 | %description devel -l pl.UTF-8 | |
42 | Pliki nagłówkowe biblioteki DPX. | |
43 | ||
44 | %package static | |
45 | Summary: Static DPX library | |
46 | Summary(pl.UTF-8): Statyczna biblioteka DPX | |
47 | Group: Development/Libraries | |
48 | Requires: %{name}-devel = %{version}-%{release} | |
49 | ||
50 | %description static | |
51 | Static DPX library. | |
52 | ||
53 | %description static -l pl.UTF-8 | |
54 | Statyczna biblioteka DPX. | |
55 | ||
56 | %package apidocs | |
57 | Summary: DPX API documentation | |
58 | Summary(pl.UTF-8): Dokumentacja API biblioteki DPX | |
59 | Group: Documentation | |
60 | ||
61 | %description apidocs | |
62 | API and internal documentation for DPX library. | |
63 | ||
64 | %description apidocs -l pl.UTF-8 | |
65 | Dokumentacja API biblioteki DPX. | |
66 | ||
67 | %prep | |
68 | %setup -q -n %{name} | |
69 | %patch0 -p1 | |
70 | ||
71 | %build | |
72 | %{__libtoolize} | |
73 | %{__aclocal} | |
74 | %{__autoconf} | |
75 | %{__automake} | |
76 | %configure \ | |
77 | --enable-shared | |
78 | ||
79 | %{__make} | |
80 | ||
81 | %install | |
82 | rm -rf $RPM_BUILD_ROOT | |
83 | ||
84 | %{__make} install \ | |
85 | DESTDIR=$RPM_BUILD_ROOT | |
86 | ||
87 | %clean | |
88 | rm -rf $RPM_BUILD_ROOT | |
89 | ||
90 | %post -p /sbin/ldconfig | |
91 | %postun -p /sbin/ldconfig | |
92 | ||
93 | %files | |
94 | %defattr(644,root,root,755) | |
95 | %doc AUTHORS COPYING NEWS README | |
96 | %attr(755,root,root) %{_bindir}/dpx2tiff | |
97 | %attr(755,root,root) %{_bindir}/dpxheader | |
98 | %attr(755,root,root) %{_libdir}/libdpx.so.*.*.* | |
99 | %attr(755,root,root) %ghost %{_libdir}/libdpx.so.0 | |
100 | ||
101 | %files devel | |
102 | %defattr(644,root,root,755) | |
103 | %attr(755,root,root) %{_libdir}/libdpx.so | |
104 | %{_libdir}/libdpx.la | |
105 | %{_includedir}/DPX*.h | |
106 | ||
107 | %files static | |
108 | %defattr(644,root,root,755) | |
109 | %{_libdir}/libdpx.a | |
110 | ||
111 | %files apidocs | |
112 | %defattr(644,root,root,755) | |
113 | %doc doc/html/*.{css,html,png} |