90 lines
2.4 KiB
RPMSpec
90 lines
2.4 KiB
RPMSpec
|
Name: libgudev
|
||
|
Version: 230
|
||
|
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: libcap-devel
|
||
|
BuildRequires: libdw-devel
|
||
|
BuildRequires: libffi-devel
|
||
|
BuildRequires: libglib-devel
|
||
|
BuildRequires: libselinux-devel
|
||
|
BuildRequires: libudev-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
|
||
|
%make
|
||
|
|
||
|
%install
|
||
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||
|
%makeinstall
|
||
|
|
||
|
%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.la
|
||
|
%{_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
|
||
|
* Sun Jun 21 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 230-1mamba
|
||
|
- package created using the webbuild interface
|