gsound/gsound.spec

104 lines
2.7 KiB
RPMSpec

Name: gsound
Version: 1.0.2
Release: 1mamba
Summary: A small library for playing system sounds
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://live.gnome.org
Source: http://ftp.acc.umu.se/pub/GNOME/sources/gsound/1.0/gsound-%{version}.tar.xz
License: LGPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libcanberra-devel
BuildRequires: libglib-devel
BuildRequires: libltdl-devel
BuildRequires: libogg-devel
BuildRequires: libtdb-devel
BuildRequires: libvorbis-devel
## AUTOBUILDREQ-END
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
GSound is a small library for playing system sounds.
%package -n lib%{name}
Group: System/Libraries
Summary: Shared libraries for %{name}
%description -n lib%{name}
This package contains shared libraries for %{name}.
%package -n lib%{name}-devel
Group: Development/Libraries
Summary: Development files for %{name}
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
Requires: pkg-config
%description -n lib%{name}-devel
This package contains libraries and header files for developing applications that use %{name}.
%package apidocs
Group: Documentation
Summary: %{name} API documentation
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
Requires: gtk-doc
%description apidocs
This package includes the %{name} API documentation.
%debug_package
%prep
%setup -q
%build
%configure --enable-gtk-doc
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post -n lib%{name} -p /sbin/ldconfig
%postun -n lib%{name} -p /sbin/ldconfig
%files
%defattr(-,root,root)
%{_bindir}/gsound-play
%files -n lib%{name}
%defattr(-,root,root)
%{_libdir}/libgsound.so.*
%{_libdir}/girepository-1.0/GSound-1.0.typelib
%doc COPYING
%files -n lib%{name}-devel
%defattr(-,root,root)
%{_includedir}/gsound-attr.h
%{_includedir}/gsound-context.h
%{_includedir}/gsound.h
%{_libdir}/libgsound.a
%{_libdir}/libgsound.la
%{_libdir}/libgsound.so
%{_libdir}/pkgconfig/gsound.pc
%{_datadir}/gir-1.0/GSound-1.0.gir
%{_datadir}/vala/vapi/gsound.deps
%{_datadir}/vala/vapi/gsound.vapi
%doc ChangeLog README
%files apidocs
%defattr(-,root,root)
%dir %{_datadir}/gtk-doc/html/gsound
%{_datadir}/gtk-doc/html/gsound/*
%{_datadir}/gtk-doc/html/gsound/up.png
%changelog
* Thu Oct 31 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 1.0.2-1mamba
- package created using the webbuild interface