[libmatemixer] initial build

Wolfgang Ulbrich raveit65 at fedoraproject.org
Mon Oct 27 14:29:13 UTC 2014


commit 57334b0c8ed9718fbfcac9d4d63f0a83386687f3
Author: raveit65 <chat-to-me at raveit.de>
Date:   Mon Oct 27 15:28:58 2014 +0100

    initial build

 .gitignore        |    1 +
 libmatemixer.spec |   93 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 sources           |    1 +
 3 files changed, 95 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..d74249e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/libmatemixer-1.9.0.tar.xz
diff --git a/libmatemixer.spec b/libmatemixer.spec
new file mode 100644
index 0000000..f85bcec
--- /dev/null
+++ b/libmatemixer.spec
@@ -0,0 +1,93 @@
+# 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.9
+
+# 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
+Release:     1%{?dist}
+#Release:     0.1%{?git_rel}%{?dist}
+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
+%setup -q%{!?rel_build:n %{name}-%{commit}}
+
+# needed for git snapshots
+#NOCONFIGURE=1 ./autogen.sh
+
+%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
+
+
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+
+%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 Oct 27 2014 Wolfgang Ulbrich <chat-to-me at raveit.de> - 1.9.0-1
+- initial build
+
diff --git a/sources b/sources
index e69de29..1ea6302 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+6b62a6c4ada1e61d4baa35f4e229c969  libmatemixer-1.9.0.tar.xz


More information about the scm-commits mailing list