File libudev0-shim.spec of Package libudev0-shim
#
# spec file for package libudev0-shim
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: libudev0-shim
Version: 1
Release: 0
Summary: Dynamic library to access udev device information
License: GPL-3.0+
Group: System/Libraries
Url: https://github.com/archlinux/libudev0-shim
Source: %{name}-v%{version}.tar.xz
Source1: %{name}-rpmlintrc
BuildRequires: libudev-devel
%description
This package contains the dynamic library libudev, which provides access to
udev device information
%prep
%setup -q -n %{name}-v%{version}
%build
%if 0%{!?make_build:1}
%define make_build %{__make} %{?_smp_mflags}
%endif
%make_build
%install
install -Dm 755 libudev.so.0.0.9999 -t %{buildroot}%{_libdir}
ln -s libudev.so.0.0.9999 %{buildroot}%{_libdir}/libudev.so.0
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root,-)
%{_libdir}/libudev.so.0
%{_libdir}/libudev.so.0.0.9999
%changelog