]> git.pld-linux.org Git - packages/musepack-tools.git/blame - musepack-tools.spec
fix build with gcc 10 (from gentoo)
[packages/musepack-tools.git] / musepack-tools.spec
CommitLineData
b120839e
JP
1#
2# Conditional build:
2e42b28f 3%bcond_without static_libs # static library
b120839e
JP
4#
5%define rev 475
6Summary: Musepack SV8 tools
f1af212e 7Summary(pl.UTF-8): Narzędzia Musepack SV8
b120839e
JP
8Name: musepack-tools
9Version: 0.0.1.r%{rev}
4a7556c8 10Release: 5
b120839e
JP
11License: GPL v2+
12Group: Libraries
2e42b28f 13#Source0Download: https://www.musepack.net/index.php?pg=src
b120839e
JP
14Source0: http://files.musepack.net/source/musepack_src_r%{rev}.tar.gz
15# Source0-md5: 754d67be67f713e54baf70fcfdb2817e
16Patch0: %{name}-libs.patch
2e667094 17Patch1: %{name}-fno-common.patch
b120839e
JP
18URL: http://www.musepack.net/
19BuildRequires: cmake >= 2.4
d1755465
JP
20BuildRequires: libcuefile-devel
21BuildRequires: libreplaygain-devel
f1af212e 22Requires: musepack-libs = %{version}-%{release}
b120839e
JP
23BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25%description
f1af212e
JB
26Musepack SV8 (StreamVersion8) tools.
27
28%description -l pl.UTF-8
29Narzędzia Musepack SV8 (StreamVersion8).
b120839e
JP
30
31%package -n musepack-libs
f1af212e
JB
32Summary: Musepack SV8 library
33Summary(pl.UTF-8): Biblioteka Musepack SV8
b120839e
JP
34Group: Development/Libraries
35
36%description -n musepack-libs
f1af212e
JB
37Musepack SV8 (StreamVersion8) library.
38
39%description -n musepack-libs -l pl.UTF-8
40Biblioteka Musepack SV8 (StreamVersion8).
b120839e
JP
41
42%package -n musepack-devel
f1af212e
JB
43Summary: Header files for Musepack SV8 library
44Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Musepack SV8
b120839e
JP
45Group: Development/Libraries
46Requires: musepack-libs = %{version}-%{release}
47
48%description -n musepack-devel
f1af212e
JB
49Header files for Musepack SV8 library.
50
51%description -n musepack-devel -l pl.UTF-8
52Pliki nagłówkowe biblioteki Musepack SV8.
b120839e
JP
53
54%package -n musepack-static
f1af212e
JB
55Summary: Static version of Musepack SV8 library
56Summary(pl.UTF-8): Statyczna wersja biblioteki Musepack SV8
b120839e
JP
57Group: Development/Libraries
58Requires: musepack-devel = %{version}-%{release}
59
60%description -n musepack-static
f1af212e
JB
61Static version of Musepack SV8 library.
62
63%description -n musepack-static -l pl.UTF-8
64Statyczna wersja biblioteki Musepack SV8.
b120839e
JP
65
66%prep
67%setup -q -n musepack_src_r%{rev}
68%patch0 -p0
2e667094 69%patch1 -p1
b120839e 70
4a7556c8
JB
71%{__rm} -r include/mpc/.svn
72
b120839e 73%build
4a7556c8
JB
74install -d build
75cd build
76%cmake ..
77
78%{__make}
b120839e
JP
79
80%install
81rm -rf $RPM_BUILD_ROOT
f1af212e 82
4a7556c8 83%{__make} -C build install \
b120839e
JP
84 DESTDIR=$RPM_BUILD_ROOT
85
86%clean
87rm -rf $RPM_BUILD_ROOT
88
f1af212e
JB
89%post -n musepack-libs -p /sbin/ldconfig
90%postun -n musepack-libs -p /sbin/ldconfig
b120839e
JP
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.*.*.*
f1af212e 105%attr(755,root,root) %ghost %{_libdir}/libmpcdecsv8.so.7
b120839e
JP
106
107%files -n musepack-devel
108%defattr(644,root,root,755)
109%attr(755,root,root) %{_libdir}/libmpcdecsv8.so
f1af212e 110%{_includedir}/mpc
b120839e
JP
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.065417 seconds and 4 git commands to generate.