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