Name:          libdrm
Epoch:         1
Version:       2.4.124
Release:       1mamba
Summary:       A library interface to Linux DRM (Direct Rendering Manager)
Group:         System/Libraries
Vendor:        openmamba
Distribution:  openmamba
Packager:      Silvan Calarco <silvan.calarco@mambasoft.it>
URL:           https://dri.freedesktop.org/wiki/
Source:        http://dri.freedesktop.org/libdrm/libdrm-%{version}.tar.xz
Patch0:        %{name}-2.4.37-nouveau-1.patch
License:       MIT
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libpciaccess-devel
## AUTOBUILDREQ-END
Requires:      %{name}-common = %{?epoch:%epoch:}%{version}-%{release}

%description
A library interface to Linux DRM (Direct Rendering Manager).

%package common
Summary:       Common file provided with %{name}
Group:         System/Libraries

%description common
A library interface to Linux DRM (Direct Rendering Manager).
This package contains common files provided with %{name}.

%package devel
Summary:       Devel package for %{name}
Group:         Development/Libraries
Requires:      %{name} = %{?epoch:%epoch:}%{version}-%{release}

%description devel
A library interface to Linux DRM (Direct Rendering Manager).
This package contains static libraries and header files needed for development.

%debug_package

%prep
%setup -q
#%patch0 -p1

%build
%meson \
   -Dudev=true \
   -Domap=enabled \
   -Dexynos=enabled

#%ifnarch arm aarch64
#   -Dintel=enabled \
#%endif

#% configure \
#   --enable-udev \
#   --enable-vmwgfx-experimental-api \
#   --enable-omap-experimental-api \
#   --enable-exynos-experimental-api \
#   --enable-intel \
#   --enable-radeon \
#   --enable-nouveau


%meson_build

%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%meson_install

%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"

%files
%defattr(-,root,root)
%{_libdir}/libdrm.so.*
%{_libdir}/libdrm_amdgpu.so.*
%ifarch %{ix86} x86_64
%{_libdir}/libdrm_intel.so.*
%endif
%{_libdir}/libdrm_nouveau.so.*
%{_libdir}/libdrm_radeon.so.*
%{_libdir}/libdrm_exynos.so.*
%{_libdir}/libdrm_omap.so.*
%ifarch arm aarch64
%{_libdir}/libdrm_freedreno.so.*
%{_libdir}/libdrm_etnaviv.so.*
%endif

%files common
%defattr(-,root,root)
%{_datadir}/libdrm/amdgpu.ids

%files devel
%defattr(-,root,root)
%dir %{_includedir}/libdrm
%{_includedir}/libdrm/*.h
%dir %{_includedir}/exynos
%{_includedir}/exynos/*.h
%dir %{_includedir}/libdrm/nouveau
%{_includedir}/libdrm/nouveau/*.h
%dir %{_includedir}/libdrm/nouveau/nvif
%{_includedir}/libdrm/nouveau/nvif/*.h
%dir %{_includedir}/omap
%{_includedir}/omap/omap_drm.h
%{_includedir}/*.h
%{_libdir}/libdrm.so
%ifarch arm aarch64
%dir %{_includedir}/freedreno
%{_includedir}/freedreno/freedreno_drmif.h
%{_includedir}/freedreno/freedreno_ringbuffer.h
%{_libdir}/libdrm_freedreno.so
%{_libdir}/libdrm_etnaviv.so
%endif
%{_libdir}/libdrm_amdgpu.so
%{_libdir}/libdrm_exynos.so
%ifnarch arm aarch64
%{_libdir}/libdrm_intel.so
%endif
%{_libdir}/libdrm_nouveau.so
%{_libdir}/libdrm_omap.so
%{_libdir}/libdrm_radeon.so
%{_libdir}/pkgconfig/*.pc
%{_mandir}/man3/drmAvailable.3*
%{_mandir}/man3/drmHandleEvent.3*
%{_mandir}/man3/drmModeGetResources.3*
%{_mandir}/man7/drm-kms.7*
%{_mandir}/man7/drm-memory.7*
%{_mandir}/man7/drm.7*
#%doc README

%changelog
* Thu Dec 05 2024 Automatic Build System <autodist@openmamba.org> 2.4.124-1mamba
- automatic version update by autodist

* Tue Aug 27 2024 Automatic Build System <autodist@openmamba.org> 2.4.123-1mamba
- automatic version update by autodist

* Wed Jun 26 2024 Automatic Build System <autodist@openmamba.org> 2.4.122-1mamba
- automatic version update by autodist

* Sat Jun 01 2024 Automatic Build System <autodist@openmamba.org> 2.4.121-1mamba
- automatic version update by autodist

* Sat Jan 13 2024 Automatic Build System <autodist@openmamba.org> 2.4.120-1mamba
- automatic version update by autodist

* Thu Dec 21 2023 Automatic Build System <autodist@mambasoft.it> 2.4.119-1mamba
- automatic version update by autodist

* Mon Nov 27 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 2.4.118-2mamba
- rebuilt

* Tue Nov 21 2023 Automatic Build System <autodist@mambasoft.it> 2.4.118-1mamba
- automatic version update by autodist

* Sat Oct 21 2023 Automatic Build System <autodist@mambasoft.it> 2.4.117-1mamba
- automatic version update by autodist

* Wed Aug 23 2023 Automatic Build System <autodist@mambasoft.it> 2.4.116-1mamba
- automatic version update by autodist

* Thu Feb 09 2023 Automatic Build System <autodist@mambasoft.it> 2.4.115-1mamba
- automatic version update by autodist

* Fri Nov 04 2022 Automatic Build System <autodist@mambasoft.it> 2.4.114-1mamba
- automatic version update by autodist

* Wed Sep 21 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 2.4.113-2mamba
- add a -common subpackage for multilib cohexistence

* Fri Sep 16 2022 Automatic Build System <autodist@mambasoft.it> 2.4.113-1mamba
- automatic version update by autodist

* Fri Jul 08 2022 Automatic Build System <autodist@mambasoft.it> 2.4.112-1mamba
- automatic version update by autodist

* Tue Jun 07 2022 Automatic Build System <autodist@mambasoft.it> 2.4.111-1mamba
- automatic version update by autodist

* Thu Feb 17 2022 Automatic Build System <autodist@mambasoft.it> 2.4.110-1mamba
- automatic version update by autodist

* Fri Nov 26 2021 Automatic Build System <autodist@mambasoft.it> 2.4.109-1mamba
- automatic version update by autodist

* Tue Nov 09 2021 Automatic Build System <autodist@mambasoft.it> 2.4.108-1mamba
- automatic version update by autodist

* Sat Jul 03 2021 Automatic Build System <autodist@mambasoft.it> 2.4.107-1mamba
- automatic version update by autodist

* Wed May 19 2021 Automatic Build System <autodist@mambasoft.it> 2.4.106-1mamba
- automatic version update by autodist

* Thu Apr 08 2021 Automatic Build System <autodist@mambasoft.it> 2.4.105-1mamba
- automatic version update by autodist

* Fri Jan 15 2021 Automatic Build System <autodist@mambasoft.it> 2.4.104-1mamba
- automatic version update by autodist

* Thu Nov 12 2020 Automatic Build System <autodist@mambasoft.it> 2.4.103-1mamba
- automatic version update by autodist

* Thu May 28 2020 Automatic Build System <autodist@mambasoft.it> 2.4.102-1mamba
- automatic version update by autodist

* Wed Apr 15 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 2.4.101-1mamba
- update to 2.4.101

* Sat Oct 19 2019 Automatic Build System <autodist@mambasoft.it> 2.4.100-1mamba
- automatic version update by autodist

* Sat Jul 27 2019 Automatic Build System <autodist@mambasoft.it> 2.4.99-1mamba
- automatic version update by autodist

* Tue Apr 23 2019 Automatic Build System <autodist@mambasoft.it> 2.4.98-1mamba
- automatic version update by autodist

* Sat Feb 02 2019 Automatic Build System <autodist@mambasoft.it> 2.4.97-1mamba
- automatic version update by autodist

* Wed Oct 17 2018 Automatic Build System <autodist@mambasoft.it> 2.4.96-1mamba
- automatic version update by autodist

* Sun Oct 07 2018 Automatic Build System <autodist@mambasoft.it> 2.4.95-1mamba
- automatic version update by autodist

* Wed Sep 05 2018 Automatic Build System <autodist@mambasoft.it> 2.4.94-1mamba
- automatic version update by autodist

* Thu Aug 09 2018 Automatic Build System <autodist@mambasoft.it> 2.4.93-1mamba
- automatic version update by autodist

* Thu May 17 2018 Automatic Build System <autodist@mambasoft.it> 2.4.92-1mamba
- automatic version update by autodist

* Fri Mar 09 2018 Automatic Build System <autodist@mambasoft.it> 2.4.91-1mamba
- automatic version update by autodist

* Wed Feb 21 2018 Automatic Build System <autodist@mambasoft.it> 2.4.90-1mamba
- automatic version update by autodist

* Mon Dec 25 2017 Automatic Build System <autodist@mambasoft.it> 2.4.89-1mamba
- automatic version update by autodist

* Mon Nov 06 2017 Automatic Build System <autodist@mambasoft.it> 2.4.88-1mamba
- automatic version update by autodist

* Wed Nov 01 2017 Automatic Build System <autodist@mambasoft.it> 2.4.87-1mamba
- automatic version update by autodist

* Sun Oct 22 2017 Automatic Build System <autodist@mambasoft.it> 2.4.84-1mamba
- automatic version update by autodist

* Sat Aug 26 2017 Automatic Build System <autodist@mambasoft.it> 2.4.83-1mamba
- automatic version update by autodist

* Tue Aug 08 2017 Automatic Build System <autodist@mambasoft.it> 2.4.82-1mamba
- automatic version update by autodist

* Sun Jul 02 2017 Automatic Build System <autodist@mambasoft.it> 2.4.81-1mamba
- automatic version update by autodist

* Wed Apr 19 2017 Automatic Build System <autodist@mambasoft.it> 2.4.80-1mamba
- automatic version update by autodist

* Thu Apr 13 2017 Automatic Build System <autodist@mambasoft.it> 2.4.79-1mamba
- automatic version update by autodist

* Tue Apr 11 2017 Automatic Build System <autodist@mambasoft.it> 2.4.78-1mamba
- automatic version update by autodist

* Fri Apr 07 2017 Automatic Build System <autodist@mambasoft.it> 2.4.77-1mamba
- automatic version update by autodist

* Tue Apr 04 2017 Automatic Build System <autodist@mambasoft.it> 2.4.76-1mamba
- automatic version update by autodist

* Sat Feb 04 2017 Automatic Build System <autodist@mambasoft.it> 2.4.75-1mamba
- automatic version update by autodist

* Wed Nov 30 2016 Automatic Build System <autodist@mambasoft.it> 2.4.74-1mamba
- automatic version update by autodist

* Thu Nov 17 2016 Automatic Build System <autodist@mambasoft.it> 2.4.73-1mamba
- automatic version update by autodist

* Wed Oct 05 2016 Automatic Build System <autodist@mambasoft.it> 2.4.71-1mamba
- automatic version update by autodist

* Mon Jul 25 2016 Automatic Build System <autodist@mambasoft.it> 2.4.70-1mamba
- automatic version update by autodist

* Sat Jul 23 2016 Automatic Build System <autodist@mambasoft.it> 2.4.69-1mamba
- automatic version update by autodist

* Sun May 01 2016 Automatic Build System <autodist@mambasoft.it> 2.4.68-1mamba
- automatic version update by autodist

* Thu Feb 18 2016 Automatic Build System <autodist@mambasoft.it> 2.4.67-1mamba
- automatic version update by autodist

* Fri Jan 01 2016 Automatic Build System <autodist@mambasoft.it> 2.4.66-1mamba
- automatic version update by autodist

* Wed Sep 16 2015 Automatic Build System <autodist@mambasoft.it> 2.4.65-1mamba
- automatic version update by autodist

* Tue Aug 18 2015 Automatic Build System <autodist@mambasoft.it> 2.4.64-1mamba
- automatic version update by autodist

* Tue Aug 18 2015 Automatic Build System <autodist@mambasoft.it> 2.4.63-1mamba
- automatic version update by autodist

* Tue Jun 30 2015 Automatic Build System <autodist@mambasoft.it> 2.4.62-1mamba
- automatic version update by autodist

* Thu May 07 2015 Automatic Build System <autodist@mambasoft.it> 2.4.61-1mamba
- automatic version update by autodist

* Wed Mar 25 2015 Automatic Build System <autodist@mambasoft.it> 2.4.60-1mamba
- automatic version update by autodist

* Thu Jan 22 2015 Automatic Build System <autodist@mambasoft.it> 2.4.59-1mamba
- automatic version update by autodist

* Thu Oct 02 2014 Automatic Build System <autodist@mambasoft.it> 2.4.58-1mamba
- automatic version update by autodist

* Wed Jul 30 2014 Automatic Build System <autodist@mambasoft.it> 2.4.56-1mamba
- automatic version update by autodist

* Tue Jul 29 2014 Automatic Build System <autodist@mambasoft.it> 2.4.55-1mamba
- automatic version update by autodist

* Sat May 03 2014 Automatic Build System <autodist@mambasoft.it> 2.4.54-1mamba
- automatic version update by autodist

* Fri Apr 11 2014 Automatic Build System <autodist@mambasoft.it> 2.4.53-1mamba
- automatic version update by autodist

* Wed Jan 22 2014 Automatic Build System <autodist@mambasoft.it> 2.4.52-1mamba
- automatic version update by autodist

* Thu Jan 09 2014 Automatic Build System <autodist@mambasoft.it> 2.4.51-1mamba
- automatic version update by autodist

* Wed Dec 04 2013 Automatic Build System <autodist@mambasoft.it> 2.4.50-1mamba
- automatic version update by autodist

* Sat Nov 23 2013 Automatic Build System <autodist@mambasoft.it> 2.4.49-1mamba
- automatic version update by autodist

* Tue Nov 19 2013 Automatic Build System <autodist@mambasoft.it> 2.4.48-1mamba
- automatic version update by autodist

* Sun Oct 13 2013 Automatic Build System <autodist@mambasoft.it> 2.4.47-1mamba
- automatic version update by autodist

* Wed Jul 03 2013 Automatic Build System <autodist@mambasoft.it> 2.4.46-1mamba
- automatic version update by autodist

* Sat May 18 2013 Automatic Build System <autodist@mambasoft.it> 2.4.45-1mamba
- automatic version update by autodist

* Fri Apr 19 2013 Automatic Build System <autodist@mambasoft.it> 2.4.44-1mamba
- automatic version update by autodist

* Thu Feb 07 2013 Automatic Build System <autodist@mambasoft.it> 2.4.42-1mamba
- automatic version update by autodist

* Sat Jan 26 2013 Automatic Build System <autodist@mambasoft.it> 2.4.41-1mamba
- automatic version update by autodist

* Sun Nov 25 2012 Automatic Build System <autodist@mambasoft.it> 2.4.40-1mamba
- automatic version update by autodist

* Mon Sep 24 2012 Automatic Build System <autodist@mambasoft.it> 2.4.39-1mamba
- automatic version update by autodist

* Fri Aug 24 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 2.4.38-2mamba
- bump epoch up to follow libdrm 2.4.33 revert

* Sat Aug 18 2012 Automatic Build System <autodist@mambasoft.it> 2.4.38-1mamba
- automatic version update by autodist

* Fri Jul 27 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 2.4.37-1mamba
- update to 2.4.37
- added patch to build libdrm_nouveau.so.1 compatibility library

* Thu Jun 28 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 2.4.36-1mamba
- update to 2.4.36

* Fri Jun 01 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 2.4.33-1mamba
- update to 2.4.33

* Fri Feb 17 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 2.4.31-1mamba
- update to 2.4.31

* Sun Jan 22 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 2.4.30-1mamba
- update to 2.4.30

* Sun Jun 19 2011 Automatic Build System <autodist@mambasoft.it> 2.4.26-1mamba
- automatic update by autodist

* Mon May 16 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 2.4.25-1mamba
- update to 2.4.25

* Thu Feb 24 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 2.4.23-2mamba
- added patches to fix support for i8xx gen2 intel GPU's

* Sat Feb 05 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 2.4.23-1mamba
- update to 2.4.23

* Tue Oct 05 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 2.4.22-1mamba
- update to 2.4.22

* Tue Jun 22 2010 Automatic Build System <autodist@mambasoft.it> 2.4.21-1mamba
- automatic update by autodist

* Mon Jan 25 2010 Automatic Build System <autodist@mambasoft.it> 2.4.17-1mamba
- automatic update by autodist

* Thu Oct 15 2009 Automatic Build System <autodist@mambasoft.it> 2.4.15-1mamba
- automatic update by autodist

* Tue Sep 01 2009 Automatic Build System <autodist@mambasoft.it> 2.4.13-1mamba
- automatic update by autodist

* Thu Aug 13 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 2.4.12-2mamba
- exclude drm_mode.h provided by glibc headers from kernel 2.6.30

* Thu Jul 23 2009 Automatic Build System <autodist@mambasoft.it> 2.4.12-1mamba
- automatic update by autodist

* Sat Jun 20 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 2.4.11-4mamba
- rebuilt after kernel 2.6.29 update

* Sat Jun 20 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 2.4.11-3mamba
- added radeon patch

* Fri Jun 19 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 2.4.11-2mamba
- added missing headers

* Mon May 18 2009 Automatic Build System <autodist@mambasoft.it> 2.4.11-1mamba
- automatic update by autodist

* Thu Apr 16 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 2.4.9-2mamba
- rebuilt with --enable-udev and --enable-nouveau-experimental-api
- excluded header files conflicting with the ones from kernel headers

* Wed Apr 15 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 2.4.9-1mamba
- update to 2.4.9

* Tue Mar 10 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 2.4.5-1mamba
- automatic update by autodist

* Thu Jan 08 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 2.4.3-1mamba
- automatic update by autodist

* Tue May 20 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 2.3.0-2mamba
- specfile updated

* Wed Dec 20 2006 Silvan Calarco <silvan.calarco@mambasoft.it> 2.3.0-1qilnx
- update to version 2.3.0 by autospec

* Wed Oct 25 2006 Silvan Calarco <silvan.calarco@mambasoft.it> 2.0.2-1qilnx
- package created by autospec