SHA256
1
0
forked from pool/gimp-dds

Accepting request 115383 from GNOME:Apps

New package contributed by community: gimp plugin for dds support

OBS-URL: https://build.opensuse.org/request/show/115383
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gimp-dds?expand=0&rev=1
This commit is contained in:
Stephan Kulow 2012-05-03 08:55:57 +00:00 committed by Git OBS Bridge
commit 80b3b35de0
7 changed files with 167 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,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:1d4556c94fef6c41f84ddb991e742dc603e8bf4a460103e53501f0386b3f56d8
size 937928

View File

@ -0,0 +1,25 @@
diff -Naur a/COPYING b/COPYING
--- a/COPYING 2012-04-14 10:41:07.499731273 -0500
+++ b/COPYING 2012-04-14 14:00:42.240225085 -0500
@@ -2,7 +2,7 @@
Version 2, June 1991
Copyright (C) 1989, 1991 Free Software Foundation, Inc.
- 59 Temple Place, Suite 330, Boston, MA 02111 USA
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
diff -Naur a/LICENSE b/LICENSE
--- a/LICENSE 2012-04-14 10:41:07.475731271 -0500
+++ b/LICENSE 2012-04-14 14:01:12.376226328 -0500
@@ -16,7 +16,7 @@
You should have received a copy of the GNU General Public License
along with this program; see the file COPYING. If not, write to
- the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- Boston, MA 02111-1307, USA.
+ the Free Software Foundation, 51 Franklin Street, Fifth Floor,
+ Boston, MA 02110-1301 USA.
*/

21
gimp-dds-fix-linker.patch Normal file
View File

@ -0,0 +1,21 @@
diff -Naur a/Makefile b/Makefile
--- a/Makefile 2012-04-14 10:41:07.499731273 -0500
+++ b/Makefile 2012-04-14 13:11:30.732103374 -0500
@@ -2,7 +2,7 @@
GIMPTOOL=gimptool-2.0
CC=gcc
-CFLAGS=-pipe -g -O2 -Wall $(shell pkg-config --cflags gtk+-2.0 gimp-2.0)
+CFLAGS=-pipe -g $(RPM_OPT_FLAGS) $(shell pkg-config --cflags gtk+-2.0 gimp-2.0)
OS=$(shell uname -s)
ifeq ($(OS), Linux)
@@ -21,7 +21,7 @@
all: $(TARGET)
$(TARGET): $(OBJS)
- $(CC) $(LDFLAGS) $(OBJS) $(LIBS) -o $(TARGET)
+ $(CC) $(LDFLAGS) $(OBJS) $(LIBS) -lm -o $(TARGET)
clean:
rm -f *.o $(TARGET)

9
gimp-dds.changes Normal file
View File

@ -0,0 +1,9 @@
-------------------------------------------------------------------
Sat Apr 14 19:22:49 UTC 2012 - malcolmlewis@opensuse.org
- Initial build.
- Add gimp-dds-fix-linker.patch: Fix linker and optflags
(http://code.google.com/p/gimp-dds/issues/detail?id=13).
- Add gimp-dds-fix-incorrect-fsf-address.patch: Fix incorrect FSF
address (http://code.google.com/p/gimp-dds/issues/detail?id=14).

85
gimp-dds.spec Normal file
View File

@ -0,0 +1,85 @@
#
# spec file for package gimp-dds
#
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2012 Malcolm J Lewis <malcolmlewis@opensuse.org>
#
# 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: gimp-dds
Version: 2.0.9+svn20120425_175
Release: 0
Summary: Plugin for GIMP providing support for the DDS format
License: GPL-2.0+
Group: Productivity/Graphics/Bitmap Editors
Url: http://code.google.com/p/gimp-dds/
# Source0 pulled via svn checkout http://gimp-dds.googlecode.com/svn/trunk/ gimp-dds
Source0: %{name}-%{version}.tar.bz2
# PATCH-FIX-UPSTREAM gimp-dds-fix-linker.patch malcolmlewis@opensuse.org -- Fix linker and optflags when building. http://code.google.com/p/gimp-dds/issues/detail?id=13
Patch0: gimp-dds-fix-linker.patch
# PATCH-FIX-UPSTREAM gimp-dds-fix-incorrect-fsf-address.patch malcolmlewis@opensuse.org -- Fix incorrect FSF address http://code.google.com/p/gimp-dds/issues/detail?id=14
Patch1: gimp-dds-fix-incorrect-fsf-address.patch
BuildRequires: gimp-devel >= 2.6
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
This GIMP plugin allows to load and save images in the Direct Draw
Surface (DDS) format.
%package -n gimp-plugin-dds
Summary: Plugin for GIMP providing support for the DDS format
Group: Productivity/Graphics/Bitmap Editors
Requires: gimp >= 2.6
%description -n gimp-plugin-dds
This GIMP plugin allows to load and save images in the Direct Draw
Surface (DDS) format.
%package -n gimp-plugin-dds-doc
Summary: Plugin for GIMP providing support for the DDS format -- Documentation
Group: Documentation/Other
Requires: gimp-plugin-dds = %{version}
%description -n gimp-plugin-dds-doc
This GIMP plugin allows to load and save images in the Direct Draw
Surface (DDS) format.
This package contains documentation for the following features of the
DDS plugin:
+ Saving general images
+ Saving cube map images
+ Saving volume map images
%prep
%setup -q -n %{name}
%patch0 -p1
%patch1 -p1
%build
make %{?_smp_mflags}
%install
install -D -m 0755 dds %{buildroot}%{_libdir}/gimp/2.0/plug-ins/dds
%files -n gimp-plugin-dds
%defattr(-,root,root,-)
%doc COPYING LICENSE README README.dxt TODO
%{_libdir}/gimp/2.0/plug-ins/dds
%files -n gimp-plugin-dds-doc
%defattr(-,root,root,-)
%doc doc/*
%changelog