From f60e57b2eeea66ec0d1a9830fb14bdd00f547d24e5b6d03a1b679744eb092d2b Mon Sep 17 00:00:00 2001 From: Pascal Bleser Date: Thu, 21 Aug 2008 06:07:02 +0000 Subject: [PATCH] initial build OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libstfl?expand=0&rev=1 --- .gitattributes | 23 ++++++++++ .gitignore | 1 + libstfl.spec | 105 ++++++++++++++++++++++++++++++++++++++++++++ stfl-0.19.tar.gz | 3 ++ stfl-lib64.patch | 14 ++++++ stfl-ncurses.patch | 11 +++++ stfl-optflags.patch | 12 +++++ 7 files changed, 169 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 libstfl.spec create mode 100644 stfl-0.19.tar.gz create mode 100644 stfl-lib64.patch create mode 100644 stfl-ncurses.patch create mode 100644 stfl-optflags.patch diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/libstfl.spec b/libstfl.spec new file mode 100644 index 0000000..98d8417 --- /dev/null +++ b/libstfl.spec @@ -0,0 +1,105 @@ +# norootforbuild + +Name: libstfl +Version: 0.19 +Release: 0 +Summary: Structured Terminal Forms Library +Source: http://www.clifford.at/stfl/stfl-%{version}.tar.gz +Patch1: stfl-optflags.patch +Patch2: stfl-ncurses.patch +Patch3: stfl-lib64.patch +URL: http://www.clifford.at/stfl/ +Group: System/Libraries +License: GNU Lesser General Public License version 3 (LGPL v3) +BuildRoot: %{_tmppath}/build-%{name}-%{version} +#BuildRequires: swig perl python python-devel ruby ruby-devel +BuildRequires: ncurses-devel +BuildRequires: gcc make glibc-devel + +%description +STFL is a library which implements a curses-based widget set for text +terminals. The STFL API can be used from C, SPL, Python, Perl and Ruby. Since +the API is only 14 simple function calls big and there are already generic +SWIG bindings it is very easy to port STFL to additional scripting languages. + +A special language (the Structured Terminal Forms Language) is used to +describe STFL GUIs. The language is designed to be easy and fast to write so +an application programmer does not need to spend ages fiddling around with the +GUI and can concentrate on the more interesting programming tasks. + + + + +Authors: +-------- + Clifford Wolf + +%package -n libstfl-devel +Summary: Structured Terminal Forms Library +Group: Development/Libraries/C and C++ +Requires: ncurses-devel + +%description -n libstfl-devel +STFL is a library which implements a curses-based widget set for text +terminals. The STFL API can be used from C, SPL, Python, Perl and Ruby. Since +the API is only 14 simple function calls big and there are already generic +SWIG bindings it is very easy to port STFL to additional scripting languages. + +A special language (the Structured Terminal Forms Language) is used to +describe STFL GUIs. The language is designed to be easy and fast to write so +an application programmer does not need to spend ages fiddling around with the +GUI and can concentrate on the more interesting programming tasks. + + + + +Authors: +-------- + Clifford Wolf + +%debug_package +%prep +%setup -q -n "stfl-%{version}" +%patch1 +%patch2 +%if "%{_lib}"=="lib64" +%patch3 +%endif + +%build +# -j breaks build +%__make %{?jobs:-j%{jobs}} \ + prefix="%{_prefix}" \ + OPTFLAGS="%{optflags}" \ + FOUND_SPL=0 \ + FOUND_SWIG=0 \ + FOUND_RUBY=0 \ + FOUND_PERL=0 \ + FOUND_PYTHON=0 + +%install +%makeinstall \ + prefix="%{_prefix}" \ + FOUND_SPL=0 \ + FOUND_SWIG=0 \ + FOUND_RUBY=0 \ + FOUND_PERL=0 \ + FOUND_PYTHON=0 + +%clean +%__rm -rf "%{buildroot}" + +%files -n libstfl-devel +%defattr(-,root,root) +%doc COPYING README +%{_includedir}/stfl.h +%{_libdir}/libstfl.a + +%changelog +* Thu Aug 21 2008 Pascal Bleser 0.19 +- new package + +# Local Variables: +# mode: rpm-spec +# tab-width: 3 +# End: diff --git a/stfl-0.19.tar.gz b/stfl-0.19.tar.gz new file mode 100644 index 0000000..78052eb --- /dev/null +++ b/stfl-0.19.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:658aa189ce2751b0d15a1f2ea8f08fe8bf787dbc1049d606cb14885f73c2e33d +size 40182 diff --git a/stfl-lib64.patch b/stfl-lib64.patch new file mode 100644 index 0000000..925856b --- /dev/null +++ b/stfl-lib64.patch @@ -0,0 +1,14 @@ +--- Makefile.orig 2008-08-21 01:21:17.000000000 +0200 ++++ Makefile 2008-08-21 08:03:17.000000000 +0200 +@@ -50,9 +50,9 @@ + mv -f Makefile.deps_new Makefile.deps + + install: all +- mkdir -p $(DESTDIR)$(prefix)/lib ++ mkdir -p $(DESTDIR)$(prefix)/lib64 + mkdir -p $(DESTDIR)$(prefix)/include +- install -m 644 libstfl.a $(DESTDIR)$(prefix)/lib/ ++ install -m 644 libstfl.a $(DESTDIR)$(prefix)/lib64/ + install -m 644 stfl.h $(DESTDIR)$(prefix)/include/ + + ifeq ($(FOUND_SPL),1) diff --git a/stfl-ncurses.patch b/stfl-ncurses.patch new file mode 100644 index 0000000..7271799 --- /dev/null +++ b/stfl-ncurses.patch @@ -0,0 +1,11 @@ +--- stfl_internals.h.orig 2008-08-21 00:26:20.000000000 +0200 ++++ stfl_internals.h 2008-08-21 00:26:38.000000000 +0200 +@@ -28,7 +28,7 @@ + #endif + + #include "stfl.h" +-#include ++#include + #include + + struct stfl_widget_type; diff --git a/stfl-optflags.patch b/stfl-optflags.patch new file mode 100644 index 0000000..e8642c3 --- /dev/null +++ b/stfl-optflags.patch @@ -0,0 +1,12 @@ +--- Makefile.orig 2008-08-21 01:21:17.000000000 +0200 ++++ Makefile 2008-08-21 07:53:03.000000000 +0200 +@@ -21,7 +21,8 @@ + include Makefile.cfg + + export CC = gcc -pthread +-export CFLAGS += -I. -Wall -Os -ggdb -D_GNU_SOURCE -fPIC ++export OPTFLAGS = -Os -ggdb ++export CFLAGS += -I. -Wall $(OPTFLAGS) -D_GNU_SOURCE -fPIC + export LDLIBS += -lncursesw + + all: libstfl.a example