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
This commit is contained in:
OBS User mrdocs 2013-10-25 15:58:35 +00:00 committed by Git OBS Bridge
parent 5562c224c0
commit 3b010537e3
4 changed files with 58 additions and 45 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:5f9bfe49828cef1fb9bb712cfc3200ad5e4239dfc30bb3088fb294b4754bfb3e
size 727747

BIN
gts-snapshot-121130.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -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

View File

@ -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.*