]> git.pld-linux.org Git - SPECS.git/blob - musepack-tools.spec
SPECS updated Wed 28 Jul 14:48:01 CEST 2021
[SPECS.git] / musepack-tools.spec
1 #
2 # Conditional build:
3 %bcond_without  static_libs     # static library
4 #
5 %define         rev     475
6 Summary:        Musepack SV8 tools
7 Summary(pl.UTF-8):      Narzędzia Musepack SV8
8 Name:           musepack-tools
9 Version:        0.0.1.r%{rev}
10 Release:        5
11 License:        GPL v2+
12 Group:          Libraries
13 #Source0Download: https://www.musepack.net/index.php?pg=src
14 Source0:        http://files.musepack.net/source/musepack_src_r%{rev}.tar.gz
15 # Source0-md5:  754d67be67f713e54baf70fcfdb2817e
16 Patch0:         %{name}-libs.patch
17 Patch1:         %{name}-fno-common.patch
18 URL:            http://www.musepack.net/
19 BuildRequires:  cmake >= 2.4
20 BuildRequires:  libcuefile-devel
21 BuildRequires:  libreplaygain-devel
22 Requires:       musepack-libs = %{version}-%{release}
23 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25 %description
26 Musepack SV8 (StreamVersion8) tools.
27
28 %description -l pl.UTF-8
29 Narzędzia Musepack SV8 (StreamVersion8).
30
31 %package -n musepack-libs
32 Summary:        Musepack SV8 library
33 Summary(pl.UTF-8):      Biblioteka Musepack SV8
34 Group:          Development/Libraries
35
36 %description -n musepack-libs
37 Musepack SV8 (StreamVersion8) library.
38
39 %description -n musepack-libs -l pl.UTF-8
40 Biblioteka Musepack SV8 (StreamVersion8).
41
42 %package -n musepack-devel
43 Summary:        Header files for Musepack SV8 library
44 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki Musepack SV8
45 Group:          Development/Libraries
46 Requires:       musepack-libs = %{version}-%{release}
47
48 %description -n musepack-devel
49 Header files for Musepack SV8 library.
50
51 %description -n musepack-devel -l pl.UTF-8
52 Pliki nagłówkowe biblioteki Musepack SV8.
53
54 %package -n musepack-static
55 Summary:        Static version of Musepack SV8 library
56 Summary(pl.UTF-8):      Statyczna wersja biblioteki Musepack SV8
57 Group:          Development/Libraries
58 Requires:       musepack-devel = %{version}-%{release}
59
60 %description -n musepack-static
61 Static version of Musepack SV8 library.
62
63 %description -n musepack-static -l pl.UTF-8
64 Statyczna wersja biblioteki Musepack SV8.
65
66 %prep
67 %setup -q -n musepack_src_r%{rev}
68 %patch0 -p0
69 %patch1 -p1
70
71 %{__rm} -r include/mpc/.svn
72
73 %build
74 install -d build
75 cd build
76 %cmake ..
77
78 %{__make}
79
80 %install
81 rm -rf $RPM_BUILD_ROOT
82
83 %{__make} -C build install \
84         DESTDIR=$RPM_BUILD_ROOT
85
86 %clean
87 rm -rf $RPM_BUILD_ROOT
88
89 %post   -n musepack-libs -p /sbin/ldconfig
90 %postun -n musepack-libs -p /sbin/ldconfig
91
92 %files
93 %defattr(644,root,root,755)
94 %attr(755,root,root) %{_bindir}/mpcdec
95 %attr(755,root,root) %{_bindir}/mpcenc
96 %attr(755,root,root) %{_bindir}/mpc2sv8
97 %attr(755,root,root) %{_bindir}/mpcchap
98 %attr(755,root,root) %{_bindir}/mpccut
99 %attr(755,root,root) %{_bindir}/mpcgain
100 %attr(755,root,root) %{_bindir}/wavcmp
101
102 %files -n musepack-libs
103 %defattr(644,root,root,755)
104 %attr(755,root,root) %{_libdir}/libmpcdecsv8.so.*.*.*
105 %attr(755,root,root) %ghost %{_libdir}/libmpcdecsv8.so.7
106
107 %files -n musepack-devel
108 %defattr(644,root,root,755)
109 %attr(755,root,root) %{_libdir}/libmpcdecsv8.so
110 %{_includedir}/mpc
111
112 %if %{with static_libs}
113 %files -n musepack-static
114 %defattr(644,root,root,755)
115 %{_libdir}/libmpcdecsv8.a
116 %endif
This page took 0.348555 seconds and 3 git commands to generate.