%global srcversion 3_0_0 %global stbversion 2.8.3 Name: liboobs Version: %(v='%{srcversion}'; echo $v |tr _ . ) Release: 1%{?dist} Summary: Wrapping library to the System Tools Backends License: GPLv2+ URL: https://projects.gnome.org/gst Source0: https://github.com/GNOME/%{name}/archive/LIBOOBS_%{srcversion}.tar.gz BuildRequires: pkgconfig(glib-2.0) BuildRequires: pkgconfig(dbus-glib-1) BuildRequires: pkgconfig(system-tools-backends-2.0) >= %{stbversion} BuildRequires: gnome-common BuildRequires: gtk-doc %description Liboobs is a wrapping library to the System Tools Backends, it will provide easy to access GObjects to system configuration details, like users, groups and network interfaces, it will handle sessions with the backend and data consistency, too. %package devel Summary: Development files for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} %description devel The %{name}-devel package contains libraries and header files for developing applications that use %{name}. %prep %setup -qn%{name}-LIBOOBS_%{srcversion} # use latest upstream version, not any other distro version sed -i -r 's:(STB_REQUIRED=).*:\1%{stbversion}:' configure.in %build ./autogen.sh --disable-static %make_build # reconfigure to build doc, not possible in one run with binaries %configure --enable-gtk-doc --enable-gtk-doc-html --with-html-dir=html %make_build -C doc %install %make_install find %{buildroot} -name '*.la' -print -delete %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %license COPYING %doc AUTHORS ChangeLog MAINTAINERS NEWS README %{_libdir}/*.so.* %files devel %{_includedir}/* %{_libdir}/*.so %{_libdir}/pkgconfig/%{name}-1.pc %doc doc/reference/html/* %changelog * Tue Jun 7 2016 Raphael Groner - 3.0.0-1 - initial