[libmspub] initial import

David Tardon dtardon at fedoraproject.org
Thu Jun 7 16:01:35 UTC 2012


commit d1f4f5907873dce1bc14a11a46eb92b91537fed9
Author: David Tardon <dtardon at redhat.com>
Date:   Thu Jun 7 17:59:57 2012 +0200

    initial import

 .gitignore                            |    1 +
 0001-Oops-wrong-license-headers.patch |  110 +++++++++++++++++++++++++++++++++
 libmspub.spec                         |  100 ++++++++++++++++++++++++++++++
 sources                               |    1 +
 4 files changed, 212 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..ad5325a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/libmspub-0.0.0.tar.xz
diff --git a/0001-Oops-wrong-license-headers.patch b/0001-Oops-wrong-license-headers.patch
new file mode 100644
index 0000000..ce32693
--- /dev/null
+++ b/0001-Oops-wrong-license-headers.patch
@@ -0,0 +1,110 @@
+From 0b30f5542a2dee7d73c546617a5ea612e17816b1 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Fridrich=20=C5=A0trba?= <fridrich.strba at bluewin.ch>
+Date: Thu, 7 Jun 2012 09:54:29 +0200
+Subject: [PATCH] Oops, wrong license headers
+
+---
+ src/conv/raw/pub2raw.cpp  |   34 +++++++++++++++++++++-------------
+ src/lib/MSPUBDocument.cpp |   35 +++++++++++++++++++++--------------
+ 2 files changed, 42 insertions(+), 27 deletions(-)
+
+diff --git a/src/conv/raw/pub2raw.cpp b/src/conv/raw/pub2raw.cpp
+index 2a3a455..22cab3d 100644
+--- a/src/conv/raw/pub2raw.cpp
++++ b/src/conv/raw/pub2raw.cpp
+@@ -1,23 +1,31 @@
+ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
+ /* libmspub
++ * Version: MPL 1.1 / GPLv2+ / LGPLv2+
++ *
++ * The contents of this file are subject to the Mozilla Public License Version
++ * 1.1 (the "License"); you may not use this file except in compliance with
++ * the License or as specified alternatively below. You may obtain a copy of
++ * the License at http://www.mozilla.org/MPL/
++ *
++ * Software distributed under the License is distributed on an "AS IS" basis,
++ * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
++ * for the specific language governing rights and limitations under the
++ * License.
++ *
++ * Major Contributor(s):
++ * Copyright (C) 2005-2012 Fridrich Strba <fridrich.strba at bluewin.ch>
+  * Copyright (C) 2006 Ariya Hidayat (ariya at kde.org)
+- * Copyright (C) 2005 Fridrich Strba (fridrich.strba at bluewin.ch)
+  * Copyright (C) 2004 Marc Oude Kotte (marc at solcon.nl)
+  *
+- * This library is free software; you can redistribute it and/or
+- * modify it under the terms of the GNU Library General Public
+- * License as published by the Free Software Foundation; either
+- * version 2 of the License, or (at your option) any later version.
++ * All Rights Reserved.
+  *
+- * This library is distributed in the hope that it will be useful,
+- * but WITHOUT ANY WARRANTY; without even the implied warranty of
+- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+- * Library General Public License for more details.
++ * For minor contributions see the git repository.
+  *
+- * You should have received a copy of the GNU Library General Public
+- * License along with this library; if not, write to the
+- * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+- * Boston, MA  02111-1301 USA
++ * Alternatively, the contents of this file may be used under the terms of
++ * either the GNU General Public License Version 2 or later (the "GPLv2+"), or
++ * the GNU Lesser General Public License Version 2 or later (the "LGPLv2+"),
++ * in which case the provisions of the GPLv2+ or the LGPLv2+ are applicable
++ * instead of those above.
+  */
+ 
+ #include <stdio.h>
+diff --git a/src/lib/MSPUBDocument.cpp b/src/lib/MSPUBDocument.cpp
+index 17d6d58..2c59987 100644
+--- a/src/lib/MSPUBDocument.cpp
++++ b/src/lib/MSPUBDocument.cpp
+@@ -1,22 +1,29 @@
+ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
+ /* libmspub
+- * Copyright (C) 2006 Ariya Hidayat (ariya at kde.org)
+- * Copyright (C) 2007 Fridrich Strba (fridrich.strba at bluewin.ch)
++ * Version: MPL 1.1 / GPLv2+ / LGPLv2+
+  *
+- * This library is free software; you can redistribute it and/or
+- * modify it under the terms of the GNU Library General Public
+- * License as published by the Free Software Foundation; either
+- * version 2 of the License, or (at your option) any later version.
++ * The contents of this file are subject to the Mozilla Public License Version
++ * 1.1 (the "License"); you may not use this file except in compliance with
++ * the License or as specified alternatively below. You may obtain a copy of
++ * the License at http://www.mozilla.org/MPL/
+  *
+- * This library is distributed in the hope that it will be useful,
+- * but WITHOUT ANY WARRANTY; without even the implied warranty of
+- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+- * Library General Public License for more details.
++ * Software distributed under the License is distributed on an "AS IS" basis,
++ * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
++ * for the specific language governing rights and limitations under the
++ * License.
+  *
+- * You should have received a copy of the GNU Library General Public
+- * License along with this library; if not, write to the
+- * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+- * Boston, MA  02111-1301 USA
++ * Major Contributor(s):
++ * Copyright (C) 2012 Fridrich Strba <fridrich.strba at bluewin.ch>
++ *
++ * All Rights Reserved.
++ *
++ * For minor contributions see the git repository.
++ *
++ * Alternatively, the contents of this file may be used under the terms of
++ * either the GNU General Public License Version 2 or later (the "GPLv2+"), or
++ * the GNU Lesser General Public License Version 2 or later (the "LGPLv2+"),
++ * in which case the provisions of the GPLv2+ or the LGPLv2+ are applicable
++ * instead of those above.
+  */
+ 
+ #include <sstream>
+-- 
+1.7.7
+
diff --git a/libmspub.spec b/libmspub.spec
new file mode 100644
index 0000000..356f067
--- /dev/null
+++ b/libmspub.spec
@@ -0,0 +1,100 @@
+Name: libmspub
+Version: 0.0.0
+Release: 1%{?dist}
+Summary: A library providing ability to interpret and import Microsoft Publisher files
+
+Group: System Environment/Libraries
+License: GPLv2+ or LGPLv2+ or MPLv1.1
+URL: http://www.freedesktop.org/wiki/Software/libmspub
+Source: http://dev-www.libreoffice.org/src/%{name}-%{version}.tar.xz
+Patch0: 0001-Oops-wrong-license-headers.patch
+
+BuildRequires: boost-devel
+BuildRequires: doxygen
+BuildRequires: libwpd-devel
+BuildRequires: libwpg-devel
+BuildRequires: zlib-devel
+
+%description
+Libmspub is library providing ability to interpret and import Microsoft
+Publisher content into various applications. You can find it being used
+in libreoffice.
+
+%package devel
+Summary: Development files for %{name}
+Group: Development/Libraries
+Requires: %{name}%{?_isa} = %{version}-%{release}
+Requires: pkgconfig
+
+%description devel
+The %{name}-devel package contains libraries and header files for
+developing applications that use %{name}.
+
+%package doc
+Summary: Documentation of %{name} API
+Group: Documentation
+BuildArch: noarch
+
+%description doc
+The %{name}-doc package contains documentation files for %{name}.
+
+%package tools
+Summary: Tools to transform Microsoft Publisher files into other formats
+Group: Applications/Publishing
+Requires: %{name}%{?_isa} = %{version}-%{release}
+
+%description tools
+Tools to transform Microsoft Publisher files into other formats.
+Currently supported: XHTML, raw.
+
+
+%prep
+%setup -q
+%patch0 -p1 -b .Oops-wrong-license-headers.patch
+
+
+%build
+%configure --disable-static --disable-werror
+sed -i \
+    -e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' \
+    -e 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' \
+    libtool
+make %{?_smp_mflags}
+
+
+%install
+make install DESTDIR=%{buildroot}
+rm -f %{buildroot}/%{_libdir}/*.la
+
+
+%post -p /sbin/ldconfig
+
+
+%postun -p /sbin/ldconfig
+
+
+%files
+%doc AUTHORS ChangeLog COPYING.*
+%{_libdir}/%{name}-0.0.so.*
+
+
+%files devel
+%{_includedir}/%{name}-0.0
+%{_libdir}/%{name}-0.0.so
+%{_libdir}/pkgconfig/%{name}-0.0.pc
+
+
+%files doc
+%doc COPYING.*
+%dir %{_docdir}/%{name}
+%{_docdir}/%{name}/html
+
+
+%files tools
+%{_bindir}/pub2raw
+%{_bindir}/pub2xhtml
+
+
+%changelog
+* Thu Jun 07 2012 David Tardon <dtardon at redhat.com> 0.0.0-1
+- initial import
diff --git a/sources b/sources
index e69de29..b38677a 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+03b483031d5e3134552298e79e322f25  libmspub-0.0.0.tar.xz


More information about the scm-commits mailing list