Fix license/doc mixup
- Add isa to Requires
This commit is contained in:
parent
661272d103
commit
08e4944db9
1
.gitignore
vendored
1
.gitignore
vendored
@ -0,0 +1 @@
|
||||
/umockdev-0.8.8.tar.xz
|
91
umockdev.spec
Normal file
91
umockdev.spec
Normal file
@ -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@redhat.com> 0.8.8-3
|
||||
- Fix license/doc mixup
|
||||
- Add isa to Requires
|
||||
|
||||
* Wed Apr 29 2015 Bastien Nocera <bnocera@redhat.com> 0.8.8-2
|
||||
- Review comments
|
||||
|
||||
* Mon Apr 27 2015 Bastien Nocera <bnocera@redhat.com> 0.8.8-1
|
||||
- Initial package for Fedora
|
Loading…
Reference in New Issue
Block a user