# Conditional for release and snapshot builds. Uncomment for release-builds. %global rel_build 1 # This is needed, because src-url contains branched part of versioning-scheme. %global branch 1.22 # Settings used for build from snapshots. %{!?rel_build:%global commit ee0a62c8759040d84055425954de1f860bac8652} %{!?rel_build:%global commit_date 20140223} %{!?rel_build:%global shortcommit %(c=%{commit};echo ${c:0:7})} %{!?rel_build:%global git_ver git%{commit_date}-%{shortcommit}} %{!?rel_build:%global git_rel .git%{commit_date}.%{shortcommit}} %{!?rel_build:%global git_tar %{name}-%{version}-%{git_ver}.tar.xz} Name: libmatemixer Summary: Mixer library for MATE desktop Version: %{branch}.0 %if 0%{?rel_build} Release: 1%{?dist} %else Release: 0.8%{?git_rel}%{?dist} %endif License: GPLv2+ URL: http://mate-desktop.org # for downloading the tarball use 'spectool -g -R libmatemixer.spec' # Source for release-builds. %{?rel_build:Source0: http://pub.mate-desktop.org/releases/%{branch}/%{name}-%{version}.tar.xz} # Source for snapshot-builds. %{!?rel_build:Source0: http://git.mate-desktop.org/%%{name}/snapshot/%%{name}-%%{commit}.tar.xz#/%%{git_tar}} BuildRequires: mate-common BuildRequires: pulseaudio-libs-devel BuildRequires: alsa-lib-devel %description libmatemixer is a mixer library for MATE desktop. It provides an abstract API allowing access to mixer functionality available in the PulseAudio, ALSA and OSS sound systems. %package devel Summary: Development libraries for libmatemixer Requires: %{name}%{?_isa} = %{version}-%{release} %description devel Development libraries for libmatemixer %prep %if 0%{?rel_build} %autosetup -p1 %else %autosetup -n %{name}-%{commit} -p1 %endif %if 0%{?rel_build} #NOCONFIGURE=1 ./autogen.sh %else # 0%{?rel_build} # for snapshots # needed for git snapshots NOCONFIGURE=1 ./autogen.sh %endif # 0%{?rel_build} %build %configure \ --disable-static \ --enable-pulseaudio \ --enable-alsa \ --enable-gtk-doc #drop unneeded direct library deps with --as-needed # libtool doesn't make this easy, so we do it the hard way sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0 /g' libtool make %{?_smp_mflags} V=1 %install %{make_install} find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';' %find_lang %{name} --with-gnome --all-name %files -f %{name}.lang %doc AUTHORS COPYING NEWS README %{_libdir}/libmatemixer.so.* %{_libdir}/libmatemixer/ %files devel %{_includedir}/mate-mixer/ %{_libdir}/pkgconfig/* %{_libdir}/*.so %{_datadir}/gtk-doc/html/libmatemixer/ %changelog * Mon Mar 04 2019 Wolfgang Ulbrich - 1.22.0-1 - update to 1.22.0 * Fri Feb 01 2019 Fedora Release Engineering - 1.20.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Fri Jul 13 2018 Fedora Release Engineering - 1.20.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Wed Jun 13 2018 Wolfgang Ulbrich - 1.20.1-1 - update to 1.20.1 release * Sat Feb 10 2018 Wolfgang Ulbrich - 1.20.0-1 - update to 1.20.0 release - switch to using autosetup * Wed Feb 07 2018 Fedora Release Engineering - 1.19.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Sun Oct 22 2017 Wolfgang Ulbrich - 1.19.0-1 - update to 1.19.0 release * Thu Aug 03 2017 Fedora Release Engineering - 1.18.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Wed Jul 26 2017 Fedora Release Engineering - 1.18.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Tue Mar 14 2017 Wolfgang Ulbrich - 1.18.0-1 - update to 1.18.0 release * Fri Feb 10 2017 Fedora Release Engineering - 1.17.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Sat Dec 03 2016 Wolfgang Ulbrich - 1.17.0-1 - update to 1.17.0 release * Wed Sep 21 2016 Wolfgang Ulbrich - 1.16.0-1 - update to 1.16.0 release * Thu Jun 09 2016 Wolfgang Ulbrich - 1.15.0-1 - update to 1.15.0 release * Tue Apr 05 2016 Wolfgang Ulbrich - 1.14.0-1 - update to 1.14.0 release * Sun Feb 07 2016 Wolfgang Ulbrich - 1.13.0-1 - update to 1.13.0 release * Thu Feb 04 2016 Fedora Release Engineering - 1.12.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Fri Dec 04 2015 Wolfgang Ulbrich - 1.12.1-1 - update to 1.12.1 release * Fri Nov 06 2015 Wolfgang Ulbrich - 1.12.0-1 - update to 1.12.0 release * Wed Oct 21 2015 Wolfgang Ulbrich - 1.11.0-1 - update to 1.11.0 release * Wed Jun 17 2015 Fedora Release Engineering - 1.10.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Mon Apr 06 2015 Wolfgang Ulbrich - 1.10.0-1 - update to 1.10.0 release * Wed Feb 25 2015 Wolfgang Ulbrich - 1.9.90.1 - update to 1.9.90 release * Sun Nov 23 2014 Wolfgang Ulbrich - 1.9.2-1 - update to 1.9.2 release * Tue Nov 11 2014 Wolfgang Ulbrich - 1.9.1-1 - update to 1.9.1 release * Mon Oct 27 2014 Wolfgang Ulbrich - 1.9.0-1 - initial build