create devel subpackage

OBS-URL: https://build.opensuse.org/package/show/multimedia:apps/csound?expand=0&rev=8
This commit is contained in:
Pavol Rusnak 2012-01-09 01:01:55 +00:00 committed by Git OBS Bridge
parent a53b19828d
commit 4aa79fd709

View File

@ -58,6 +58,14 @@ supports an unlimited amount of oscillators and filters.
For detailed information, refer to http://www.csounds.com. For detailed information, refer to http://www.csounds.com.
%package devel
Summary: Development files for Csound
Group: System/Libraries
Requires: %{name} = %{version}
%description devel
Development files for Csound.
%prep %prep
%setup -q -n Csound%{version} %setup -q -n Csound%{version}
%patch0 %patch0
@ -94,9 +102,6 @@ rm -rf %{buildroot}%{_datadir}/doc/csound
# rename conflicting binary names # rename conflicting binary names
mv %{buildroot}%{_bindir}/sndinfo %{buildroot}%{_bindir}/csndinfo mv %{buildroot}%{_bindir}/sndinfo %{buildroot}%{_bindir}/csndinfo
mv %{buildroot}%{_bindir}/extract %{buildroot}%{_bindir}/csound-extract mv %{buildroot}%{_bindir}/extract %{buildroot}%{_bindir}/csound-extract
# remove devel files
rm -f %{buildroot}%{_libdir}/*.a
rm -rf %{buildroot}%{_includedir}
%fdupes -s %{buildroot} %fdupes -s %{buildroot}
%find_lang %{name}5 %find_lang %{name}5
@ -110,4 +115,9 @@ rm -rf %{buildroot}%{_includedir}
%{_bindir}/* %{_bindir}/*
%{_libdir}/csound/ %{_libdir}/csound/
%files devel
%defattr(-,root,root)
%{_includedir}/csound/
%{_libdir}/libcsound.a
%changelog %changelog