Name: animorph
Version: 0.3
Release: 5%{?dist}
Summary: 3D Animation and Morph Library
Group: System Environment/Libraries
License: GPLv3+
URL: http://www.makehuman.org
Source0: http://downloads.sourceforge.net/makehuman/%{name}-%{version}.tar.gz
Patch0: animorph-0.2-pkgconfig.patch
Patch1: animorph-0.3-gcc43.patch
Patch2: animorph-0.3-gcc44.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
%description
3D Animation and Morph Library
%package devel
Summary: Development files for %{name}
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
Requires: pkgconfig
%description devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.
%prep
%setup -q
# We need to fix CRLF first
for f in animorph*.in AUTHORS COPYING TODO; do
sed -i 's/\r//' $f
touch -r README $f
done
%patch0 -p1 -b .pkgconfig
%patch1 -p1 -b .gcc43
%patch2 -p1 -b .gcc44
# prevent timestramps changes from patch1
pushd include/animorph
for f in util.h BodySettings.h FaceGroup.h Hotspot.h;do
touch -r $f.gcc43 $f
done
popd
%build
export CXXFLAGS="$RPM_OPT_FLAGS -std=c++0x"
%configure --disable-static
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p -c"
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
# Removes doc
rm -rf $RPM_BUILD_ROOT%{_prefix}/doc
%clean
rm -rf $RPM_BUILD_ROOT
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root,-)
%doc AUTHORS TODO
%{_libdir}/*.so.*
%files devel
%defattr(-,root,root,-)
%{_includedir}/%{name}/
%{_libdir}/*.so
%{_libdir}/pkgconfig/%{name}.pc
%changelog
* Wed Mar 4 2009 kwizart < kwizart at gmail.com > - 0.3-5
- Fix for gcc44
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
* Sat Feb 9 2008 kwizart < kwizart at gmail.com > - 0.3-3
- Rebuild for gcc43
* Fri Jan 4 2008 kwizart < kwizart at gmail.com > - 0.3-2
- Fix for gcc43
* Thu Jan 3 2008 kwizart < kwizart at gmail.com > - 0.3-1
- Update to 0.3
- License is now GPLv3+
* Wed Sep 12 2007 kwizart < kwizart at gmail.com > - 0.2-2
- Change license to GPLv2+ as said in the source code
- Remove BR glibc-headers
- Change summary (taken from animorph.pc)
* Fri Jul 20 2007 kwizart < kwizart at gmail.com > - 0.2-1
- Initial spec file for Fedora