Changes of Revision 2
[-] | Added | boost-compat.spec |
x 1
2 +# 3 +# spec file for package boost-compat (Version 1.33.1) 4 +# 5 +# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany. 6 +# This file and all modifications and additions to the pristine 7 +# package are under the same license as the package itself. 8 +# 9 +# Please submit bugfixes or comments via http://bugs.opensuse.org/ 10 +# 11 + 12 +# norootforbuild 13 + 14 +Name: boost-compat 15 +License: BSD 3-Clause 16 +Group: Development/Libraries/C and C++ 17 +Summary: Boost 1.33.1 C++ Libraries 18 +BuildRoot: %{_tmppath}/%{name}-%{version}-build 19 +Version: 1.33.1 20 +Release: 1 21 +Source: boost1331-libs.tar.bz2 22 + 23 +%description 24 +Boost 1.33.1 libraries provided for compatibility 25 + 26 +%prep 27 +%setup -c -n %{name} -T -a0 28 + 29 + 30 +%install 31 +%ifarch %ix86 32 +MY_CPU=i386 33 +%else 34 +MY_CPU=%{_target_cpu} 35 +%endif 36 + 37 +rm -rf %{buildroot} 38 +mkdir -p %{buildroot}%{_libdir} 39 + 40 +if [ -d %{suse_version}/${MY_CPU} ]; then 41 + cp -pr %{suse_version}/${MY_CPU}/* %{buildroot}%{_libdir} 42 +fi 43 + 44 +for f in $(find %{buildroot}%{_libdir} -type f -name '*.so*'); do 45 + chmod 755 $f 46 + strip -p --strip-unneeded $f 47 +done 48 + 49 +/sbin/ldconfig -n %{buildroot}%{_libdir} 50 + 51 +%post 52 +%run_ldconfig 53 + 54 +%postun 55 +%run_ldconfig 56 + 57 +%files 58 +%defattr(-, root, root, -) 59 +%{_libdir}/lib* 60 +%changelog 61 |