Accepting request 351100 from home:Zaitor:branches:GNOME:Factory

First stab at split

OBS-URL: https://build.opensuse.org/request/show/351100
OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/libcanberra?expand=0&rev=62
This commit is contained in:
Dominique Leuenberger 2015-12-28 21:08:42 +00:00 committed by Git OBS Bridge
parent ea808f8412
commit 3457c73e0d
2 changed files with 53 additions and 12 deletions

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Mon Dec 28 16:43:10 UTC 2015 - zaitor@opensuse.org
- Split out libcanberra-gtk-devel and libcanberra-gtk3-devel
sub-packages, this will make it possible for us to build
dependant packages without having to pull in both gtk2 and gtk3.
-------------------------------------------------------------------
Fri Nov 6 00:54:02 UTC 2015 - zaitor@opensuse.org

View File

@ -188,11 +188,7 @@ require a different sound-theme for it to be operational.
%package devel
Summary: Portable sound event library -- Development files
Group: Development/Libraries/C and C++
Requires: libcanberra-gtk0 = %{version}
Requires: libcanberra0 = %{version}
%if %build_gtk3
Requires: libcanberra-gtk3-0 = %{version}
%endif
%description devel
libcanberra is an implementation of the XDG Sound Theme and Name
@ -202,6 +198,39 @@ designed to be portable.
This package provides the development files for libcanberra.
%if %build_gtk3
%package -n libcanberra-gtk3-devel
Summary: Portable sound event library -- Development files
Group: Development/Libraries/C and C++
Requires: libcanberra-devel
Requires: libcanberra-gtk3-0 = %{version}
Requires: libcanberra0 = %{version}
%endif
%description -n libcanberra-gtk3-devel
libcanberra is an implementation of the XDG Sound Theme and Name
Specifications, for generating event sounds on free desktops, such as
GNOME. It comes with several backends (ALSA, PulseAudio, null) and is
designed to be portable.
This package provides the development files for libcanberra-gtk3
%package -n libcanberra-gtk-devel
Summary: Portable sound event library -- Development files
Group: Development/Libraries/C and C++
Requires: libcanberra-devel
Requires: libcanberra-gtk0 = %{version}
Requires: libcanberra0 = %{version}
%description -n libcanberra-gtk-devel
libcanberra is an implementation of the XDG Sound Theme and Name
Specifications, for generating event sounds on free desktops, such as
GNOME. It comes with several backends (ALSA, PulseAudio, null) and is
designed to be portable.
This package provides the development files for libcanberra-gtk2
%prep
%setup -q
%patch0 -p1
@ -294,21 +323,26 @@ rm -rf %{buildroot}
%dir %{_datadir}/gdm/autostart/LoginWindow
%{_datadir}/gdm/autostart/LoginWindow/libcanberra-ready-sound.desktop
%files -n libcanberra-gtk-devel
%defattr(-,root,root)
%{_libdir}/libcanberra-gtk.so
%{_libdir}/pkgconfig/libcanberra-gtk.pc
%if %build_gtk3
%files -n libcanberra-gtk3-devel
%defattr(-,root,root)
%{_libdir}/libcanberra-gtk3.so
%{_libdir}/pkgconfig/libcanberra-gtk3.pc
%endif
%files devel
%defattr(-,root,root)
%doc %{_datadir}/gtk-doc/html/libcanberra
%{_includedir}/canberra.h
%{_includedir}/canberra-gtk.h
%{_libdir}/libcanberra.so
%{_libdir}/libcanberra-gtk.so
%if %build_gtk3
%{_libdir}/libcanberra-gtk3.so
%endif
%{_libdir}/pkgconfig/libcanberra.pc
%{_libdir}/pkgconfig/libcanberra-gtk.pc
%if %build_gtk3
%{_libdir}/pkgconfig/libcanberra-gtk3.pc
%endif
%dir %{_datadir}/vala
%dir %{_datadir}/vala/vapi
%{_datadir}/vala/vapi/*.vapi