2012-02-04 02:20:53 +01:00
|
|
|
#
|
|
|
|
# spec file for package libspiro0
|
|
|
|
#
|
|
|
|
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
%define tarversion 20071029
|
|
|
|
|
2012-02-04 14:57:21 +01:00
|
|
|
Name: libspiro
|
2012-02-04 02:20:53 +01:00
|
|
|
Version: 0.0.1
|
|
|
|
Release: 1.1
|
|
|
|
Summary: A clothoid to bezier spline converter
|
2012-02-06 14:52:35 +01:00
|
|
|
License: GPL-2.0+
|
2012-02-04 02:20:53 +01:00
|
|
|
Group: System/Libraries
|
2012-02-04 14:57:21 +01:00
|
|
|
Source0: %{name}_src-%{tarversion}.tar.bz2
|
2012-02-04 02:20:53 +01:00
|
|
|
Url: http://libspiro.sourceforge.net
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: pkg-config
|
|
|
|
|
|
|
|
%description
|
|
|
|
libspiro contains routines which will convert an array of clothoid
|
|
|
|
spline control points into an equivalent set of bezier control points.
|
|
|
|
|
|
|
|
Authors
|
|
|
|
-------
|
|
|
|
Raph Levien <raph.levien@gmail.com>
|
|
|
|
George Williams <gww@silcom.com>
|
|
|
|
|
2012-02-04 14:57:21 +01:00
|
|
|
%package -n %{name}0
|
|
|
|
Summary: A clothoid to bezier spline converter
|
|
|
|
Group: System/Libraries
|
2012-02-04 02:20:53 +01:00
|
|
|
|
2012-02-04 14:57:21 +01:00
|
|
|
%description -n %{name}0
|
|
|
|
libspiro contains routines which will convert an array of clothoid
|
|
|
|
spline control points into an equivalent set of bezier control points.
|
|
|
|
|
|
|
|
%package devel
|
2012-02-04 02:20:53 +01:00
|
|
|
Summary: Development Files for %{name}
|
|
|
|
Group: Development/Libraries/C and C++
|
2012-02-04 14:57:21 +01:00
|
|
|
Requires: %{name}0 = %{version} glibc-devel
|
2012-02-04 02:20:53 +01:00
|
|
|
|
2012-02-04 14:57:21 +01:00
|
|
|
%description devel
|
2012-02-04 02:20:53 +01:00
|
|
|
This package contains all necessary include files and libraries needed
|
|
|
|
to compile and develop applications that use %{name}.
|
|
|
|
|
|
|
|
Authors
|
|
|
|
-------
|
|
|
|
Raph Levien <raph.levien@gmail.com>
|
|
|
|
George Williams <gww@silcom.com>
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
2012-02-04 14:57:21 +01:00
|
|
|
%setup -q -n %{name}-%{tarversion}
|
2012-02-04 02:20:53 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
# autoreconf -fi
|
|
|
|
%configure --with-pic\
|
|
|
|
--disable-static
|
2012-02-04 15:06:41 +01:00
|
|
|
make %{?smp_mflags}
|
2012-02-04 02:20:53 +01:00
|
|
|
|
2012-02-04 14:57:21 +01:00
|
|
|
cat > %{name}.pc << EOF
|
2012-02-04 02:20:53 +01:00
|
|
|
prefix=%{_prefix}
|
|
|
|
exec_prefix=%{_exec_prefix}
|
|
|
|
libdir=%{_libdir}
|
|
|
|
includedir=%{_includedir}
|
|
|
|
|
|
|
|
Name: %{name}
|
|
|
|
Description: %{summary}
|
|
|
|
Requires:
|
|
|
|
Version: %{name}
|
2012-02-04 02:26:41 +01:00
|
|
|
Libs: -L\${libdir} -lspiro
|
|
|
|
Libs.private: -lm
|
2012-02-04 02:20:53 +01:00
|
|
|
Cflags: -I\${includedir}
|
|
|
|
EOF
|
|
|
|
|
|
|
|
%install
|
|
|
|
%makeinstall
|
|
|
|
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_libdir}/pkgconfig/
|
|
|
|
mv *.pc $RPM_BUILD_ROOT%{_libdir}/pkgconfig/
|
|
|
|
|
2012-02-04 15:06:41 +01:00
|
|
|
%post -n %{name}0 -p /sbin/ldconfig
|
2012-02-04 02:20:53 +01:00
|
|
|
|
2012-02-04 15:06:41 +01:00
|
|
|
%postun -n %{name}0 -p /sbin/ldconfig
|
2012-02-04 02:20:53 +01:00
|
|
|
|
2012-02-04 14:57:21 +01:00
|
|
|
%files -n %{name}0
|
2012-02-04 02:20:53 +01:00
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc gpl.txt README*
|
|
|
|
%{_libdir}/lib*.so.*
|
|
|
|
|
2012-02-04 14:57:21 +01:00
|
|
|
%files devel
|
2012-02-04 02:20:53 +01:00
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_includedir}/*
|
|
|
|
%{_libdir}/*.so
|
|
|
|
%{_libdir}/pkgconfig/*.pc
|
|
|
|
|
|
|
|
%changelog
|