From 0b13181f16ecdaa65cb5be4af974274efd1da8fe Mon Sep 17 00:00:00 2001 From: =?utf8?q?Adam=20Go=C5=82=C4=99biowski?= Date: Fri, 9 Nov 2018 09:52:30 +0100 Subject: [PATCH] - new --- spread-sheet-widget-am.patch | 10 +++ spread-sheet-widget.spec | 129 +++++++++++++++++++++++++++++++++++ 2 files changed, 139 insertions(+) create mode 100644 spread-sheet-widget-am.patch create mode 100644 spread-sheet-widget.spec 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 \ 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 -- 2.44.0