libgudev/libgudev.spec

102 lines
2.7 KiB
RPMSpec
Raw Normal View History

Name: libgudev
Version: 237
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: libglib-devel
BuildRequires: libudev-devel
## AUTOBUILDREQ-END
%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}
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
%meson \
-Dgtk_doc=true
%meson_build
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%meson_install
#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}/vala/vapi/gudev-1.0.*
%{_datadir}/gir-1.0/GUdev-1.0.gir
%doc NEWS
%files apidocs
%defattr(-,root,root)
%dir %{_datadir}/gtk-doc/html/gudev
%{_datadir}/gtk-doc/html/gudev/*
%changelog
* Mon Aug 23 2021 Automatic Build System <autodist@mambasoft.it> 237-1mamba
- automatic version update by autodist
* Mon Mar 22 2021 Automatic Build System <autodist@mambasoft.it> 236-1mamba
- automatic version update by autodist
* 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