diff options
author | Zhaowei Yuan <zhaowei.yuan@samsung.com> | 2019-07-05 11:25:31 +0800 |
---|---|---|
committer | Zhaowei Yuan <zhaowei.yuan@samsung.com> | 2019-07-05 11:25:31 +0800 |
commit | 50ab33c2da2203fa2b9905bb273af8838653ac2a (patch) | |
tree | 0bb72b02bdd23fab7b8615169caf596fac77bf7f | |
parent | 2dc471b0e167693b81c24c9a3f89b985cb98249f (diff) | |
download | mesa-50ab33c2da2203fa2b9905bb273af8838653ac2a.tar.gz mesa-50ab33c2da2203fa2b9905bb273af8838653ac2a.tar.bz2 mesa-50ab33c2da2203fa2b9905bb273af8838653ac2a.zip |
Create devel file for gbmsubmit/tizen/20190716.054641submit/tizen/20190715.062210accepted/tizen/unified/20190717.115255
Create a devel file names mesa-libgbm-devel for gbm
Change-Id: I4c10f7f09ed035c9d9097776fc2e3acba0e2186f
Signed-off-by: Zhaowei Yuan <zhaowei.yuan@samsung.com>
-rw-r--r-- | packaging/mesa.spec | 22 | ||||
-rw-r--r-- | pkgconfig/Makefile.am | 2 | ||||
-rw-r--r-- | pkgconfig/mesa-libgbm.pc.in | 12 |
3 files changed, 35 insertions, 1 deletions
diff --git a/packaging/mesa.spec b/packaging/mesa.spec index 31cea6fe688..42da079b4be 100644 --- a/packaging/mesa.spec +++ b/packaging/mesa.spec @@ -9,6 +9,12 @@ Source: %{name}-%{version}.tar.gz Source1001: %{name}.manifest Source1002: 99-GPU-Acceleration.rules +#GBM VERSION MACROS +%define GBM_VERSION_MAJOR 19 +%define GBM_VERSION_MINOR 1 +%define GBM_VERSION_PATCH 1 +%define GBM_VERSION %{GBM_VERSION_MAJOR}.%{GBM_VERSION_MINOR}.%{GBM_VERSION_PATCH} + BuildRequires: autoconf >= 2.59 BuildRequires: automake BuildRequires: bison @@ -38,6 +44,14 @@ BuildRequires: pkgconfig(dlog) BuildRequires: pkgconfig(libdrm_intel) >= 2.4.24 %endif +%package -n mesa-libgbm-devel +Version: %{GBM_VERSION} +Release: 0 +Summary: Development header files for gbm in mesa. + +%description -n mesa-libgbm-devel +Development header files for gbm in mesa. + %if "%{_with_emulator}" == "1" ExclusiveArch: %endif @@ -58,7 +72,7 @@ just Mesa or The Mesa 3-D graphics library. * OpenGL is a trademark of Silicon Graphics Incorporated. %prep -%setup -q -n %{name}-%{version} +%setup -q cp %{SOURCE1001} . cp %{SOURCE1002} . @@ -96,6 +110,12 @@ cp 99-GPU-Acceleration.rules %{buildroot}/etc/udev/rules.d %post -p /sbin/ldconfig %postun -p /sbin/ldconfig +%files -n mesa-libgbm-devel +%defattr(-,root,root,-) +%{_includedir}/gbm.h +%{_libdir}/libgbm.so +%{_libdir}/pkgconfig/gbm.pc + %files %define _unpackaged_files_terminate_build 0 %manifest %{name}.manifest diff --git a/pkgconfig/Makefile.am b/pkgconfig/Makefile.am new file mode 100644 index 00000000000..daac171b285 --- /dev/null +++ b/pkgconfig/Makefile.am @@ -0,0 +1,2 @@ +pkgconfigdir = $(libdir)/pkgconfig +pkgconfig_DATA = mesa-libgbm.pc diff --git a/pkgconfig/mesa-libgbm.pc.in b/pkgconfig/mesa-libgbm.pc.in new file mode 100644 index 00000000000..61a2a4176fc --- /dev/null +++ b/pkgconfig/mesa-libgbm.pc.in @@ -0,0 +1,12 @@ +prefix=/usr +exec_prefix=${prefix} +libdir=${exec_prefix}/@LIB@ +includedir=${prefix}/include + +Name: mesa-libgbm +Description: General Buffer Manager in Mesa +Version: 19.0.0 +Requires.private: +Libs: -L${libdir} -lmesa-libgbm +Libs.private: +Cflags: -I${includedir} |