diff options
author | CoprDistGit <infra@openeuler.org> | 2023-09-13 10:51:53 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-09-13 10:51:53 +0000 |
commit | 4572d83a75643a6da49bef8963a7837331cccfb9 (patch) | |
tree | 70aedc27c8d8aca492d6d4a5a95433a606f63c14 | |
parent | 4632a529871faf2f836e046cf8402b205023bc53 (diff) |
automatic import of libfreehandopeneuler23.03
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | 0001-Add-missing-semicolon-to-fix-build-with-icu-65.1.patch | 29 | ||||
-rw-r--r-- | libfreehand.spec | 97 | ||||
-rw-r--r-- | sources | 1 |
4 files changed, 128 insertions, 0 deletions
@@ -0,0 +1 @@ +/libfreehand-0.1.2.tar.xz diff --git a/0001-Add-missing-semicolon-to-fix-build-with-icu-65.1.patch b/0001-Add-missing-semicolon-to-fix-build-with-icu-65.1.patch new file mode 100644 index 0000000..2a904e4 --- /dev/null +++ b/0001-Add-missing-semicolon-to-fix-build-with-icu-65.1.patch @@ -0,0 +1,29 @@ +From af3197f795625f5188602073205a34369698b6df Mon Sep 17 00:00:00 2001 +From: Heiko Becker <heirecka@exherbo.org> +Date: Fri, 4 Oct 2019 01:46:12 +0200 +Subject: [PATCH] Add missing semicolon to fix build with icu 65.1 + +Change-Id: I7a0b0d600e9f7770245a7485813a944bfac4f088 +Reviewed-on: https://gerrit.libreoffice.org/80224 +Reviewed-by: Miklos Vajna <vmiklos@collabora.com> +Tested-by: Miklos Vajna <vmiklos@collabora.com> +--- + src/lib/libfreehand_utils.cpp | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/lib/libfreehand_utils.cpp b/src/lib/libfreehand_utils.cpp +index 439c457..32f23e0 100644 +--- a/src/lib/libfreehand_utils.cpp ++++ b/src/lib/libfreehand_utils.cpp +@@ -162,7 +162,7 @@ void libfreehand::_appendUTF16(librevenge::RVNGString &text, std::vector<unsigne + while (j < length) + { + UChar32 c; +- U16_NEXT(s, j, length, c) ++ U16_NEXT(s, j, length, c); + unsigned char outbuf[U8_MAX_LENGTH+1]; + int i = 0; + U8_APPEND_UNSAFE(&outbuf[0], i, c); +-- +2.23.0 + diff --git a/libfreehand.spec b/libfreehand.spec new file mode 100644 index 0000000..a696e64 --- /dev/null +++ b/libfreehand.spec @@ -0,0 +1,97 @@ +%global apiversion 0.1 + +Name: libfreehand +Version: 0.1.2 +Release: 1 +Summary: A library for import of Macromedia/Adobe FreeHand documents + +License: MPL-2.0 +URL: http://wiki.documentfoundation.org/DLP/Libraries/libfreehand +Source: http://dev-www.libreoffice.org/src/%{name}/%{name}-%{version}.tar.xz + +BuildRequires: boost-devel doxygen gcc-c++ gperf help2man perl-interpreter make pkgconfig(cppunit) pkgconfig(icu-uc) +BuildRequires: pkgconfig(librevenge-0.0) pkgconfig(librevenge-generators-0.0) pkgconfig(librevenge-stream-0.0) +BuildRequires: pkgconfig(lcms2) pkgconfig(zlib) + +Patch0: 0001-Add-missing-semicolon-to-fix-build-with-icu-65.1.patch + +%description +libfreehand is library providing ability to interpret and import +Macromedia/Adobe FreeHand documents into various applications. + +%package devel +Summary: Development files for %{name} +Requires: %{name}%{?_isa} = %{version}-%{release} + +%description devel +The %{name}-devel package contains libraries and header files for +developing applications that use %{name}. + +%package_help + +%package tools +Summary: Tools to transform Macromedia/Adobe FreeHand documents into other formats +Requires: %{name}%{?_isa} = %{version}-%{release} + +%description tools +Tools to transform Macromedia/Adobe FreeHand documents into other formats. +Currently supported: SVG, raw, text. + +%prep +%autosetup -p1 + +%build +%configure --disable-silent-rules --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_build + + +%install +%make_install +rm -f %{buildroot}/%{_libdir}/*.la +# we install API docs directly from build +rm -rf %{buildroot}/%{_docdir}/%{name} + +# generate and install man pages +export LD_LIBRARY_PATH=%{buildroot}%{_libdir}${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}} +for tool in fh2raw fh2svg fh2text; do + help2man -N -S '%{name} %{version}' -o ${tool}.1 %{buildroot}%{_bindir}/${tool} +done +install -m 0755 -d %{buildroot}/%{_mandir}/man1 +install -m 0644 fh2*.1 %{buildroot}/%{_mandir}/man1 + +%ldconfig_scriptlets + +%check +export LD_LIBRARY_PATH=%{buildroot}%{_libdir}${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}} +%make_build check + +%files +%doc AUTHORS +%license COPYING +%{_libdir}/%{name}-%{apiversion}.so.* + +%files devel +%doc ChangeLog +%{_includedir}/%{name}-%{apiversion} +%{_libdir}/%{name}-%{apiversion}.so +%{_libdir}/pkgconfig/%{name}-%{apiversion}.pc + +%files help +%license COPYING +%doc docs/doxygen/html +%{_mandir}/man1/fh2raw.1* +%{_mandir}/man1/fh2svg.1* +%{_mandir}/man1/fh2text.1* + +%files tools +%{_bindir}/fh2raw +%{_bindir}/fh2svg +%{_bindir}/fh2text + +%changelog +* Wed Sep 06 2023 Darssin <2020303249@mail.nwpu.edu.cn> - 0.1.2-1 +- Package init @@ -0,0 +1 @@ +c3788f5686839fd097bd77d8f51c3d04 libfreehand-0.1.2.tar.xz |