mirror of
https://abf.rosa.ru/djam/libxfixes.git
synced 2025-02-24 09:32:47 +00:00
merge cooker specfile and restore .la files
This commit is contained in:
commit
1de8bf6d72
1 changed files with 31 additions and 62 deletions
|
@ -1,17 +1,15 @@
|
||||||
%define major 3
|
%define major 3
|
||||||
%define libname %mklibname xfixes %{major}
|
%define libname %mklibname xfixes %{major}
|
||||||
%define develname %mklibname xfixes -d
|
%define develname %mklibname xfixes -d
|
||||||
%define staticname %mklibname xfixes -d -s
|
|
||||||
|
|
||||||
Name: libxfixes
|
Name: libxfixes
|
||||||
Summary: X Fixes Library
|
Summary: X Fixes Library
|
||||||
Version: 5.0
|
Version: 5.0
|
||||||
Release: %mkrel 2
|
Release: 2
|
||||||
Group: Development/X11
|
Group: Development/X11
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: http://xorg.freedesktop.org
|
URL: http://xorg.freedesktop.org
|
||||||
Source0: http://xorg.freedesktop.org/releases/individual/lib/libXfixes-%{version}.tar.bz2
|
Source0: http://xorg.freedesktop.org/releases/individual/lib/libXfixes-%{version}.tar.bz2
|
||||||
BuildRoot: %{_tmppath}/%{name}-root
|
|
||||||
|
|
||||||
BuildRequires: libx11-devel >= 1.0.0
|
BuildRequires: libx11-devel >= 1.0.0
|
||||||
BuildRequires: x11-proto-devel >= 7.6-3
|
BuildRequires: x11-proto-devel >= 7.6-3
|
||||||
|
@ -20,8 +18,6 @@ BuildRequires: x11-util-macros >= 1.0.1
|
||||||
%description
|
%description
|
||||||
%{name} is a simple library designed to interface the X Fixes Extension.
|
%{name} is a simple library designed to interface the X Fixes Extension.
|
||||||
|
|
||||||
#-----------------------------------------------------------
|
|
||||||
|
|
||||||
%package -n %{libname}
|
%package -n %{libname}
|
||||||
Summary: X Fixes Library
|
Summary: X Fixes Library
|
||||||
Group: Development/X11
|
Group: Development/X11
|
||||||
|
@ -31,61 +27,25 @@ Provides: %{name} = %{version}
|
||||||
%description -n %{libname}
|
%description -n %{libname}
|
||||||
%{name} is a simple library designed to interface the X Fixes Extension.
|
%{name} is a simple library designed to interface the X Fixes Extension.
|
||||||
|
|
||||||
#-----------------------------------------------------------
|
|
||||||
|
|
||||||
%package -n %{develname}
|
%package -n %{develname}
|
||||||
Summary: Development files for %{name}
|
Summary: Development files for %{name}
|
||||||
Group: Development/X11
|
Group: Development/X11
|
||||||
Requires: %{libname} = %{version}-%{release}
|
Requires: %{libname} = %{EVRD}
|
||||||
Requires: x11-proto-devel >= 1.0.0
|
Provides: libxfixes-devel = %{EVRD}
|
||||||
Provides: libxfixes-devel = %{version}-%{release}
|
Obsoletes: %{_lib}xfixes3-devel
|
||||||
Provides: libxfixes3-devel = %{version}-%{release}
|
Obsoletes: %{_lib}xfixes-static-devel
|
||||||
Obsoletes: %{mklibname xfixes 3}-devel
|
|
||||||
|
|
||||||
Conflicts: libxorg-x11-devel < 7.0
|
Conflicts: libxorg-x11-devel < 7.0
|
||||||
|
|
||||||
%description -n %{develname}
|
%description -n %{develname}
|
||||||
Development files for %{name}
|
Development files for %{name}
|
||||||
|
|
||||||
%pre -n %{develname}
|
|
||||||
if [ -h %{_includedir}/X11 ]; then
|
|
||||||
rm -f %{_includedir}/X11
|
|
||||||
fi
|
|
||||||
|
|
||||||
%files -n %{develname}
|
|
||||||
%defattr(-,root,root)
|
|
||||||
%{_libdir}/libXfixes.so
|
|
||||||
%{_libdir}/libXfixes.la
|
|
||||||
%{_libdir}/pkgconfig/xfixes.pc
|
|
||||||
%{_includedir}/X11/extensions/Xfixes.h
|
|
||||||
%{_mandir}/man3/Xfixes.*
|
|
||||||
|
|
||||||
#-----------------------------------------------------------
|
|
||||||
|
|
||||||
%package -n %{staticname}
|
|
||||||
Summary: Static development files for %{name}
|
|
||||||
Group: Development/X11
|
|
||||||
Requires: %{develname} = %{version}-%{release}
|
|
||||||
Provides: libxfixes-static-devel = %{version}-%{release}
|
|
||||||
Provides: libxfixes3-static-devel = %{version}-%{release}
|
|
||||||
Obsoletes: %{mklibname xfixes 3}-static-devel
|
|
||||||
|
|
||||||
Conflicts: libxorg-x11-static-devel < 7.0
|
|
||||||
|
|
||||||
%description -n %{staticname}
|
|
||||||
Static development files for %{name}
|
|
||||||
|
|
||||||
%files -n %{staticname}
|
|
||||||
%defattr(-,root,root)
|
|
||||||
%{_libdir}/libXfixes.a
|
|
||||||
|
|
||||||
#-----------------------------------------------------------
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n libXfixes-%{version}
|
%setup -qn libXfixes-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%configure2_5x --x-includes=%{_includedir}\
|
%configure2_5x \
|
||||||
|
--disable-static \
|
||||||
|
--x-includes=%{_includedir} \
|
||||||
--x-libraries=%{_libdir}
|
--x-libraries=%{_libdir}
|
||||||
|
|
||||||
%make
|
%make
|
||||||
|
@ -94,23 +54,32 @@ Static development files for %{name}
|
||||||
rm -rf %{buildroot}
|
rm -rf %{buildroot}
|
||||||
%makeinstall_std
|
%makeinstall_std
|
||||||
|
|
||||||
%clean
|
%pre -n %{develname}
|
||||||
rm -rf %{buildroot}
|
if [ -h %{_includedir}/X11 ]; then
|
||||||
|
rm -f %{_includedir}/X11
|
||||||
%if %mdkversion < 200900
|
fi
|
||||||
%post -p /sbin/ldconfig
|
|
||||||
%endif
|
|
||||||
%if %mdkversion < 200900
|
|
||||||
%postun -p /sbin/ldconfig
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%files -n %{libname}
|
%files -n %{libname}
|
||||||
%defattr(-,root,root)
|
|
||||||
%{_libdir}/libXfixes.so.%{major}*
|
%{_libdir}/libXfixes.so.%{major}*
|
||||||
|
|
||||||
|
%files -n %{develname}
|
||||||
|
%{_libdir}/libXfixes.so
|
||||||
|
%{_libdir}/libXfixes.la
|
||||||
|
%{_libdir}/pkgconfig/xfixes.pc
|
||||||
|
%{_includedir}/X11/extensions/Xfixes.h
|
||||||
|
%{_mandir}/man3/Xfixes.*
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Mon Apr 11 2011 Matthew Dawkins <mattydaw@mandriva.org> 5.0-1mdv2011.0
|
* Tue Dec 27 2011 Matthew Dawkins <mattydaw@mandriva.org> 5.0-2
|
||||||
|
+ Revision: 745649
|
||||||
|
- rebuild
|
||||||
|
- disabled static build
|
||||||
|
- removed .la files
|
||||||
|
- cleaned up spec
|
||||||
|
|
||||||
|
* Mon Apr 11 2011 Matthew Dawkins <mattydaw@mandriva.org> 5.0-1
|
||||||
+ Revision: 652707
|
+ Revision: 652707
|
||||||
- defined major
|
- defined major
|
||||||
- requires x11-proto-devel 7.6-3 or better
|
- requires x11-proto-devel 7.6-3 or better
|
||||||
|
@ -151,7 +120,7 @@ rm -rf %{buildroot}
|
||||||
+ Revision: 151684
|
+ Revision: 151684
|
||||||
- Update BuildRequires and rebuild.
|
- Update BuildRequires and rebuild.
|
||||||
|
|
||||||
+ Olivier Blin <oblin@mandriva.com>
|
+ Olivier Blin <blino@mandriva.org>
|
||||||
- restore BuildRoot
|
- restore BuildRoot
|
||||||
|
|
||||||
* Mon Dec 17 2007 Thierry Vignaud <tv@mandriva.org> 4.0.3-2mdv2008.1
|
* Mon Dec 17 2007 Thierry Vignaud <tv@mandriva.org> 4.0.3-2mdv2008.1
|
||||||
|
|
Loading…
Add table
Reference in a new issue