From 3b010537e3ec3938f74a5c636626de98d9c4eda321dd5b1b91dd7bdabcd199e9 Mon Sep 17 00:00:00 2001 From: OBS User mrdocs Date: Fri, 25 Oct 2013 15:58:35 +0000 Subject: [PATCH] Accepting request 204822 from home:scarabeus_iv - Use snapshot with latest VCS version rather than release that was from 2007. * Fixes various build issues * Provides manpages for most binaries OBS-URL: https://build.opensuse.org/request/show/204822 OBS-URL: https://build.opensuse.org/package/show/graphics/gts?expand=0&rev=4 --- gts-0.7.6.tar.bz2 | 3 -- gts-snapshot-121130.tar.gz | 3 ++ gts.changes | 8 ++++ gts.spec | 89 ++++++++++++++++++++------------------ 4 files changed, 58 insertions(+), 45 deletions(-) delete mode 100644 gts-0.7.6.tar.bz2 create mode 100644 gts-snapshot-121130.tar.gz diff --git a/gts-0.7.6.tar.bz2 b/gts-0.7.6.tar.bz2 deleted file mode 100644 index c76c8ee..0000000 --- a/gts-0.7.6.tar.bz2 +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:5f9bfe49828cef1fb9bb712cfc3200ad5e4239dfc30bb3088fb294b4754bfb3e -size 727747 diff --git a/gts-snapshot-121130.tar.gz b/gts-snapshot-121130.tar.gz new file mode 100644 index 0000000..69fa1b6 --- /dev/null +++ b/gts-snapshot-121130.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c23f72ab74bbf65599f8c0b599d6336fabe1ec2a09c19b70544eeefdc069b73b +size 880569 diff --git a/gts.changes b/gts.changes index b00e37a..4ee5e0d 100644 --- a/gts.changes +++ b/gts.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Fri Oct 25 14:20:37 UTC 2013 - tchvatal@suse.com + +- Use snapshot with latest VCS version rather than release that + was from 2007. + * Fixes various build issues + * Provides manpages for most binaries + ------------------------------------------------------------------- Thu Oct 24 11:18:48 CEST 2013 - pth@suse.de diff --git a/gts.spec b/gts.spec index dca33c0..f32ef77 100644 --- a/gts.spec +++ b/gts.spec @@ -1,5 +1,5 @@ # -# spec file for package gts (0.7.6) +# spec file for package gts # # Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. # @@ -15,26 +15,27 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # -%define soname 0_7-5 -Name: gts -Version: 0.7.6 -Release: 1 -Summary: GNU Triangulated Surface Library (GTS) -#Source: http://optusnet.dl.sourceforge.net/sourceforge/gts/gts-%{version}.tar.gz -Source0: %{name}-%{version}.tar.bz2 -URL: http://gts.sourceforge.net/ -Group: System/Libraries -License: LGPL-2.0 -BuildRequires: autoconf libtool -BuildRequires: automake -BuildRequires: glib2-devel -BuildRequires: gcc -BuildRequires: gcc-c++ -BuildRequires: libstdc++-devel -BuildRequires: libnetpbm-devel -BuildRoot: %{_tmppath}/%{name}-%{version}-build -Requires: libgts-%{soname} = %{version} +%define libname libgts-0_7-5 + +Name: gts +Version: 0.7.6_p20121130 +Release: 0 +Summary: GNU Triangulated Surface Library (GTS) +License: LGPL-2.0 +Group: System/Libraries +Source0: http://%{name}.sourceforge.net/tarballs/%{name}-snapshot-121130.tar.gz +Url: http://gts.sourceforge.net/ +BuildRequires: autoconf +BuildRequires: automake +BuildRequires: gcc +BuildRequires: gcc-c++ +BuildRequires: glib2-devel +BuildRequires: libnetpbm-devel +BuildRequires: libstdc++-devel +BuildRequires: libtool +BuildRoot: %{_tmppath}/%{name}-%{version}-build +Requires: %{libname} = %{version} %description GTS stands for the GNU Triangulated Surface Library. It is an Open @@ -61,47 +62,49 @@ A brief summary of its main features: * Triangle strips generation for fast rendering. -%package -n libgts-%{soname} -Summary: GTS Runtime Library -Group: System/libraries +%package -n %{libname} +Summary: GTS Runtime Library +Group: System/libraries - -%description -n libgts-%{soname} +%description -n %{libname} This package provides the GTS runtime library. %package devel -Summary: Development files and documentation for GTS -Group: Development/Libraries/C and C++ -Requires: glib2-devel -Requires: gcc -Requires: gcc-c++ -Requires: %{name} = %{version} +Summary: Development files and documentation for GTS +Group: Development/Libraries/C and C++ +Requires: %{libname} = %{version} +Requires: %{name} = %{version} +Requires: gcc +Requires: gcc-c++ +Requires: glib2-devel %description devel This package contains all necessary include files and libraries needed to develop applications that require these. %prep -%setup -q -n "gts-%{version}" +%setup -q -n %{name}-snapshot-121130 %{?suse_update_config:%{suse_update_config -f}} %build -export AM_CPPFLAGS="-I/usr/include/netpbm" -%{configure} +%configure \ + --disable-static -make %{?jobs:-j%{jobs}} +make %{?_smp_mflags} %install -make DESTDIR=%buildroot install - -rm %{buildroot}/%{_libdir}/*.a +%make_install rm %{buildroot}/%{_libdir}/*.la -rm -rf '%{buildroot}/usr/include -I' -%post -n libgts-%{soname} -p /sbin/ldconfig +# Seems to fail randomly +#%check +#chmod +x test/*/*.sh +#make check -%postun -n libgts-%{soname} -p /sbin/ldconfig +%post -n %{libname} -p /sbin/ldconfig + +%postun -n %{libname} -p /sbin/ldconfig %files %defattr(-,root,root) @@ -116,8 +119,10 @@ rm -rf '%{buildroot}/usr/include -I' %{_bindir}/gtstemplate %{_bindir}/stl2gts %{_bindir}/transform +%{_bindir}/gts2xyz +%{_mandir}/man1/* -%files -n libgts-%{soname} +%files -n %{libname} %defattr(-,root,root) %{_libdir}/libgts-0.7.so.*