This commit is contained in:
commit
d70acd7584
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal 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
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.osc
|
3
libEMF-1.0.tar.bz2
Normal file
3
libEMF-1.0.tar.bz2
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:adb3064d7a2206b4e8557c989239effef5e415079f48e3242be9195488c69344
|
||||
size 540829
|
75
libEMF-gcc3-fix.diff
Normal file
75
libEMF-gcc3-fix.diff
Normal file
@ -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 <iostream>
|
||||
#include <cmath>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
#include <functional>
|
||||
+#include <backward/function.h>
|
||||
#include <algorithm>
|
||||
|
||||
#include <config.h>
|
25
libEMF.changes
Normal file
25
libEMF.changes
Normal file
@ -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.
|
||||
|
122
libEMF.spec
Normal file
122
libEMF.spec
Normal file
@ -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 <libemf@lignumcomputing.com>
|
||||
|
||||
|
||||
%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 <libemf@lignumcomputing.com>
|
||||
|
||||
%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.
|
Loading…
Reference in New Issue
Block a user