[packages/spread-sheet-widget] - new

adamg adamg at pld-linux.org
Fri Nov 9 09:52:56 CET 2018


commit 0b13181f16ecdaa65cb5be4af974274efd1da8fe
Author: Adam Gołębiowski <adamg at pld-linux.org>
Date:   Fri Nov 9 09:52:30 2018 +0100

    - new

 spread-sheet-widget-am.patch |  10 ++++
 spread-sheet-widget.spec     | 129 +++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 139 insertions(+)
---
diff --git a/spread-sheet-widget.spec b/spread-sheet-widget.spec
new file mode 100644
index 0000000..2022d1c
--- /dev/null
+++ b/spread-sheet-widget.spec
@@ -0,0 +1,129 @@
+#
+# Conditional build:
+%bcond_without	static_libs	# don't build static libraries
+#
+Summary:	Library for Gtk+ which provides a widget for viewing and manipulating 2 dimensional tabular data
+Summary(pl.UTF-8):	Biblioteka Gtk+ zapewniająca widget do przeglądania i manipulowania dwuwymiarowymi danymi tabelarycznymi
+Name:		spread-sheet-widget
+Version:	0.3
+Release:	1
+License:	GPL v3+
+Group:		Libraries
+Source0:	http://alpha.gnu.org/gnu/ssw/%{name}-%{version}.tar.gz
+# Source0-md5:	9bd94714a18229eb9e9a2b79dda30e1f
+Patch0:		%{name}-am.patch
+URL:		https://www.gnu.org/software/ssw/
+BuildRequires:	autoconf
+BuildRequires:	automake
+BuildRequires:	glib2-devel >= 1:2.44
+BuildRequires:	gtk+3-devel >= 3.18.0
+BuildRequires:	intltool
+BuildRequires:	libtool
+BuildRequires:	texinfo
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+GNU Spread Sheet Widget is a library for Gtk+ which provides a widget
+for viewing and manipulating 2 dimensional tabular data in a manner
+similar to many popular spread sheet programs.
+
+The design follows the model-view-controller paradigm and is of
+complexity O(1) in both time and space. This means that it is
+efficient and fast even for very large data.
+
+Features commonly found in graphical user interfaces such as cut and
+paste, drag and drop and row/column labelling are also included.
+
+%description -l pl.UTF-8
+GNU Spread Sheet Widget to biblioteka Gtk+, która udostępnia widget do
+przeglądania i manipulowania dwuwymiarowymi danymi tabelarycznymi w
+sposób zbliżony do wielu popularnych programów do obsługi arkuszy
+kalkulacyjnych.
+
+Projekt jest zgodny z paradygmatem model-widok-kontroler i ma
+złożoność O (1) w czasie i przestrzeni. Oznacza to, że jest wydajny
+nawet dla bardzo dużych zestawów danych.
+
+Funkcje często spotykane w graficznych interfejsach użytkownika, takie
+jak wycinanie, wklejanie, przeciąganie i upuszczanie oraz
+etykietowanie wiersz / kolumna są również uwzględniane.
+
+%package devel
+Summary:	Header files for %{name} library
+Summary(pl.UTF-8):	Pliki nagłówkowe biblioteki %{name}
+Group:		Development/Libraries
+Requires:	%{name} = %{version}-%{release}
+
+%description devel
+Header files for %{name} library.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe biblioteki %{name}.
+
+%package static
+Summary:	Static %{name} library
+Summary(pl.UTF-8):	Statyczna biblioteka %{name}
+Group:		Development/Libraries
+Requires:	%{name}-devel = %{version}-%{release}
+
+%description static
+Static %{name} library.
+
+%description static -l pl.UTF-8
+Statyczna biblioteka %{name}.
+
+%prep
+%setup -q
+%patch0 -p1
+
+%build
+%{__libtoolize}
+%{__aclocal}
+%{__autoconf}
+%{__autoheader}
+%{__automake}
+%configure \
+	%{!?with_static_libs:--disable-static}
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+	DESTDIR=$RPM_BUILD_ROOT
+
+rm -f $RPM_BUILD_ROOT%{_infodir}/dir
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post	-p /sbin/ldconfig
+%postun	-p /sbin/ldconfig
+
+%post	devel -p /sbin/postshell
+-/usr/sbin/fix-info-dir -c %{_infodir}
+
+%postun	devel -p /sbin/postshell
+-/usr/sbin/fix-info-dir -c %{_infodir}
+
+%files
+%defattr(644,root,root,755)
+%doc AUTHORS ChangeLog NEWS README TODO
+%attr(755,root,root) %{_libdir}/libspread-sheet-widget.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libspread-sheet-widget.so.0
+
+%files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libspread-sheet-widget.so
+%{_libdir}/libspread-sheet-widget.la
+%{_includedir}/ssw-axis-model.h
+%{_includedir}/ssw-sheet-axis.h
+%{_includedir}/ssw-sheet.h
+%{_pkgconfigdir}/%{name}.pc
+%{_infodir}/%{name}.info*
+
+%if %{with static_libs}
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libspread-sheet-widget.a
+%endif
diff --git a/spread-sheet-widget-am.patch b/spread-sheet-widget-am.patch
new file mode 100644
index 0000000..6c2f6ae
--- /dev/null
+++ b/spread-sheet-widget-am.patch
@@ -0,0 +1,10 @@
+--- spread-sheet-widget-0.3/Makefile.am~	2018-07-04 07:24:48.000000000 +0200
++++ spread-sheet-widget-0.3/Makefile.am	2018-11-09 09:34:18.669724964 +0100
+@@ -25,6 +25,7 @@
+ 
+ 
+ lib_LTLIBRARIES = libspread-sheet-widget.la
++libspread_sheet_widget_la_LIBADD = $(GTK3_LIBS) $(GLIB2_LIBS) -lm
+ libspread_sheet_widget_la_CFLAGS = $(GTK3_CFLAGS) $(GLIB2_CFLAGS) -I ${top_builddir}/src
+ libspread_sheet_widget_la_SOURCES = \
+ 	src/ssw-html-parser.c \
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/spread-sheet-widget.git/commitdiff/0b13181f16ecdaa65cb5be4af974274efd1da8fe



More information about the pld-cvs-commit mailing list