From 2b3704ba154a32b9b4b4cb236d636d794d9b79c5 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Mar 05 2015 13:13:51 +0000 Subject: import libfreehand-0.0.0-3.el7 --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..dd7cc02 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/libfreehand-0.0.0.tar.xz diff --git a/.libfreehand.metadata b/.libfreehand.metadata new file mode 100644 index 0000000..852a560 --- /dev/null +++ b/.libfreehand.metadata @@ -0,0 +1 @@ +34b39a0c6a62e9c0c2eb36e14b3f8808c4b7b4e9 SOURCES/libfreehand-0.0.0.tar.xz diff --git a/README.md b/README.md deleted file mode 100644 index 98f42b4..0000000 --- a/README.md +++ /dev/null @@ -1,4 +0,0 @@ -The master branch has no content - -Look at the c7 branch if you are working with CentOS-7, or the c4/c5/c6 branch for CentOS-4, 5 or 6 -If you find this file in a distro specific branch, it means that no content has been checked in yet diff --git a/SOURCES/0001-coverity-fix-memory-leak.patch b/SOURCES/0001-coverity-fix-memory-leak.patch new file mode 100644 index 0000000..a373e52 --- /dev/null +++ b/SOURCES/0001-coverity-fix-memory-leak.patch @@ -0,0 +1,24 @@ +From 0153352b99336335c5d6eb1635ea4b60574fa971 Mon Sep 17 00:00:00 2001 +From: David Tardon +Date: Fri, 1 Nov 2013 12:35:12 +0100 +Subject: [PATCH] coverity: fix memory leak + +--- + src/lib/FHStringVector.cpp | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/src/lib/FHStringVector.cpp b/src/lib/FHStringVector.cpp +index 2cab359..a6b5d7d 100644 +--- a/src/lib/FHStringVector.cpp ++++ b/src/lib/FHStringVector.cpp +@@ -35,6 +35,7 @@ libfreehand::FHStringVector::FHStringVector(const FHStringVector &vec) + + libfreehand::FHStringVector::~FHStringVector() + { ++ delete m_pImpl; + } + + libfreehand::FHStringVector &libfreehand::FHStringVector::operator=(const FHStringVector &vec) +-- +1.8.3.1 + diff --git a/SPECS/libfreehand.spec b/SPECS/libfreehand.spec new file mode 100644 index 0000000..bc29e91 --- /dev/null +++ b/SPECS/libfreehand.spec @@ -0,0 +1,100 @@ +%global apiversion 0.0 + +Name: libfreehand +Version: 0.0.0 +Release: 3%{?dist} +Summary: A library for import of Macromedia/Adobe FreeHand documents + +Group: System Environment/Libraries +License: MPLv2.0 +URL: http://wiki.documentfoundation.org/DLP/Libraries/libfreehand +Source: http://dev-www.libreoffice.org/src/%{name}/%{name}-%{version}.tar.xz + +BuildRequires: doxygen +BuildRequires: gperf +BuildRequires: libwpd-devel +BuildRequires: libwpg-devel +BuildRequires: zlib-devel + +Patch0: 0001-coverity-fix-memory-leak.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} +Group: Development/Libraries +Requires: %{name}%{?_isa} = %{version}-%{release} + +%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 Macromedia/Adobe FreeHand documents into other formats +Group: Applications/Publishing +Requires: %{name}%{?_isa} = %{version}-%{release} + +%description tools +Tools to transform Macromedia/Adobe FreeHand documents into other formats. +Currently supported: SVG, raw. + +%prep +%setup -q + +%patch0 -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 %{?_smp_mflags} + +%install +make install DESTDIR=%{buildroot} +rm -f %{buildroot}/%{_libdir}/*.la +# we install API docs directly from build +rm -rf %{buildroot}/%{_docdir}/%{name} + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + +%files +%doc AUTHORS COPYING +%{_libdir}/%{name}-%{apiversion}.so.* + +%files devel +%doc ChangeLog +%{_includedir}/%{name}-%{apiversion} +%{_libdir}/%{name}-%{apiversion}.so +%{_libdir}/pkgconfig/%{name}-%{apiversion}.pc + +%files doc +%doc COPYING +%doc docs/doxygen/html + +%files tools +%{_bindir}/fh2raw +%{_bindir}/fh2svg + +%changelog +* Mon Nov 04 2013 David Tardon - 0.0.0-3 +- fix memory leak + +* Thu Oct 31 2013 David Tardon 0.0.0-2 +- add gperf to BuildRequires + +* Thu Oct 31 2013 David Tardon 0.0.0-1 +- initial import