Accepting request 359363 from home:edogawa

=I did as requested and moved the changelog to a newly created .changes file, via spec2changes.pl

OBS-URL: https://build.opensuse.org/request/show/359363
OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/non-ntk?expand=0&rev=1
This commit is contained in:
2016-02-23 16:17:28 +00:00
committed by Git OBS Bridge
commit 1ee6627be9
9 changed files with 4599 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

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

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
.osc

View File

@@ -0,0 +1,8 @@
[Desktop Entry]
Name=NTK FLUID
Comment=NTK GUI Designer
Exec=ntk-fluid %F
Terminal=false
Type=Application
MimeType=application/x-fluid;
Categories=Development;GUIDesigner;

4326
non-ntk-1.3.0-fsf.patch Normal file

File diff suppressed because it is too large Load Diff

View File

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

32
non-ntk-snapshot.sh Normal file
View File

@@ -0,0 +1,32 @@
#!/bin/bash
# $1 - revision number to checkout.
: ${1?"You must either provide desired revision number \"X\" to checkout: `basename $0` X
or fetch the latest revision by: `basename $0` HEAD"}
set -e
tmp=$(mktemp -d)
trap cleanup EXIT
cleanup() {
set +e
[ -z "$tmp" -o ! -d "$tmp" ] || rm -rf "$tmp"
}
unset CDPATH
pwd=$(pwd)
name=non-ntk
version=1.3.0
pushd "$tmp" >/dev/null
echo "Fetching git revision: $1"
git clone git://git.tuxfamily.org/gitroot/non/fltk.git $name-$version |tee $name.stdout
cd $name-$version
git reset $1
rm -rf .git* .waf*
cd ..
rm -rf $name.stdout
tar jcf "$pwd"/$name-$version-git$1.tar.bz2 $name-$version
echo "Written: $name-$version-git$1.tar.bz2"
popd >/dev/null

View File

@@ -0,0 +1,39 @@
diff -Nurp non-ntk-20130713.orig/wscript non-ntk-20130713.mod/wscript
--- non-ntk-20130713.orig/wscript 2013-07-20 15:40:28.000000000 +0200
+++ non-ntk-20130713.mod/wscript 2013-08-15 08:02:24.439092572 +0200
@@ -28,7 +28,7 @@ out = 'build'
children = [ 'fluid', 'test' ]
#children = []
-CFLAGS = [ '-pthread',
+CFLAGS = [
'-D_LARGEFILE64_SOURCE',
'-D_FILE_OFFSET_BITS=64' ]
@@ -218,7 +218,7 @@ def configure(conf):
print('')
def build(bld):
-
+ bld.env.append_value('LINKFLAGS','-Wl,--as-needed')
bld.makelib( source = '''
src/Fl_Cairo_Graphics_Driver.cxx
src/Fl.cxx
@@ -408,7 +408,7 @@ src/Fl_Gl_Overlay.cxx
src/Fl_Gl_Window.cxx
''',
target = 'ntk_gl',
- uselib = [ 'X11', 'DL', 'M', 'PTHREAD', 'GL'] )
+ uselib = [ 'X11', 'DL', 'M', 'GL'] )
bld( features = 'subst',
source = 'ntk.pc.in',
@@ -513,7 +513,7 @@ src/Fl_Gl_Window.cxx
bld.install_files( bld.env.INCLUDEDIR + '/ntk/FL', start_dir.ant_glob('*.H *.h'),
cwd=start_dir, relative_trick=True)
- bld.add_post_fun( run_ldconfig )
+ # bld.add_post_fun( run_ldconfig )
# bld.install_files( string.join( [ '${DATADIR}/doc', APPNAME ], '/' ), bld.path.ant_glob( 'doc/*.html doc/*.png' ) )

30
non-ntk.changes Normal file
View File

@@ -0,0 +1,30 @@
-------------------------------------------------------------------
Sat Feb 13 20:49:34 UTC 2016 - edogawa@aon.at
- adapt fedora package to meet openSUSE/OBS conventions
-------------------------------------------------------------------
Di Sep 3 00:00:00 CEST 2013 - brendan.jones.it@gmail.com
- Add exceptions to LGPLv2 license
- add desktop scriptlet post fluid
-------------------------------------------------------------------
Mo Sep 2 00:00:00 CEST 2013 - brendan.jones.it@gmail.com
- Adjust license
- Remove icon scriptlets
- Correct BRs
-------------------------------------------------------------------
Do Aug 29 00:00:00 CEST 2013 - brendan.jones.it@gmail.com
- Correct license
- Remove static libraries
- Correct optflags and BRs
-------------------------------------------------------------------
Sa Aug 17 00:00:00 CEST 2013 - brendan.jones.it@gmail.com
- Initial package

137
non-ntk.spec Normal file
View File

@@ -0,0 +1,137 @@
#
# spec file for package non-ntk
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: non-ntk
Version: 1.3.0
Release: 0
Summary: A fork of FLTK for the non audio suite
Group: Applications/Multimedia
# these are GPLv2+, FLTK derived code is LGPLv2+
License: LGPL-2.1+
URL: http://non.tuxfamily.org/
Source0: non-ntk-%{version}-git5719b00.tar.bz2
# script to create source tarball from git
# sh non-snapshot.sh $(rev)
Source1: non-ntk-snapshot.sh
# no desktop file in tarball
Source2: non-ntk-1.3.0-fluid.desktop
# sent upstream via email
Patch1: non-ntk-1.3.0-fsf.patch
Patch2: non-ntk-unused-shlib.patch
%if %{defined fedora}
BuildRequires: desktop-file-utils
BuildRequires: python
%endif
%if 0%{?suse_version}
BuildRequires: update-desktop-files
BuildRequires: gcc-c++
%endif
BuildRequires: cairo-devel
BuildRequires: libjpeg-devel
BuildRequires: pkgconfig(libpng)
BuildRequires: zlib-devel
BuildRequires: pkgconfig(glu)
BuildRequires: pkgconfig(xft)
%description
The Non Tool Kit (NTK) is a fork of the Fast Light ToolKit library, adding
improved graphics rendering via Cairo, a streamlined and enhanced widget set,
and other features designed to improve the appearance and performance of the
Non applications. NTK is included in the Non distribution.
%package -n libntk1
Summary: Development files for %{name}.
Group: Development/Libraries
%description -n libntk1
This package contains shared libraries for %{name}.
%package devel
Summary: Development files for %{name}
Group: Development/Libraries
Requires: libntk1 = %{version}-%{release}
%description devel
This package contains development files for %{name}.
%package fluid
Summary: Fast Light User Interface Designer
Requires: %{name}%{?_isa} = %{version}-%{release}
Requires: %{name}-devel
%description fluid
%{summary}, an interactive GUI designer for %{name}.
%prep
%setup -q
%patch1 -p1
%patch2 -p1
sed -i -e "s|append_value('C\(.*\)FLAGS', CFLAGS|append_value('C\1FLAGS','%{optflags}'.split(' ')|" \
wscript
%build
LDFLAGS="%{?__global_ldflags}" ./waf -v configure --prefix=%{_prefix} \
--libdir=%{_libdir} --enable-gl
./waf -v %{?_smp_mflags}
%install
./waf -v install --destdir=%{buildroot}
install -d -m 0755 %{buildroot}%{_datadir}/applications
install -D -m 0644 %{SOURCE2} %{buildroot}%{_datadir}/applications/ntk-fluid.desktop
rm %{buildroot}%{_libdir}/libntk*.a*
%if 0%{?suse_version}
%suse_update_desktop_file -i ntk-fluid Development GUIDesigner
%endif
%post -n libntk1 -p /sbin/ldconfig
%postun -n libntk1 -p /sbin/ldconfig
%postun fluid
update-desktop-database -q &> /dev/null
%post fluid
update-desktop-database -q &> /dev/null
%check
desktop-file-validate %{buildroot}%{_datadir}/applications/ntk-fluid.desktop
%files
%defattr(-,root,root)
%doc COPYING
%files -n libntk1
%defattr(-,root,root)
%{_libdir}/libntk*.so.*
%files devel
%defattr(-,root,root)
%{_libdir}/libntk.so
%{_libdir}/libntk_images.so
%{_libdir}/libntk_gl.so
%{_includedir}/ntk
%{_libdir}/pkgconfig/*
%files fluid
%defattr(-,root,root)
%{_datadir}/applications/ntk-fluid.desktop
%{_bindir}/ntk-*
%changelog