- Renamed package to remove xorg-x11 from the name due to unanimous
decision between developers. - Use Fedora Extras style BuildRoot tag. - Disable static library creation by default. - Add missing defattr to devel subpackage - Add missing documentation files to doc macro - Fix BuildRequires to use new style X library package names
This commit is contained in:
parent
b04b9c5409
commit
90d74ea5c9
40
libXpm.spec
40
libXpm.spec
@ -1,16 +1,15 @@
|
|||||||
%define pkgname libXpm
|
|
||||||
Summary: X.Org X11 libXpm runtime library
|
Summary: X.Org X11 libXpm runtime library
|
||||||
Name: xorg-x11-%{pkgname}
|
Name: libXpm
|
||||||
Version: 3.5.2
|
Version: 3.5.2
|
||||||
Release: 4
|
Release: 5
|
||||||
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: %{pkgname}-%{version}.tar.bz2
|
Source0: http://xorg.freedesktop.org/X11R7.0-RC0/everything/%{name}-%{version}.tar.bz2
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
|
|
||||||
BuildRequires: xorg-x11-proto-devel
|
BuildRequires: xorg-x11-proto-devel
|
||||||
BuildRequires: xorg-x11-libX11-devel
|
BuildRequires: libX11-devel
|
||||||
# FIXME: Although ./configure checks for libXt and libXext, and indicates
|
# FIXME: Although ./configure checks for libXt and libXext, and indicates
|
||||||
# that they are missing, it continues to build anyway, and just does not
|
# that they are missing, it continues to build anyway, and just does not
|
||||||
# build sxpm if they are not present. Therefore, libXt-devel and
|
# build sxpm if they are not present. Therefore, libXt-devel and
|
||||||
@ -48,8 +47,6 @@ rpmlib(PayloadFilesHavePrefix) <= 4.0-1
|
|||||||
xorg-x11-libXpm = 3.5.2-2
|
xorg-x11-libXpm = 3.5.2-2
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
|
||||||
Provides: %{pkgname}
|
|
||||||
Conflicts: XFree86-libs, xorg-x11-libs
|
Conflicts: XFree86-libs, xorg-x11-libs
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -60,22 +57,25 @@ Summary: X.Org X11 libXpm development package
|
|||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
Requires: %{name} = %{version}-%{release}
|
Requires: %{name} = %{version}-%{release}
|
||||||
|
|
||||||
Provides: %{pkgname}-devel
|
|
||||||
Conflicts: XFree86-devel, xorg-x11-devel
|
Conflicts: XFree86-devel, xorg-x11-devel
|
||||||
|
|
||||||
%description devel
|
%description devel
|
||||||
X.Org X11 libXpm development package
|
X.Org X11 libXpm development package
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -c %{name}-%{version}
|
%setup -q
|
||||||
|
|
||||||
|
# Disable static library creation by default.
|
||||||
|
%define with_static 0
|
||||||
|
|
||||||
%build
|
%build
|
||||||
cd %{pkgname}-%{version}
|
%configure \
|
||||||
%configure
|
%if ! %{with_static}
|
||||||
|
--disable-static
|
||||||
|
%endif
|
||||||
make
|
make
|
||||||
|
|
||||||
%install
|
%install
|
||||||
cd %{pkgname}-%{version}
|
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
%makeinstall
|
%makeinstall
|
||||||
|
|
||||||
@ -90,23 +90,35 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%doc
|
%doc AUTHORS COPYING README INSTALL ChangeLog
|
||||||
%dir %{_libdir}
|
%dir %{_libdir}
|
||||||
%{_libdir}/libXpm.so.4
|
%{_libdir}/libXpm.so.4
|
||||||
%{_libdir}/libXpm.so.4.11.0
|
%{_libdir}/libXpm.so.4.11.0
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
|
%defattr(-,root,root,-)
|
||||||
%{_bindir}/cxpm
|
%{_bindir}/cxpm
|
||||||
%{_bindir}/sxpm
|
%{_bindir}/sxpm
|
||||||
%dir %{_includedir}/X11
|
%dir %{_includedir}/X11
|
||||||
%{_includedir}/X11/xpm.h
|
%{_includedir}/X11/xpm.h
|
||||||
|
%if %{with_static}
|
||||||
%{_libdir}/libXpm.a
|
%{_libdir}/libXpm.a
|
||||||
|
%endif
|
||||||
%{_libdir}/libXpm.so
|
%{_libdir}/libXpm.so
|
||||||
%dir %{_libdir}/pkgconfig
|
%dir %{_libdir}/pkgconfig
|
||||||
%{_libdir}/pkgconfig/xpm.pc
|
%{_libdir}/pkgconfig/xpm.pc
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Sep 29 2005 Mike A. Harris <mharris.com> 3.5.2-5
|
||||||
|
- Renamed package to remove xorg-x11 from the name due to unanimous decision
|
||||||
|
between developers.
|
||||||
|
- Use Fedora Extras style BuildRoot tag.
|
||||||
|
- Disable static library creation by default.
|
||||||
|
- Add missing defattr to devel subpackage
|
||||||
|
- Add missing documentation files to doc macro
|
||||||
|
- Fix BuildRequires to use new style X library package names
|
||||||
|
|
||||||
* Sun Sep 4 2005 Mike A. Harris <mharris@redhat.com> 3.5.2-4
|
* Sun Sep 4 2005 Mike A. Harris <mharris@redhat.com> 3.5.2-4
|
||||||
- Although ./configure checks for libXt and libXext, and indicates
|
- Although ./configure checks for libXt and libXext, and indicates
|
||||||
that they are missing, it continues to build anyway, and just does not
|
that they are missing, it continues to build anyway, and just does not
|
||||||
|
Loading…
Reference in New Issue
Block a user