]>
Commit | Line | Data |
---|---|---|
b120839e JP |
1 | # |
2 | # Conditional build: | |
2e42b28f | 3 | %bcond_without static_libs # static library |
b120839e JP |
4 | # |
5 | %define rev 475 | |
6 | Summary: Musepack SV8 tools | |
f1af212e | 7 | Summary(pl.UTF-8): Narzędzia Musepack SV8 |
b120839e JP |
8 | Name: musepack-tools |
9 | Version: 0.0.1.r%{rev} | |
4a7556c8 | 10 | Release: 5 |
b120839e JP |
11 | License: GPL v2+ |
12 | Group: Libraries | |
2e42b28f | 13 | #Source0Download: https://www.musepack.net/index.php?pg=src |
b120839e JP |
14 | Source0: http://files.musepack.net/source/musepack_src_r%{rev}.tar.gz |
15 | # Source0-md5: 754d67be67f713e54baf70fcfdb2817e | |
16 | Patch0: %{name}-libs.patch | |
2e667094 | 17 | Patch1: %{name}-fno-common.patch |
b120839e JP |
18 | URL: http://www.musepack.net/ |
19 | BuildRequires: cmake >= 2.4 | |
d1755465 JP |
20 | BuildRequires: libcuefile-devel |
21 | BuildRequires: libreplaygain-devel | |
f1af212e | 22 | Requires: musepack-libs = %{version}-%{release} |
b120839e JP |
23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
24 | ||
25 | %description | |
f1af212e JB |
26 | Musepack SV8 (StreamVersion8) tools. |
27 | ||
28 | %description -l pl.UTF-8 | |
29 | Narzędzia Musepack SV8 (StreamVersion8). | |
b120839e JP |
30 | |
31 | %package -n musepack-libs | |
f1af212e JB |
32 | Summary: Musepack SV8 library |
33 | Summary(pl.UTF-8): Biblioteka Musepack SV8 | |
b120839e JP |
34 | Group: Development/Libraries |
35 | ||
36 | %description -n musepack-libs | |
f1af212e JB |
37 | Musepack SV8 (StreamVersion8) library. |
38 | ||
39 | %description -n musepack-libs -l pl.UTF-8 | |
40 | Biblioteka Musepack SV8 (StreamVersion8). | |
b120839e JP |
41 | |
42 | %package -n musepack-devel | |
f1af212e JB |
43 | Summary: Header files for Musepack SV8 library |
44 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Musepack SV8 | |
b120839e JP |
45 | Group: Development/Libraries |
46 | Requires: musepack-libs = %{version}-%{release} | |
47 | ||
48 | %description -n musepack-devel | |
f1af212e JB |
49 | Header files for Musepack SV8 library. |
50 | ||
51 | %description -n musepack-devel -l pl.UTF-8 | |
52 | Pliki nagłówkowe biblioteki Musepack SV8. | |
b120839e JP |
53 | |
54 | %package -n musepack-static | |
f1af212e JB |
55 | Summary: Static version of Musepack SV8 library |
56 | Summary(pl.UTF-8): Statyczna wersja biblioteki Musepack SV8 | |
b120839e JP |
57 | Group: Development/Libraries |
58 | Requires: musepack-devel = %{version}-%{release} | |
59 | ||
60 | %description -n musepack-static | |
f1af212e JB |
61 | Static version of Musepack SV8 library. |
62 | ||
63 | %description -n musepack-static -l pl.UTF-8 | |
64 | Statyczna 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 |
74 | install -d build |
75 | cd build | |
76 | %cmake .. | |
77 | ||
78 | %{__make} | |
b120839e JP |
79 | |
80 | %install | |
81 | rm -rf $RPM_BUILD_ROOT | |
f1af212e | 82 | |
4a7556c8 | 83 | %{__make} -C build install \ |
b120839e JP |
84 | DESTDIR=$RPM_BUILD_ROOT |
85 | ||
86 | %clean | |
87 | rm -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 |