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