hadess pushed to umockdev (master). "Fix license/doc mixup (..more)"

notifications at fedoraproject.org notifications at fedoraproject.org
Wed Apr 29 16:18:57 UTC 2015


>From 08e4944db9894fda62e854b0a342c918e705f4ed Mon Sep 17 00:00:00 2001
From: Bastien Nocera <hadess at hadess.net>
Date: Wed, 29 Apr 2015 18:18:43 +0200
Subject: Fix license/doc mixup

- Add isa to Requires

diff --git a/.gitignore b/.gitignore
index e69de29..4b69231 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/umockdev-0.8.8.tar.xz
diff --git a/sources b/sources
index e69de29..be19b73 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+c3b05c1781d6cabde794982aa38b1f83  umockdev-0.8.8.tar.xz
diff --git a/umockdev.spec b/umockdev.spec
new file mode 100644
index 0000000..12ae771
--- /dev/null
+++ b/umockdev.spec
@@ -0,0 +1,91 @@
+Name:             umockdev
+Version:          0.8.8
+Release:          3%{?dist}
+Summary:          Mock hardware devices
+
+Group:            Development/Libraries
+License:          LGPLv2+
+URL:              https://launchpad.net/umockdev
+Source0:          https://launchpad.net/umockdev/trunk/%{version}/+download/%{name}-%{version}.tar.xz
+
+BuildRequires:    gtk-doc
+BuildRequires:    gobject-introspection-devel
+BuildRequires:    glib2-devel
+BuildRequires:    libgudev1-devel systemd-devel
+BuildRequires:    vala
+# Required for tests
+BuildRequires:    gphoto2
+BuildRequires:    python3
+
+%description
+With this program and libraries you can easily create mock udev objects.
+This is useful for writing tests for software which talks to
+hardware devices.
+
+%package devel
+Summary: Development packages for %{name}
+Group: Development/Libraries
+Requires: %{name}%{?_isa} = %{version}-%{release}
+
+%description devel
+The %{name}-devel package contains the libraries to develop
+using %{name}.
+
+%prep
+%setup -q -n %{name}-%{version}
+
+%build
+%configure --disable-static --enable-gtk-doc
+
+# Remove rpath
+sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
+sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
+
+make %{?_smp_mflags}
+
+%install
+
+make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
+
+#nuke the .la file(s)
+find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
+
+rm -rf $RPM_BUILD_ROOT/%{_datadir}/doc/umockdev
+
+%check
+
+# Disabled for now, as the Xorg tests don't pass
+# https://github.com/martinpitt/umockdev/issues/47
+# make check
+
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+%files
+%license COPYING
+%doc README.rst
+%{_bindir}/umockdev-*
+%{_libdir}/libumockdev.so.*
+%{_libdir}/libumockdev-preload.so.*
+%{_libdir}/girepository-1.0/UMockdev-1.0.typelib
+
+%files devel
+%doc docs/script-format.txt docs/examples/battery.c docs/examples/battery.py
+%{_libdir}/libumockdev.so
+%{_libdir}/pkgconfig/umockdev-1.0.pc
+%{_datadir}/gir-1.0/UMockdev-1.0.gir
+%{_includedir}/umockdev-1.0
+%{_datadir}/gtk-doc/html/umockdev/
+%{_datadir}/vala/vapi/umockdev-1.0.vapi
+
+%changelog
+* Wed Apr 29 2015 Bastien Nocera <bnocera at redhat.com> 0.8.8-3
+- Fix license/doc mixup
+- Add isa to Requires
+
+* Wed Apr 29 2015 Bastien Nocera <bnocera at redhat.com> 0.8.8-2
+- Review comments
+
+* Mon Apr 27 2015 Bastien Nocera <bnocera at redhat.com> 0.8.8-1
+- Initial package for Fedora
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/umockdev.git/commit/?h=master&id=08e4944db9894fda62e854b0a342c918e705f4ed


More information about the scm-commits mailing list