libgudev/libgudev.spec

106 lines
2.9 KiB
RPMSpec
Raw Normal View History

Name: libgudev
Version: 234
Release: 1mamba
Summary: A library providing GObject bindings for libudev
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://wiki.gnome.org/Projects/libgudev
Source: https://download.gnome.org/sources/libgudev/%{version}/libgudev-%{version}.tar.xz
License: LGPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libblkid-devel
BuildRequires: libffi-devel
BuildRequires: libglib-devel
BuildRequires: libmount-devel
BuildRequires: libpcre-devel
BuildRequires: libselinux-devel
BuildRequires: libsepol-devel
BuildRequires: libudev-devel
BuildRequires: libuuid-devel
BuildRequires: libz-devel
## AUTOBUILDREQ-END
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
This is libgudev, a library providing GObject bindings for libudev. It used to be part of udev, then merged into systemd. It's now a project on its own.
%package devel
Group: Development/Libraries
Summary: Development files for %{name}
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
## note: you can add this requirement if .pc files are provided by this package
Requires: pkg-config
%description devel
This package contains libraries and header files for developing applications that use %{name}.
%package apidocs
Group: Documentation
Summary: %{name} API documentation
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
Requires: gtk-doc
%description apidocs
This package includes the %{name} API documentation.
%debug_package
%prep
%setup -q
%build
%configure \
--enable-gtk-doc \
--disable-umockdev
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall
rm -f %{buildroot}%{_libdir}/libgudev-1.0.la
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%{_libdir}/libgudev-1.0.so.*
%{_libdir}/girepository-1.0/GUdev-1.0.typelib
%doc COPYING
%files devel
%defattr(-,root,root)
%dir %{_includedir}/gudev-1.0
%dir %{_includedir}/gudev-1.0/gudev
%{_includedir}/gudev-1.0/gudev/gudev*.h
%{_libdir}/libgudev-1.0.so
%{_libdir}/pkgconfig/gudev-1.0.pc
%{_datadir}/gir-1.0/GUdev-1.0.gir
%doc NEWS README
%files apidocs
%defattr(-,root,root)
%dir %{_datadir}/gtk-doc/html/gudev
%{_datadir}/gtk-doc/html/gudev/*
%changelog
* Wed Sep 16 2020 Automatic Build System <autodist@mambasoft.it> 234-1mamba
- automatic version update by autodist
* Mon Aug 05 2019 Automatic Build System <autodist@mambasoft.it> 233-1mamba
- automatic version update by autodist
* Sun Nov 19 2017 Silvan Calarco <silvan.calarco@mambasoft.it> 232-1mamba
- update to 232
* Sun Jun 21 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 230-1mamba
- package created using the webbuild interface