]>
Commit | Line | Data |
---|---|---|
c2e6ef43 JB |
1 | # TODO: python (missing sources, specified as nodist???) |
2 | Summary: The ASDCP library | |
3 | Summary(pl.UTF-8): Biblioteka ASDCP | |
4 | Name: asdcplib | |
b0e4021a | 5 | Version: 2.7.19 |
04beac49 | 6 | Release: 2 |
c2e6ef43 JB |
7 | License: BSD |
8 | Group: Libraries | |
9 | # note: download URL shows more recent versions than document at download directory | |
10 | #Source0Download: http://www.cinecert.com/asdcplib/download/ | |
11 | Source0: http://download.cinecert.com/asdcplib/%{name}-%{version}.tar.gz | |
b0e4021a | 12 | # Source0-md5: f9290440d1645cc834cfb9fb5a337348 |
5b481465 JB |
13 | # from asdcplib 1.12.60 sources |
14 | Source1: %{name}.pc.in | |
c2e6ef43 JB |
15 | Patch0: %{name}-link.patch |
16 | URL: http://www.cinecert.com/asdcplib/ | |
17 | BuildRequires: autoconf >= 2.59 | |
18 | BuildRequires: automake >= 1:1.9 | |
19 | BuildRequires: expat-devel >= 1.95 | |
20 | BuildRequires: libtool | |
21 | BuildRequires: openssl-devel >= 0.9.7 | |
5b481465 | 22 | #BuildRequires: python-devel >= 1:2.3 |
c2e6ef43 JB |
23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
24 | ||
25 | %description | |
26 | The asdcplib library is a set of objects that offer simplified access | |
27 | to files conforming to the sound and picture track file formats | |
28 | developed by the SMPTE Working Group DC28.20 (now TC 21DC). | |
29 | ||
30 | %description -l pl.UTF-8 | |
31 | Biblioteka asdcplib to zbiór obiektów oferujących uproszczony dostęp | |
32 | do plików zgodnych z formatami plików ścieżek dźwięku i obrazu | |
33 | opracowanych przez grupę roboczą SMPTE DC28.20 (obecnie TC 21DC). | |
34 | ||
35 | %package devel | |
36 | Summary: Header files for ASDCP library | |
37 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki ASDCP | |
38 | Group: Development/Libraries | |
39 | Requires: %{name} = %{version}-%{release} | |
40 | Requires: openssl-devel >= 0.9.7 | |
41 | ||
42 | %description devel | |
43 | Header files for ASDCP library. | |
44 | ||
45 | %description devel -l pl.UTF-8 | |
46 | Pliki nagłówkowe biblioteki ASDCP. | |
47 | ||
48 | %package static | |
49 | Summary: Static ASDCP libraries | |
50 | Summary(pl.UTF-8): Statyczne biblioteki ASDCP | |
51 | Group: Development/Libraries | |
52 | Requires: %{name}-devel = %{version}-%{release} | |
53 | ||
54 | %description static | |
55 | Static ASDCP libraries. | |
56 | ||
57 | %description static -l pl.UTF-8 | |
58 | Statyczne biblioteki ASDCP. | |
59 | ||
60 | %prep | |
61 | %setup -q | |
62 | %patch0 -p1 | |
63 | ||
64 | %build | |
65 | %{__libtoolize} | |
66 | %{__aclocal} -I m4 | |
67 | %{__autoconf} | |
68 | %{__automake} | |
69 | %configure \ | |
70 | --with-expat=/usr \ | |
5b481465 JB |
71 | --with-openssl=/usr \ |
72 | --enable-as-02 \ | |
73 | --enable-phdr | |
c2e6ef43 JB |
74 | # --with-python is broken (required files missing in tarball) |
75 | ||
76 | %{__make} | |
77 | ||
78 | %install | |
79 | rm -rf $RPM_BUILD_ROOT | |
80 | ||
81 | %{__make} install \ | |
82 | DESTDIR=$RPM_BUILD_ROOT | |
83 | ||
5b481465 JB |
84 | install -d $RPM_BUILD_ROOT%{_pkgconfigdir} |
85 | sed -e 's,@prefix@,%{_prefix},;s,@exec_prefix@,%{_prefix},;s,@libdir@,%{_libdir},;s,@includedir@,%{_includedir},;s,@PACKAGE_VERSION@,%{version},' %{SOURCE1} >$RPM_BUILD_ROOT%{_pkgconfigdir}/asdcplib.pc | |
86 | ||
c2e6ef43 JB |
87 | # obsoleted by pkg-config |
88 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/lib*.la | |
89 | ||
90 | %clean | |
91 | rm -rf $RPM_BUILD_ROOT | |
92 | ||
93 | %post -p /sbin/ldconfig | |
94 | %postun -p /sbin/ldconfig | |
95 | ||
96 | %files | |
97 | %defattr(644,root,root,755) | |
98 | %doc COPYING README | |
b0e4021a | 99 | %attr(755,root,root) %{_bindir}/as-02-info |
5b481465 JB |
100 | %attr(755,root,root) %{_bindir}/as-02-unwrap |
101 | %attr(755,root,root) %{_bindir}/as-02-wrap | |
c2e6ef43 JB |
102 | %attr(755,root,root) %{_bindir}/asdcp-info |
103 | %attr(755,root,root) %{_bindir}/asdcp-test | |
104 | %attr(755,root,root) %{_bindir}/asdcp-unwrap | |
105 | %attr(755,root,root) %{_bindir}/asdcp-util | |
106 | %attr(755,root,root) %{_bindir}/asdcp-wrap | |
107 | %attr(755,root,root) %{_bindir}/blackwave | |
108 | %attr(755,root,root) %{_bindir}/j2c-test | |
109 | %attr(755,root,root) %{_bindir}/klvsplit | |
110 | %attr(755,root,root) %{_bindir}/klvwalk | |
111 | %attr(755,root,root) %{_bindir}/kmfilegen | |
112 | %attr(755,root,root) %{_bindir}/kmrandgen | |
113 | %attr(755,root,root) %{_bindir}/kmuuidgen | |
114 | %attr(755,root,root) %{_bindir}/wavesplit | |
5b481465 JB |
115 | %attr(755,root,root) %{_bindir}/phdr-unwrap |
116 | %attr(755,root,root) %{_bindir}/phdr-wrap | |
117 | %attr(755,root,root) %{_bindir}/pinkwave | |
118 | %attr(755,root,root) %{_libdir}/libas02-%{version}.so | |
c2e6ef43 JB |
119 | %attr(755,root,root) %{_libdir}/libasdcp-%{version}.so |
120 | %attr(755,root,root) %{_libdir}/libkumu-%{version}.so | |
5b481465 | 121 | %attr(755,root,root) %{_libdir}/libphdr-%{version}.so |
c2e6ef43 JB |
122 | |
123 | %files devel | |
124 | %defattr(644,root,root,755) | |
5b481465 | 125 | %attr(755,root,root) %{_libdir}/libas02.so |
c2e6ef43 JB |
126 | %attr(755,root,root) %{_libdir}/libasdcp.so |
127 | %attr(755,root,root) %{_libdir}/libkumu.so | |
5b481465 JB |
128 | %attr(755,root,root) %{_libdir}/libphdr.so |
129 | %{_includedir}/AS_02.h | |
130 | %{_includedir}/AS_02_PHDR.h | |
c2e6ef43 JB |
131 | %{_includedir}/AS_DCP.h |
132 | %{_includedir}/KM_*.h | |
133 | %{_pkgconfigdir}/asdcplib.pc | |
134 | ||
135 | %files static | |
136 | %defattr(644,root,root,755) | |
5b481465 | 137 | %{_libdir}/libas02.a |
c2e6ef43 JB |
138 | %{_libdir}/libasdcp.a |
139 | %{_libdir}/libkumu.a | |
5b481465 | 140 | %{_libdir}/libphdr.a |