%define name libdmx %define version 1.1.2 %define release %mkrel 1 %define libname %mklibname dmx 1 %define develname %mklibname dmx -d %define staticname %mklibname dmx -d -s Name: %{name} Summary: DMX library (part of X.org) Version: %{version} Release: %{release} Group: Development/X11 License: MIT URL: http://xorg.freedesktop.org Source0: http://xorg.freedesktop.org/releases/individual/lib/libdmx-%{version}.tar.bz2 BuildRoot: %{_tmppath}/%{name}-root BuildRequires: libx11-devel >= 1.0.0 BuildRequires: libxext-devel >= 1.0.0 BuildRequires: x11-proto-devel >= 7.5 BuildRequires: x11-util-macros >= 1.0.1 BuildRequires: libxext-devel >= 1.1.1 %description The DMX extension provides support for communication with and control of Xdmx server. Attributes of the Xdmx server and of the back-end screens attached to the server can be queried and modified via this protocol. #----------------------------------------------------------- %package -n %{libname} Summary: The dmx Library Group: Development/X11 Conflicts: libxorg-x11 < 7.0 Provides: %{name} = %{version} %description -n %{libname} The DMX extension provides support for communication with and control of Xdmx server. Attributes of the Xdmx server and of the back-end screens attached to the server can be queried and modified via this protocol. #----------------------------------------------------------- %package -n %{develname} Summary: Development files for %{name} Group: Development/X11 Requires: %{libname} = %{version} Requires: x11-proto-devel >= 7.5 Provides: %{name}-devel = %{version}-%{release} Conflicts: libxorg-x11-devel < 7.0 Conflicts: x11-proto-devel < 7.5 Obsoletes: %{mklibname dmx 1 -d} %description -n %{develname} Development files for %{name} %files -n %{develname} %defattr(-,root,root) %{_libdir}/libdmx.so %{_libdir}/pkgconfig/dmx.pc %{_includedir}/X11/extensions/*.h %{_mandir}/man3/DMX*.3* #----------------------------------------------------------- %package -n %{staticname} Summary: Static development files for %{name} Group: Development/X11 Requires: %{develname} >= %{version} Provides: %{name}-static-devel = %{version}-%{release} Conflicts: libxorg-x11-static-devel < 7.0 Obsoletes: %{mklibname dmx 1 -d -s} %description -n %{staticname} Static development files for %{name} %files -n %{staticname} %defattr(-,root,root) %{_libdir}/libdmx.a #----------------------------------------------------------- %prep %setup -q %build %configure2_5x --x-includes=%{_includedir}\ --x-libraries=%{_libdir} %make %install rm -rf %{buildroot} %makeinstall_std find %{buildroot} -name "*.la" -delete %clean rm -rf %{buildroot} %files -n %{libname} %defattr(-,root,root) %{_libdir}/libdmx.so.1 %{_libdir}/libdmx.so.1.0.0 %changelog * Fri Mar 09 2012 tv <tv> 1.1.2-1.mga2 + Revision: 222211 - new release * Tue Nov 29 2011 colin <colin> 1.1.1-2.mga2 + Revision: 174147 - Strip .la files * Tue Jan 11 2011 dmorgan <dmorgan> 1.1.1-1.mga1 + Revision: 6210 - imported package libdmx