[rubygem-gstreamer] 2.1.0
Mamoru TASAKA
mtasaka at fedoraproject.org
Thu Jan 16 14:03:13 UTC 2014
commit 29e09bd78f7ee38ac4fc037a4521c0e278e05614
Author: Mamoru TASAKA <mtasaka at fedoraproject.org>
Date: Thu Jan 16 23:03:26 2014 +0900
2.1.0
.gitignore | 1 +
rubygem-gstreamer.spec | 36 +++++++++++++++++++-----------------
sources | 2 +-
3 files changed, 21 insertions(+), 18 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 2cbf29b..126f1a9 100644
--- a/.gitignore
+++ b/.gitignore
@@ -13,3 +13,4 @@
/gstreamer-1.2.5.gem
/gstreamer-1.2.6.gem
/gstreamer-2.0.2.gem
+/gstreamer-2.1.0.gem
diff --git a/rubygem-gstreamer.spec b/rubygem-gstreamer.spec
index 1afc0b8..c81e2f5 100644
--- a/rubygem-gstreamer.spec
+++ b/rubygem-gstreamer.spec
@@ -3,13 +3,13 @@
%global gem_name gstreamer
%global gemsoname gst
-%global glibminver 2.0.0
+%global glibminver 2.1.0
%global obsoleteevr 0.90.7-1.999
Summary: Ruby binding of GStreamer
Name: rubygem-%{gem_name}
-Version: 2.0.2
+Version: 2.1.0
Release: 1%{?dist}
Group: Development/Languages
# from README
@@ -21,9 +21,9 @@ Requires: ruby(release)
BuildRequires: ruby(release)
BuildRequires: rubygems-devel
-BuildRequires: rubygem-glib2-devel%{?_isa} >= %{glibminver}
+BuildRequires: rubygem-glib2-devel >= %{glibminver}
BuildRequires: rubygem-gobject-introspection-devel%{?isa} >= %{glibminver}
-BuildRequires: ruby-devel%{?_isa}
+BuildRequires: ruby-devel
BuildRequires: pkgconfig(gstreamer-1.0)
Requires: rubygem(glib2) >= %{glibminver}
Requires: rubygem(cairo)
@@ -60,16 +60,13 @@ Header files and libraries for building a extension library for the
rubygem-%{gem_name}
%prep
-%setup -q -c -T
-mkdir -p .%{gem_dir}
+gem unpack %{SOURCE0}
+%setup -q -D -T -n %{gem_name}-%{version}
-export CONFIGURE_ARGS="--with-cflags='%{optflags}'"
-export CONFIGURE_ARGS="$CONFIGURE_ARGS --with-pkg-config-dir=$(pwd)%{_libdir}/pkgconfig"
-%gem_install -n %{SOURCE0}
-
-find . -name \*.gem | xargs chmod 0644
+gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec
-pushd .%{gem_instdir}
+# Allow ruby-gnome2 no less than ones
+sed -i -e 's|= 2\.1\.0|>= 2.1.0|' %{gem_name}.gemspec
# Fix wrong shebang
#grep -rl /usr/local/bin sample | \
@@ -79,11 +76,12 @@ pushd .%{gem_instdir}
grep -rl '#!.*/usr/bin' sample | \
xargs sed -i -e '\@#![ ]*/usr/bin at d'
find sample/ -name \*.rb | xargs chmod 0644
-popd
%build
-# Move C extension library to some private directory
-pushd .%{gem_instdir}
+export CONFIGURE_ARGS="--with-cflags='%{optflags}'"
+export CONFIGURE_ARGS="$CONFIGURE_ARGS --with-pkg-config-dir=$(pwd)%{_libdir}/pkgconfig"
+gem build %{gem_name}.gemspec
+%gem_install
%install
# Once copy all
@@ -111,6 +109,7 @@ popd
%check
pushd .%{gem_instdir}
+popd
%files
@@ -126,7 +125,7 @@ pushd .%{gem_instdir}
%dir %{gem_extdir_mri}/lib
%{gem_extdir_mri}/lib/%{gem_name}.so
-%{gem_cache}
+%exclude %{gem_cache}
%{gem_spec}
%files devel
@@ -136,10 +135,13 @@ pushd .%{gem_instdir}
%files doc
%defattr(-,root,root,-)
%{gem_dir}/doc/%{gem_name}-%{version}
-%{gem_instdir}/Rakefile
+%exclude %{gem_instdir}/Rakefile
%{gem_instdir}/sample/
%changelog
+* Thu Jan 16 2014 Mamoru TASAKA <mtasaka at fedoraproject.org> - 2.1.0-1
+- 2.1.0
+
* Fri Aug 16 2013 Mamoru TASAKA <mtasaka at fedoraproject.org> - 2.0.2-1
- 2.0.2
diff --git a/sources b/sources
index a3a3c19..ac7b18c 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-dab355ad64811d64bccc6aa6dd879a5e gstreamer-2.0.2.gem
+839c11ce18c1bb9a85b02d1b8a72f8e1 gstreamer-2.1.0.gem
More information about the scm-commits
mailing list