libICE/libICE.spec

137 lines
3.4 KiB
RPMSpec
Raw Permalink Normal View History

Name: libICE
Version: 1.0.9
Release: 1mamba
Summary: X.Org ICE library
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://x.org
Source: ftp://ftp.x.org/pub/individual/lib/libICE-%{version}.tar.bz2
License: MIT
BuildRoot: %{_tmppath}/%{name}-%{version}-root
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: xproto-devel
## AUTOBUILDREQ-END
BuildRequires: xorg-proto-devel >= 7.1
BuildRequires: xorg-xtrans-devel >= 1.0
%ifarch x86_64
BuildRequires: gcc-multilib
BuildRequires: glibc-multilib-devel
%endif
Obsoletes: libXorg
%description
X.Org ICE library.
%package devel
Summary: Devel package for %{name}
Group: Development/Libraries
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
%description devel
X.Org ICE library.
This package contains static libraries and header files needed for development.
%package -n lib32-%{name}
Summary: X.Org ICE library
Group: System/Libraries
%description -n lib32-%{name}
X.Org ICE library (32 bit).
%package -n lib32-%{name}-devel
Summary: Devel package for lib32-%{name}
Group: Development/Libraries
Requires: lib32-%{name} = %{?epoch:%epoch:}%{version}-%{release}
%description -n lib32-%{name}-devel
X.Org ICE library (32 bit).
This package contains static libraries and header files needed for development.
%prep
%setup -q -n libICE-%{version}
%build
%configure
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall
%ifarch x86_64
# x86_64 lib64 support
make clean
CC=%{_target_platform}-gcc \
CFLAGS="%{optflags} -m32" \
CXXLAGS="%{optflags} -m32" \
./configure --prefix=%{_prefix} --libdir=%{_prefix}/lib
make
make install DESTDIR=`pwd`/lib32
cp -a lib32/%{_prefix}/lib %{buildroot}%{_prefix}/
%endif
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files
%defattr(-,root,root)
%{_libdir}/libICE.so.*
%doc AUTHORS COPYING
%files devel
%defattr(-,root,root)
%{_libdir}/libICE.a
%{_libdir}/libICE.la
%{_libdir}/libICE.so
%dir %{_includedir}/X11/ICE
%{_includedir}/X11/ICE/*.h
%{_libdir}/pkgconfig/*.pc
%{_docdir}/libICE
%doc ChangeLog
%ifarch x86_64
%files -n lib32-%{name}
%defattr(-,root,root)
%{_prefix}/lib/libICE.so.*
%doc AUTHORS COPYING
%files -n lib32-%{name}-devel
%defattr(-,root,root)
%{_prefix}/lib/libICE.a
%{_prefix}/lib/libICE.la
%{_prefix}/lib/libICE.so
%{_prefix}/lib/pkgconfig/ice.pc
%endif
%changelog
* Tue Jul 01 2014 Automatic Build System <autodist@mambasoft.it> 1.0.9-1mamba
- automatic update by autodist
* Mon Mar 05 2012 Automatic Build System <autodist@mambasoft.it> 1.0.8-1mamba
- automatic version update by autodist
* Tue Nov 09 2010 Automatic Build System <autodist@mambasoft.it> 1.0.7-1mamba
- automatic update by autodist
* Sat Jun 26 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 1.0.6-2mamba
- rebuilt to add pkgconfig provides
* Thu Sep 03 2009 Automatic Build System <autodist@mambasoft.it> 1.0.6-1mamba
- automatic update by autodist
* Tue Jan 27 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 1.0.5-1mamba
- automatic update by autodist
* Mon Sep 10 2007 Silvan Calarco <silvan.calarco@mambasoft.it> 1.0.4-1mamba
- update to 1.0.4
* Wed Jan 03 2007 Silvan Calarco <silvan.calarco@mambasoft.it> 1.0.3-1qilnx
- update to version 1.0.3 by autospec
* Mon Dec 18 2006 Silvan Calarco <silvan.calarco@mambasoft.it> 1.0.1-1qilnx
- package created by autospec