Name: gpstk Version: 1.6 Release: 1%{?dist} Summary: The GPS Toolkit Group: Applications/Engineering License: LGPLv2+ URL: http://www.gpstk.org/ Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.src.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: jam BuildRequires: doxygen #BuildRequires: gtkmm24-devel #BuildRequires: libglademm24-devel #BuildRequires: gconfmm26-devel BuildRequires: zlib-devel BuildRequires: libpng-devel BuildRequires: libtiff-devel BuildRequires: ncurses-devel %description Algorithms and frameworks supporting the development of processing and analysis applications in navigation and global positioning. %package devel Summary: Development files for GPSTk Group: Development/Libraries Requires: %{name} = %{version}-%{release} %description devel This package contains the development files for the GPS Toolkit. %package docs Summary: Documentation for GPSTk Group: Documentation %description docs This package contains the HTML documentation files for the GPS Toolkit. %prep %setup -q -n %{name}-%{version}.src find . -name '*.cpp' -exec chmod -x {} ';' find . -name '*.hpp' -exec chmod -x {} ';' %build #Alternative approach with Autotools #./autogen.sh # Libtool must be symlinked or something in order to work #%configure \ # --prefix=%{_prefix} #make %{?_smp_mflags} CFLAGS="%{optflags}" #--disable-static \ #doxygen jam -j %{?_smp_mflags} %install rm -rf %{buildroot} jam -s PREFIX=%{buildroot}%{_prefix} install #Alternative approach with Autotools #make install DESTDIR=%{buildroot} INSTALL="install -p" # jam installs everything in /lib, but 64-bit libraries should be in /lib64 [ "%{buildroot}%{_prefix}/lib" != "%{buildroot}%{_libdir}" ] && mv %{buildroot}%{_prefix}/lib %{buildroot}%{_libdir} # Remove rpath from files chrpath --delete %{buildroot}%{_libdir}/*.so.* # Remove libtool archives rm %{buildroot}/%{_libdir}/*.a pushd %{buildroot}%{_libdir} find . -name '*.so.16.0' -print 2>/dev/null -exec chmod 755 {} \; ldconfig -n . \; #find . -name '*.so.16.0' -print 2>/dev/null -exec mv {} {}.0 \; #find . -name '*.so.16.0.0' -print 2>/dev/null | while read sofile #do ln -s "$sofile" "${sofile%.*.*}" #done popd # TODO: Tests? %clean rm -rf %{buildroot} %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files # -f %{name}.lang %defattr(-,root,root,-) %doc AUTHORS ChangeLog COPYING NEWS README %{_bindir}/* %{_libdir}/*.so.* %files devel %defattr(-,root,root,-) %{_includedir}/%{name}/ %files docs %defattr(-,root,root,-) #%doc doc/html %changelog * Mon Oct 05 2009 Fabian Affolter - 1.6-1 - Updated to new upstream version 1.6 * Sat Jan 24 2009 Fabian Affolter - 1.5-1 - Initial package for Fedora