Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:fschuett
libudev0
libudev0.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File libudev0.spec of Package libudev0
# # spec file for package libudev0 # # Copyright (c) 2021 SUSE LLC # # 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 https://bugs.opensuse.org/ # Name: libudev0 URL: http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html Version: 182 Release: 0 Summary: Dynamic library to access udev device information License: LGPL-2.1-or-later Group: System/Libraries BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: autoconf BuildRequires: automake BuildRequires: glib2-devel BuildRequires: gperf BuildRequires: libacl-devel BuildRequires: libblkid-devel >= 2.20 BuildRequires: libkmod-devel > 5 BuildRequires: libselinux-devel BuildRequires: libsepol-devel BuildRequires: libtool #BuildRequires: libusb-devel BuildRequires: gcc %if 0%{?sle_version} >= 150300 BuildRequires: hwdata %else BuildRequires: pciutils-ids %endif BuildRequires: pkg-config BuildRequires: usbutils Source0: ftp://ftp.kernel.org/pub/linux/utils/kernel/hotplug/udev-%{version}.tar.bz2 Source99: baselibs.conf # PATCH-FIX-OPENSUSE 0001-Reinstate-TIMEOUT-handling.patch Patch1: 0001-Reinstate-TIMEOUT-handling.patch # upstream patch Patch4: 0004-fix-unknown-type.patch # PATCH-FIX-OPENSUSE 0015-udev-secure-getenv.patch Patch15: 0015-udev-secure-getenv.patch # PATCH-FIX-UPSTREAM 0017-udev-add-some-O_CLOEXEC.patch Patch17: 0017-udev-add-some-O_CLOEXEC.patch # PATCH: > 42.2 keycodes are in input-event-codes.h Patch20: libudev0-keymaps-from-input-event-codes.patch # PATCH: > 42.3 lookup_key changed Patch21: libudev0-lookup_key.patch # PATCH: > 15.2 sysmacros needs to be included Patch22: %{name}-add-sysmacros.patch # Upstream First - Policy: # Never add any patches to this package without the upstream commit id # in the patch. Any patches added here without a very good reason to make # an exception will be silently removed with the next version update. %description This package contains the dynamic library libudev, which provides access to udev device information %prep %setup -q -n udev-%{version} # patching %patch1 -p1 %patch4 -p1 %patch15 -p1 %patch17 -p1 %if 0%{?sle_version} > 120100 || 0%{?suse_version} > 1320 %patch20 -p1 %endif %if 0%{?sle_version} > 120300 || 0%{?suse_version} >= 1500 %patch21 -p1 %endif %if 0%{?sle_version} > 150200 || 0%{?suse_version} >= 1520 %patch22 -p1 %endif %build export V=1 export USBUTILS_CFLAGS='x' export USBUTILS_LIBS='x' %configure \ --disable-introspection \ --disable-gudev \ --sysconfdir=%{_sysconfdir} \ --sbindir=/sbin \ --libexecdir=/lib \ --docdir=%{_docdir}/udev \ --with-selinux \ CFLAGS="$RPM_OPT_FLAGS" # Add -lrt since configure does not catch this. make %{?_smp_mflags} LIBS="-lrt" %install make DESTDIR=$RPM_BUILD_ROOT install # we are only interested in shared library rm -f $RPM_BUILD_ROOT/%{_libdir}/libudev.{la,so} rm -rf $RPM_BUILD_ROOT{/lib/udev,%{_sysconfdir},%{_datadir},%{_bindir},%{_includedir},%{_libdir}/pkgconfig,/usr/lib/systemd} %post -n libudev0 -p /sbin/ldconfig %postun -n libudev0 -p /sbin/ldconfig %clean rm -rf $RPM_BUILD_ROOT %files -n libudev0 %defattr(-,root,root) /%{_libdir}/libudev.so.* %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor