- Replace "makeinstall" with "make install DESTDIR=..."

- Added "Requires: xorg-x11-proto-devel" to devel for xp.pc
- Remove package ownership of mandir/libdir/etc.
This commit is contained in:
mharris 2006-06-09 11:37:21 +00:00
parent e62e8c20b6
commit f56c3f3f58

View File

@ -3,13 +3,14 @@
Summary: X.Org X11 libXp runtime library Summary: X.Org X11 libXp runtime library
Name: libXp Name: libXp
Version: 1.0.0 Version: 1.0.0
Release: 2.2 Release: 3
License: MIT/X11 License: MIT/X11
Group: System Environment/Libraries Group: System Environment/Libraries
URL: http://www.x.org URL: http://www.x.org
Source0: http://xorg.freedesktop.org/X11R7.0-RC0/everything/%{name}-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Source0: http://xorg.freedesktop.org/releases/individual/lib/%{name}-%{version}.tar.bz2
BuildRequires: pkgconfig BuildRequires: pkgconfig
BuildRequires: xorg-x11-util-macros BuildRequires: xorg-x11-util-macros
BuildRequires: xorg-x11-proto-devel BuildRequires: xorg-x11-proto-devel
@ -26,8 +27,11 @@ X.Org X11 libXp runtime library
%package devel %package devel
Summary: X.Org X11 libXp development package Summary: X.Org X11 libXp development package
Group: Development/Libraries Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
Requires(pre): xorg-x11-filesystem >= 0.99.2-3 Requires(pre): xorg-x11-filesystem >= 0.99.2-3
Requires: %{name} = %{version}-%{release}
# needed by xp.pc
BuildRequires: xorg-x11-proto-devel
Obsoletes: XFree86-devel, xorg-x11-devel, xorg-x11-deprecated-libs-devel Obsoletes: XFree86-devel, xorg-x11-devel, xorg-x11-deprecated-libs-devel
@ -42,7 +46,6 @@ X.Org X11 libXp development package
%define with_static 0 %define with_static 0
%build %build
%configure \ %configure \
%if ! %{with_static} %if ! %{with_static}
--disable-static --disable-static
@ -52,7 +55,7 @@ make
%install %install
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
%makeinstall make install DESTDIR=$RPM_BUILD_ROOT
%if %{libXp_deprecated} %if %{libXp_deprecated}
{ {
@ -62,6 +65,7 @@ rm -rf $RPM_BUILD_ROOT
rm -rf $RPM_BUILD_ROOT%{_mandir} rm -rf $RPM_BUILD_ROOT%{_mandir}
} }
%endif %endif
# Don't encourage people to use the deprecated Xprint APIs.
rm -rf $RPM_BUILD_ROOT%{_mandir} rm -rf $RPM_BUILD_ROOT%{_mandir}
# We intentionally don't ship *.la files # We intentionally don't ship *.la files
@ -76,7 +80,6 @@ rm -rf $RPM_BUILD_ROOT
%files %files
%defattr(-,root,root,-) %defattr(-,root,root,-)
%doc AUTHORS COPYING README INSTALL ChangeLog %doc AUTHORS COPYING README INSTALL ChangeLog
%dir %{_libdir}
%{_libdir}/libXp.so.6 %{_libdir}/libXp.so.6
%{_libdir}/libXp.so.6.2.0 %{_libdir}/libXp.so.6.2.0
@ -90,18 +93,21 @@ rm -rf $RPM_BUILD_ROOT
# that keep linking to libXp, will always get the static lib and not break # that keep linking to libXp, will always get the static lib and not break
# when we eventually drop libXp? # when we eventually drop libXp?
%{_libdir}/libXp.so %{_libdir}/libXp.so
%dir %{_libdir}/pkgconfig
%{_libdir}/pkgconfig/xp.pc %{_libdir}/pkgconfig/xp.pc
#%dir %{_mandir} #%dir %{_mandir}/man3x
#%dir %{_mandir}/man3
#%{_mandir}/man3/*.3x* #%{_mandir}/man3/*.3x*
%endif %endif
%changelog %changelog
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 1.0.0-2.2 * Fri Jun 09 2006 Mike A. Harris <mharris@redhat.com> 1.0.0-3
- Replace "makeinstall" with "make install DESTDIR=..."
- Added "Requires: xorg-x11-proto-devel" to devel for xp.pc
- Remove package ownership of mandir/libdir/etc.
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> 1.0.0-2.2
- bump again for double-long bug on ppc(64) - bump again for double-long bug on ppc(64)
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 1.0.0-2.1 * Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> 1.0.0-2.1
- rebuilt for new gcc4.1 snapshot and glibc changes - rebuilt for new gcc4.1 snapshot and glibc changes
* Mon Jan 23 2006 Mike A. Harris <mharris@redhat.com> 1.0.0-2 * Mon Jan 23 2006 Mike A. Harris <mharris@redhat.com> 1.0.0-2