]> git.pld-linux.org Git - packages/libltc.git/blob - libltc.spec
- new
[packages/libltc.git] / libltc.spec
1 #
2 # Conditional build:
3 %bcond_without  static_libs     # static library
4 #
5 Summary:        Linear/longitudinal timecode library
6 Summary(pl.UTF-8):      Biblioteka do liniowego kodu czasowego
7 Name:           libltc
8 Version:        1.3.1
9 Release:        1
10 License:        LGPL v3+
11 Group:          Libraries
12 #Source0Download: https://github.com/x42/libltc/releases
13 Source0:        https://github.com/x42/libltc/releases/download/v%{version}/%{name}-%{version}.tar.gz
14 # Source0-md5:  a854f586b20a2732c93bc67d7b4f3813
15 URL:            https://github.com/x42/libltc
16 BuildRequires:  doxygen
17 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19 %description
20 Linear (or Longitudinal) Timecode (LTC) is an encoding of SMPTE
21 timecode data as a Manchester-Biphase encoded audio signal. The audio
22 signal is commonly recorded on a VTR track or other storage media.
23
24 libltc provides functionality to encode and decode LTC audio from/to
25 SMPTE or EBU timecode, including SMPTE date support.
26
27 %description -l pl.UTF-8
28 Liniowy kod czasowy (LTC - Linear/Longitudinal Timecode) to kodowanie
29 danych kodu czasowego SMPTE w postaci sygnału dźwiękowego z kodowaniem
30 Manchester-Biphase. Sygnał dźwiękowy jest zwykle nagrywany na ścieżce
31 VTR lub innego nośnika.
32
33 libltc udostępnia funkcjonalność kodowania i dekodowania dźwiękowego
34 LTC z/do kodu SMPTE lub EBU, wraz z obsługą dat SMPTE.
35
36 %package devel
37 Summary:        Header files for ltc library
38 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki ltc
39 Group:          Development/Libraries
40 Requires:       %{name} = %{version}-%{release}
41
42 %description devel
43 Header files for ltc library.
44
45 %description devel -l pl.UTF-8
46 Pliki nagłówkowe biblioteki ltc.
47
48 %package static
49 Summary:        Static ltc library
50 Summary(pl.UTF-8):      Statyczna biblioteka ltc
51 Group:          Development/Libraries
52 Requires:       %{name}-devel = %{version}-%{release}
53
54 %description static
55 Static ltc library.
56
57 %description static -l pl.UTF-8
58 Statyczna biblioteka ltc.
59
60 %prep
61 %setup -q
62
63 %build
64 %configure \
65         %{!?with_static_libs:--disable-static}
66 %{__make}
67
68 %install
69 rm -rf $RPM_BUILD_ROOT
70
71 %{__make} install \
72         DESTDIR=$RPM_BUILD_ROOT
73
74 # obsoleted by pkg-config
75 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libltc.la
76
77 %clean
78 rm -rf $RPM_BUILD_ROOT
79
80 %post   -p /sbin/ldconfig
81 %postun -p /sbin/ldconfig
82
83 %files
84 %defattr(644,root,root,755)
85 %doc AUTHORS ChangeLog README.md
86 %attr(755,root,root) %{_libdir}/libltc.so.*.*.*
87 %attr(755,root,root) %ghost %{_libdir}/libltc.so.11
88
89 %files devel
90 %defattr(644,root,root,755)
91 %attr(755,root,root) %{_libdir}/libltc.so
92 %{_includedir}/ltc.h
93 %{_pkgconfigdir}/ltc.pc
94 %{_mandir}/man3/ltc.h.3*
95
96 %if %{with static_libs}
97 %files static
98 %defattr(644,root,root,755)
99 %{_libdir}/libltc.a
100 %endif
This page took 0.066575 seconds and 3 git commands to generate.