]> git.pld-linux.org Git - SPECS.git/blob - alac.spec
SPECS updated Tue 30 Apr 15:06:09 CEST 2024
[SPECS.git] / alac.spec
1 #
2 # Conditional build:
3 %bcond_without  static_libs     # static library
4 #
5 Summary:        Apple Lossless Audio Codec library
6 Summary(pl.UTF-8):      Biblioteka kodeka ALAC (Apple Lossless Audio Codec)
7 Name:           alac
8 Version:        0.0.7
9 Release:        1
10 License:        Apache v2.0
11 Group:          Libraries
12 # original project: https://github.com/macosforge/alac (last commit 2016)
13 # here is maintained (last commit 2022) fork with autotools support
14 #Source0Download: https://github.com/mikebrady/alac/tags
15 Source0:        https://github.com/mikebrady/alac/archive/%{version}/%{name}-%{version}.tar.gz
16 # Source0-md5:  782f2752e9a8ef99d4c4a913e850e741
17 # https://github.com/mikebrady/alac/commit/5d6d836ee5b025a5e538cfa62c88bc5bced506ed
18 Patch0:         %{name}-unbreak-conversion-utility.patch
19 URL:            https://github.com/mikebrady/alac
20 BuildRequires:  autoconf >= 2.68
21 BuildRequires:  automake
22 BuildRequires:  libstdc++-devel
23 BuildRequires:  libtool >= 2:2
24 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26 %description
27 Apple Lossless Audio Codec library.
28
29 %description -l pl.UTF-8
30 Biblioteka kodeka ALAC (Apple Lossless Audio Codec).
31
32 %package devel
33 Summary:        Header files for ALAC library
34 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki ALAC
35 Group:          Development/Libraries
36 Requires:       %{name} = %{version}-%{release}
37
38 %description devel
39 Header files for ALAC library.
40
41 %description devel -l pl.UTF-8
42 Pliki nagłówkowe biblioteki ALAC.
43
44 %package static
45 Summary:        Static ALAC library
46 Summary(pl.UTF-8):      Statyczna biblioteka ALAC
47 Group:          Development/Libraries
48 Requires:       %{name}-devel = %{version}-%{release}
49
50 %description static
51 Static ALAC library.
52
53 %description static -l pl.UTF-8
54 Statyczna biblioteka ALAC.
55
56 %prep
57 %setup -q
58 %patch0 -p1
59
60 %build
61 %{__libtoolize}
62 %{__aclocal} -I m4
63 %{__autoconf}
64 %{__autoheader}
65 %{__automake}
66 %configure \
67         --enable-example \
68         %{!?with_static_libs:--disable-static}
69 %{__make}
70
71 %install
72 rm -rf $RPM_BUILD_ROOT
73
74 %{__make} install \
75         DESTDIR=$RPM_BUILD_ROOT
76
77 # obsoleted by pkg-config
78 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libalac.la
79
80 %clean
81 rm -rf $RPM_BUILD_ROOT
82
83 %post   -p /sbin/ldconfig
84 %postun -p /sbin/ldconfig
85
86 %files
87 %defattr(644,root,root,755)
88 %doc ReadMe.txt codec/APPLE_LICENSE.txt
89 %attr(755,root,root) %{_bindir}/alacconvert
90 %attr(755,root,root) %{_libdir}/libalac.so.*.*.*
91 %attr(755,root,root) %ghost %{_libdir}/libalac.so.0
92
93 %files devel
94 %defattr(644,root,root,755)
95 %doc ALACMagicCookieDescription.txt
96 %attr(755,root,root) %{_libdir}/libalac.so
97 %{_includedir}/alac
98 %{_pkgconfigdir}/alac.pc
99
100 %if %{with static_libs}
101 %files static
102 %defattr(644,root,root,755)
103 %{_libdir}/libalac.a
104 %endif
This page took 0.19833 seconds and 3 git commands to generate.