renamed from libEMF to libemf [release 1.0.13-2mamba;Fri Dec 06 2024]
This commit is contained in:
parent
7cfc5552d6
commit
f1d6ffa165
@ -1,4 +1,4 @@
|
|||||||
# libEMF
|
# libemf
|
||||||
|
|
||||||
LibEMF is a C/C++ library which provides a drawing toolkit based on ECMA-234.
|
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 general purpose of this library is to create vector graphics files on POSIX systems which can be imported into StarOffice/OpenOffice.
|
||||||
|
@ -1,75 +0,0 @@
|
|||||||
diff -pur libEMF-1.0/libemf/libemf.cpp libEMF-1.0-gcc3/libemf/libemf.cpp
|
|
||||||
--- libEMF-1.0/libemf/libemf.cpp 2002-01-29 04:37:54.000000000 +0100
|
|
||||||
+++ libEMF-1.0-gcc3/libemf/libemf.cpp 2005-07-28 14:27:11.000000000 +0200
|
|
||||||
@@ -48,7 +48,7 @@ namespace EMF {
|
|
||||||
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 @@ extern "C" {
|
|
||||||
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 @@ extern "C" {
|
|
||||||
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 @@ extern "C" {
|
|
||||||
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 @@ extern "C" {
|
|
||||||
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 @@ extern "C" {
|
|
||||||
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 -pur libEMF-1.0/libemf/libemf.h libEMF-1.0-gcc3/libemf/libemf.h
|
|
||||||
--- libEMF-1.0/libemf/libemf.h 2002-01-29 05:54:27.000000000 +0100
|
|
||||||
+++ libEMF-1.0-gcc3/libemf/libemf.h 2005-07-28 14:27:49.000000000 +0200
|
|
||||||
@@ -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>
|
|
@ -1,21 +1,21 @@
|
|||||||
Name: libEMF
|
Name: libemf
|
||||||
Version: 1.0.13
|
Version: 1.0.13
|
||||||
Release: 1mamba
|
Release: 2mamba
|
||||||
Summary: Library for manipulation with Enhanced MetaFile (EMF, ECMA-234)
|
Summary: Library for manipulation with Enhanced MetaFile (EMF, ECMA-234)
|
||||||
Group: System/Libraries
|
Group: System/Libraries
|
||||||
Vendor: openmamba
|
Vendor: openmamba
|
||||||
Distribution: openmamba
|
Distribution: openmamba
|
||||||
Packager: Aleph0 <aleph0@openmamba.org>
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
||||||
URL: http://libemf.sourceforge.net
|
URL: https://libemf.sourceforge.net/
|
||||||
Source: https://sourceforge.net/projects/libemf/files/libemf/%{version}/libemf-%{version}.tar.gz
|
Source: https://sourceforge.net/projects/libemf/files/libemf/%{version}/libemf-%{version}.tar.gz
|
||||||
Patch: %{name}-1.0-gcc3.patch
|
|
||||||
License: GPL
|
License: GPL
|
||||||
## AUTOBUILDREQ-BEGIN
|
## AUTOBUILDREQ-BEGIN
|
||||||
BuildRequires: glibc-devel
|
BuildRequires: glibc-devel
|
||||||
BuildRequires: libgcc
|
BuildRequires: libgcc
|
||||||
BuildRequires: libstdc++6-devel
|
BuildRequires: libstdc++6-devel
|
||||||
## AUTOBUILDREQ-END
|
## AUTOBUILDREQ-END
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
Provides: libEMF
|
||||||
|
Obsoletes: libEMF < 1.0.13-2mamba
|
||||||
|
|
||||||
%description
|
%description
|
||||||
LibEMF is a C/C++ library which provides a drawing toolkit based on ECMA-234.
|
LibEMF is a C/C++ library which provides a drawing toolkit based on ECMA-234.
|
||||||
@ -27,6 +27,8 @@ Group: Development/Libraries
|
|||||||
Summary: Static libraries and headers for %{name}
|
Summary: Static libraries and headers for %{name}
|
||||||
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
|
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
|
||||||
Requires: %{name}-tools = %{?epoch:%epoch:}%{version}-%{release}
|
Requires: %{name}-tools = %{?epoch:%epoch:}%{version}-%{release}
|
||||||
|
Provides: libEMF-devel
|
||||||
|
Obsoletes: libEMF-devel < 1.0.13-2mamba
|
||||||
|
|
||||||
%description devel
|
%description devel
|
||||||
LibEMF is a C/C++ library which provides a drawing toolkit based on ECMA-234.
|
LibEMF is a C/C++ library which provides a drawing toolkit based on ECMA-234.
|
||||||
@ -37,6 +39,8 @@ This package contains static libraries and header files needed for development.
|
|||||||
Group: Applications/Graphics
|
Group: Applications/Graphics
|
||||||
Summary: Tools provided with %{name}
|
Summary: Tools provided with %{name}
|
||||||
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
|
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
|
||||||
|
Provides: libEMF-tools
|
||||||
|
Obsoletes: libEMF-tools < 1.0.13-2mamba
|
||||||
|
|
||||||
%description tools
|
%description tools
|
||||||
LibEMF is a C/C++ library which provides a drawing toolkit based on ECMA-234.
|
LibEMF is a C/C++ library which provides a drawing toolkit based on ECMA-234.
|
||||||
@ -46,8 +50,7 @@ This package contains the tools provided with %{name}.
|
|||||||
%debug_package
|
%debug_package
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n libemf-%{version}
|
%setup -q
|
||||||
#%patch -p1
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%configure
|
%configure
|
||||||
@ -60,9 +63,6 @@ This package contains the tools provided with %{name}.
|
|||||||
%clean
|
%clean
|
||||||
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
|
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
|
||||||
|
|
||||||
%post -p /sbin/ldconfig
|
|
||||||
%postun -p /sbin/ldconfig
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_libdir}/libEMF.so.*
|
%{_libdir}/libEMF.so.*
|
||||||
@ -75,7 +75,6 @@ This package contains the tools provided with %{name}.
|
|||||||
%dir %{_includedir}/libEMF/wine
|
%dir %{_includedir}/libEMF/wine
|
||||||
%{_includedir}/libEMF/wine/*.h
|
%{_includedir}/libEMF/wine/*.h
|
||||||
%{_libdir}/libEMF.a
|
%{_libdir}/libEMF.a
|
||||||
%{_libdir}/libEMF.la
|
|
||||||
%{_libdir}/libEMF.so
|
%{_libdir}/libEMF.so
|
||||||
%doc doc/html/*
|
%doc doc/html/*
|
||||||
%doc ChangeLog INSTALL NEWS README
|
%doc ChangeLog INSTALL NEWS README
|
||||||
@ -86,6 +85,9 @@ This package contains the tools provided with %{name}.
|
|||||||
%doc COPYING
|
%doc COPYING
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Dec 06 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 1.0.13-2mamba
|
||||||
|
- renamed from libEMF to libemf
|
||||||
|
|
||||||
* Sat Dec 05 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 1.0.13-1mamba
|
* Sat Dec 05 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 1.0.13-1mamba
|
||||||
- update to 1.0.13
|
- update to 1.0.13
|
||||||
- added debug package and -tools subpackage
|
- added debug package and -tools subpackage
|
Reference in New Issue
Block a user