7 |
|
|
8 |
%define _prefix @prefix@ |
%define _prefix @prefix@ |
9 |
|
|
10 |
|
%if %{defined fedora} |
11 |
|
%global debug_package %{nil} |
12 |
|
%endif |
13 |
|
|
14 |
Summary: LinuxSampler control protocol API |
Summary: LinuxSampler control protocol API |
15 |
Name: %{name} |
Name: %{name} |
16 |
Version: %{version} |
Version: %{version} |
36 |
|
|
37 |
%package -n %{_soname} |
%package -n %{_soname} |
38 |
Summary: LinuxSampler control protocol API library |
Summary: LinuxSampler control protocol API library |
39 |
Group: Productivity/Multimedia/Sound |
Group: System/Libraries |
40 |
Provides: %{name} |
Provides: %{name} |
41 |
|
|
42 |
%description -n %{_soname} |
%description -n %{_soname} |
58 |
[ -x ./autogen.sh ] && ./autogen.sh |
[ -x ./autogen.sh ] && ./autogen.sh |
59 |
|
|
60 |
%build |
%build |
61 |
|
%if %{undefined fedora} |
62 |
|
export CFLAGS="-ffat-lto-objects" |
63 |
|
%endif |
64 |
%configure |
%configure |
65 |
%__make %{?_smp_mflags} |
%__make %{?_smp_mflags} |
66 |
|
|
67 |
%install |
%install |
68 |
%__make DESTDIR="%{buildroot}" install |
%__make DESTDIR="%{buildroot}" install |
|
find %{buildroot} -name "lib*.*a" -ls -delete |
|
69 |
|
|
70 |
%clean |
%clean |
71 |
[ -d "%{buildroot}" -a "%{buildroot}" != "/" ] && %__rm -rf "%{buildroot}" |
[ -d "%{buildroot}" -a "%{buildroot}" != "/" ] && %__rm -rf "%{buildroot}" |
85 |
%defattr(-,root,root) |
%defattr(-,root,root) |
86 |
%doc doc/html/* |
%doc doc/html/* |
87 |
%{_libdir}/liblscp.so |
%{_libdir}/liblscp.so |
88 |
#{_libdir}/liblscp.a |
%{_libdir}/liblscp.a |
89 |
#{_libdir}/liblscp.la |
%{_libdir}/liblscp.la |
90 |
%{_libdir}/pkgconfig/lscp.pc |
%{_libdir}/pkgconfig/lscp.pc |
91 |
%dir %{_includedir}/lscp |
%dir %{_includedir}/lscp |
92 |
%{_includedir}/lscp/*.h |
%{_includedir}/lscp/*.h |