From d70acd75849b995f797723721ed10e9e188db0337ca4603380d5169585475fcb Mon Sep 17 00:00:00 2001 From: OBS User unknown Date: Mon, 15 Jan 2007 23:21:18 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libEMF?expand=0&rev=1 --- .gitattributes | 23 ++++++++ .gitignore | 1 + libEMF-1.0.tar.bz2 | 3 ++ libEMF-gcc3-fix.diff | 75 ++++++++++++++++++++++++++ libEMF.changes | 25 +++++++++ libEMF.spec | 122 +++++++++++++++++++++++++++++++++++++++++++ ready | 0 7 files changed, 249 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 libEMF-1.0.tar.bz2 create mode 100644 libEMF-gcc3-fix.diff create mode 100644 libEMF.changes create mode 100644 libEMF.spec create mode 100644 ready 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/libEMF-1.0.tar.bz2 b/libEMF-1.0.tar.bz2 new file mode 100644 index 0000000..f3cdd05 --- /dev/null +++ b/libEMF-1.0.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:adb3064d7a2206b4e8557c989239effef5e415079f48e3242be9195488c69344 +size 540829 diff --git a/libEMF-gcc3-fix.diff b/libEMF-gcc3-fix.diff new file mode 100644 index 0000000..308d5eb --- /dev/null +++ b/libEMF-gcc3-fix.diff @@ -0,0 +1,75 @@ +diff -ru libEMF-1.0.orig/libemf/libemf.cpp libEMF-1.0/libemf/libemf.cpp +--- libEMF-1.0.orig/libemf/libemf.cpp 2002-01-29 04:37:54.000000000 +0100 ++++ libEMF-1.0/libemf/libemf.cpp 2002-11-20 19:03:37.000000000 +0100 +@@ -48,7 +48,7 @@ + be32 = !be16; + + if ( be32 != be16 ) { +- cerr << "endian-ness not consistent between short's and int's!" << endl; ++ std::cerr << "endian-ness not consistent between short's and int's!" << std::endl; + ::abort(); + } + +@@ -849,7 +849,7 @@ + if ( dc->fp ) { + + std::for_each( dc->records.begin(), dc->records.end(), +- std::bind2nd( std::mem_fun1( &EMF::METARECORD::serialize ), ++ std::bind2nd( mem_fun1( &EMF::METARECORD::serialize ), + dc->ds ) ); + fclose( dc->fp ); + +@@ -896,7 +896,7 @@ + if ( dc->fp ) { + + std::for_each( dc->records.begin(), dc->records.end(), +- std::bind2nd( std::mem_fun1( &EMF::METARECORD::serialize ), ++ std::bind2nd( mem_fun1( &EMF::METARECORD::serialize ), + dc->ds ) ); + } + +@@ -1032,7 +1032,7 @@ + if ( feof( fp ) ) break; + + if ( emr.nSize == 0 ) { +- cerr << "GetEnhMetaFileW error: record size == 0. cannot continue" << endl; ++ std::cerr << "GetEnhMetaFileW error: record size == 0. cannot continue" << std::endl; + fclose( fp ); + return 0; + } +@@ -1050,8 +1050,8 @@ + dc->appendRecord( record ); + } + else +- cerr << "GetEnhMetaFileW warning: read unknown record type " << emr.iType +- << " of size " << emr.nSize << endl; ++ std::cerr << "GetEnhMetaFileW warning: read unknown record type " << emr.iType ++ << " of size " << emr.nSize << std::endl; + + // Regardless, position ourselves at the next record. + fseek( fp, next_position, SEEK_SET ); +@@ -1108,7 +1108,7 @@ + if ( dc == 0 ) return; + + std::for_each( dc->records.begin(), dc->records.end(), +- std::mem_fun( &EMF::METARECORD::edit ) ); ++ mem_fun( &EMF::METARECORD::edit ) ); + #endif /* ENABLE_EDITING */ + } + +diff -ru libEMF-1.0.orig/libemf/libemf.h libEMF-1.0/libemf/libemf.h +--- libEMF-1.0.orig/libemf/libemf.h 2002-01-29 05:54:27.000000000 +0100 ++++ libEMF-1.0/libemf/libemf.h 2002-11-20 19:08:00.000000000 +0100 +@@ -21,10 +21,12 @@ + #ifndef _LIBEMF_H + #define _LIBEMF_H 1 + ++#include + #include + #include + #include + #include ++#include + #include + + #include diff --git a/libEMF.changes b/libEMF.changes new file mode 100644 index 0000000..ba9b90a --- /dev/null +++ b/libEMF.changes @@ -0,0 +1,25 @@ +------------------------------------------------------------------- +Wed Jan 25 21:37:21 CET 2006 - mls@suse.de + +- converted neededforbuild to BuildRequires + +------------------------------------------------------------------- +Thu Sep 29 03:17:34 CEST 2005 - dmueller@suse.de + + - add norootforbuild + +------------------------------------------------------------------- +Sat Aug 23 17:18:14 CEST 2003 - ro@suse.de + +- added ExclusiveArch to specfile + +------------------------------------------------------------------- +Sun Jun 15 18:43:50 CEST 2003 - coolo@suse.de + +- package %_docdir + +------------------------------------------------------------------- +Thu Nov 21 12:50:22 CET 2002 - sbrabec@suse.cz + +- New package. + diff --git a/libEMF.spec b/libEMF.spec new file mode 100644 index 0000000..7aeda5a --- /dev/null +++ b/libEMF.spec @@ -0,0 +1,122 @@ +# +# spec file for package libEMF (Version 1.0) +# +# Copyright (c) 2005 SUSE LINUX Products GmbH, Nuernberg, Germany. +# This file and all modifications and additions to the pristine +# package are under the same license as the package itself. +# +# Please submit bugfixes or comments via http://www.suse.de/feedback/ +# + +# norootforbuild + +Name: libEMF +BuildRequires: gcc-c++ +License: LGPL +Group: System/Libraries +Autoreqprov: on +Version: 1.0 +Release: 185 +Source0: %{name}-%{version}.tar.bz2 +Patch0: libEMF-gcc3-fix.diff +URL: http://libemf.sourceforge.net/ +BuildRoot: %{_tmppath}/%{name}-%{version}-build +Summary: Library for manipulation with Enhanced MetaFile (EMF, ECMA-234) +%package devel +Group: System/Libraries +Autoreqprov: on +Summary: Library for manipulation with Enhanced MetaFile (EMF, ECMA-234) +Requires: %name = %version +# add platforms with a wine port here +ExclusiveArch: axp %ix86 ppc sparc + +%description +LibEMF is a C/C++ library which provides a drawing toolkit based on +ECMA-234. The general purpose of this library is to create vector +graphics files on POSIX systems which can be imported into +StarOffice/OpenOffice. The Enhanced MetaFile (EMF) is one of the two +color vector graphics format which is "vectorially" understood by +SO/OO. The EMF format also has the additional advantage that it can be +"broken" into its constituent components and edited like any other +SO/OO graphics object. + + + +Authors: +-------- + Allen Barnett + + +%description devel +LibEMF is a C/C++ library which provides a drawing toolkit based on +ECMA-234. The general purpose of this library is to create vector +graphics files on POSIX systems which can be imported into +StarOffice/OpenOffice. The Enhanced MetaFile (EMF) is one of the two +color vector graphics format which is "vectorially" understood by +SO/OO. The EMF format also has the additional advantage that it can be +"broken" into its constituent components and edited like any other +SO/OO graphics object. + + + +Authors: +-------- + Allen Barnett + +%define prefix /usr +%prep +%setup +%patch0 -p1 +%{?suse_update_config:%{suse_update_config}} + +%build +export CFLAGS="$RPM_OPT_FLAGS" +export CXXFLAGS="$RPM_OPT_FLAGS" +./configure \ + --prefix=%{prefix} \ + --libdir=%{_libdir} \ + --mandir=%{_mandir} \ + --infodir=%{_infodir} \ + --sysconfdir=%{_sysconfdir} +make + +%install +rm -rf $RPM_BUILD_ROOT +make DESTDIR=$RPM_BUILD_ROOT install +mkdir -p $RPM_BUILD_ROOT/usr/share/doc/packages/%{name} +cp -R AUTHORS COPYING COPYING.LIB ChangeLog NEWS README doc/html $RPM_BUILD_ROOT/usr/share/doc/packages/%{name} + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-, root, root) +%dir /usr/share/doc/packages/%{name} +%doc /usr/share/doc/packages/%{name}/AUTHORS +%doc /usr/share/doc/packages/%{name}/COPYING +%doc /usr/share/doc/packages/%{name}/COPYING.LIB +%doc /usr/share/doc/packages/%{name}/ChangeLog +%doc /usr/share/doc/packages/%{name}/NEWS +%doc /usr/share/doc/packages/%{name}/README +%{prefix}/bin/* +%{_libdir}/*.so.* + +%files devel +%defattr(-, root, root) +%{prefix}/include/libEMF +%{_libdir}/*.so +%{_libdir}/*.*a +%defattr(-, root, root) +%doc /usr/share/doc/packages/%{name}/html + +%changelog -n libEMF +* Wed Jan 25 2006 - mls@suse.de +- converted neededforbuild to BuildRequires +* Thu Sep 29 2005 - dmueller@suse.de +- add norootforbuild +* Sat Aug 23 2003 - ro@suse.de +- added ExclusiveArch to specfile +* Sun Jun 15 2003 - coolo@suse.de +- package %%_docdir +* Thu Nov 21 2002 - sbrabec@suse.cz +- New package. diff --git a/ready b/ready new file mode 100644 index 0000000..473a0f4