a1b4c2f
%global apiversion 0.1
93eb047
af2e7f4
Name: libvisio
50605ca
Version: 0.1.1
50605ca
Release: 1%{?dist}
faa4a88
Summary: A library for import of Microsoft Visio diagrams
af2e7f4
a1b4c2f
License: MPLv2.0
74d1eb2
URL: http://wiki.documentfoundation.org/DLP/Libraries/libvisio
74d1eb2
Source: http://dev-www.libreoffice.org/src/%{name}/%{name}-%{version}.tar.xz
af2e7f4
af2e7f4
BuildRequires: boost-devel
af2e7f4
BuildRequires: doxygen
8a62604
BuildRequires: gperf
57da193
BuildRequires: help2man
8a62604
BuildRequires: perl
7f1941b
BuildRequires: pkgconfig(cppunit)
b9f791b
BuildRequires: pkgconfig(icu-i18n)
a1b4c2f
BuildRequires: pkgconfig(librevenge-0.0)
b9f791b
BuildRequires: pkgconfig(libxml-2.0)
b9f791b
BuildRequires: pkgconfig(zlib)
af2e7f4
af2e7f4
%description
faa4a88
%{name} is library providing ability to interpret and import
faa4a88
Microsoft Visio diagrams into various applications. You can find it
faa4a88
being used in libreoffice.
af2e7f4
af2e7f4
%package devel
af2e7f4
Summary: Development files for %{name}
af2e7f4
Requires: %{name}%{?_isa} = %{version}-%{release}
af2e7f4
af2e7f4
%description devel
af2e7f4
The %{name}-devel package contains libraries and header files for
af2e7f4
developing applications that use %{name}.
af2e7f4
af2e7f4
%package doc
af2e7f4
Summary: Documentation of %{name} API
af2e7f4
BuildArch: noarch
af2e7f4
af2e7f4
%description doc
af2e7f4
The %{name}-doc package contains documentation files for %{name}.
af2e7f4
af2e7f4
%package tools
faa4a88
Summary: Tools to transform Microsoft Visio diagrams into other formats
af2e7f4
Requires: %{name}%{?_isa} = %{version}-%{release}
af2e7f4
af2e7f4
%description tools
faa4a88
Tools to transform Microsoft Visio diagrams into other formats.
1ed18f2
Currently supported: XHTML, raw, plain text.
af2e7f4
af2e7f4
%prep
af2e7f4
%setup -q
af2e7f4
af2e7f4
%build
af2e7f4
%configure --disable-static --disable-werror
af2e7f4
sed -i \
af2e7f4
    -e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' \
af2e7f4
    -e 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' \
af2e7f4
    libtool
64040b4
make %{?_smp_mflags} V=1
af2e7f4
57da193
export LD_LIBRARY_PATH=`pwd`/src/lib/.libs${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
57da193
help2man -N -n 'debug the conversion library' -o vsd2raw.1 ./src/conv/raw/.libs/vsd2raw
57da193
help2man -N -n 'convert Visio document into SVG' -o vsd2xhtml.1 ./src/conv/svg/.libs/vsd2xhtml
57da193
help2man -N -n 'convert Visio document into plain text' -o vsd2text.1 ./src/conv/text/.libs/vsd2text
57da193
help2man -N -n 'debug the conversion library' -o vss2raw.1 ./src/conv/raw/.libs/vss2raw
57da193
help2man -N -n 'convert Visio stencil into SVG' -o vss2xhtml.1 ./src/conv/svg/.libs/vss2xhtml
57da193
help2man -N -n 'convert Visio stencil into plain text' -o vss2text.1 ./src/conv/text/.libs/vss2text
57da193
af2e7f4
%install
af2e7f4
make install DESTDIR=%{buildroot}
af2e7f4
rm -f %{buildroot}/%{_libdir}/*.la
0970d6e
# rhbz#1001240 we install API docs directly from build
0970d6e
rm -rf %{buildroot}/%{_docdir}/%{name}
af2e7f4
57da193
install -m 0755 -d %{buildroot}/%{_mandir}/man1
57da193
install -m 0644 vsd2*.1 vss2*.1 %{buildroot}/%{_mandir}/man1
57da193
af2e7f4
%post -p /sbin/ldconfig
af2e7f4
%postun -p /sbin/ldconfig
af2e7f4
af2e7f4
%files
4a04e9a
%doc AUTHORS COPYING.*
93eb047
%{_libdir}/%{name}-%{apiversion}.so.*
af2e7f4
af2e7f4
%files devel
4a04e9a
%doc ChangeLog
93eb047
%{_includedir}/%{name}-%{apiversion}
93eb047
%{_libdir}/%{name}-%{apiversion}.so
93eb047
%{_libdir}/pkgconfig/%{name}-%{apiversion}.pc
af2e7f4
af2e7f4
%files doc
c96e0ef
%doc COPYING.*
0970d6e
%doc docs/doxygen/html
af2e7f4
af2e7f4
%files tools
af2e7f4
%{_bindir}/vsd2raw
d3c8ef5
%{_bindir}/vsd2text
af2e7f4
%{_bindir}/vsd2xhtml
1ed18f2
%{_bindir}/vss2raw
1ed18f2
%{_bindir}/vss2text
1ed18f2
%{_bindir}/vss2xhtml
57da193
%{_mandir}/man1/vsd2raw.1*
57da193
%{_mandir}/man1/vsd2text.1*
57da193
%{_mandir}/man1/vsd2xhtml.1*
57da193
%{_mandir}/man1/vss2raw.1*
57da193
%{_mandir}/man1/vss2text.1*
57da193
%{_mandir}/man1/vss2xhtml.1*
af2e7f4
af2e7f4
%changelog
50605ca
* Fri Jan 02 2015 David Tardon <dtardon@redhat.com> - 0.1.1-1
50605ca
- new upstream release
50605ca
8449488
* Tue Aug 26 2014 David Tardon <dtardon@redhat.com> - 0.1.0-4
8449488
- rebuild for ICU 53.1
8449488
222f4c6
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.0-3
222f4c6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
222f4c6
321baae
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.0-2
321baae
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
321baae
a1b4c2f
* Mon May 26 2014 David Tardon <dtardon@redhat.com> - 0.1.0-1
a1b4c2f
- new upstream release
a1b4c2f
Petr Machata 53ae627
* Thu May 22 2014 Petr Machata <pmachata@redhat.com> - 0.0.31-4
Petr Machata 53ae627
- Rebuild for boost 1.55.0
Petr Machata 53ae627
57da193
* Wed Apr 09 2014 David Tardon <dtardon@redhat.com> - 0.0.31-3
57da193
- generate man pages
57da193
Rex Dieter 4ef9606
* Wed Feb 12 2014 Rex Dieter <rdieter@fedoraproject.org> 0.0.31-2
Rex Dieter 4ef9606
- rebuild (libicu)
Rex Dieter 4ef9606
0d5a7eb
* Mon Sep 02 2013 David Tardon <dtardon@redhat.com> - 0.0.31-1
0d5a7eb
- new release
0d5a7eb
0970d6e
* Fri Aug 30 2013 David Tardon <dtardon@redhat.com> - 0.0.30-4
0970d6e
- Resolves: rhbz#1001240 duplicate documentation files / potentially conflicting
0970d6e
0fdbed1
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.30-3
0fdbed1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
0fdbed1
Petr Machata 17e4a60
* Tue Jul 30 2013 Petr Machata <pmachata@redhat.com> - 0.0.30-2
Petr Machata 17e4a60
- Rebuild for boost 1.54.0
Petr Machata 17e4a60
6f22303
* Mon Jul 15 2013 David Tardon <dtardon@redhat.com> - 0.0.30-1
6f22303
- new release
6f22303
f48cf49
* Tue Jul 02 2013 David Tardon <dtardon@redhat.com> - 0.0.29-1
f48cf49
- new release
f48cf49
ae29c16
* Wed Jun 05 2013 David Tardon <dtardon@redhat.com> - 0.0.28-1
ae29c16
- new release
ae29c16
f826f92
* Thu May 16 2013 David Tardon <dtardon@redhat.com> - 0.0.27-1
f826f92
- new release
f826f92
e61ab91
* Tue Apr 23 2013 David Tardon <dtardon@redhat.com> - 0.0.26-1
e61ab91
- new release
e61ab91
a747c29
* Thu Feb 28 2013 David Tardon <dtardon@redhat.com> - 0.0.25-1
a747c29
- new release
a747c29
131c0fa
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.24-2
131c0fa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
131c0fa
f3d4199
* Tue Dec 18 2012 David Tardon <dtardon@redhat.com> - 0.0.24-1
f3d4199
- new release
f3d4199
c436fd4
* Mon Dec 03 2012 David Tardon <dtardon@redhat.com> - 0.0.23-1
c436fd4
- new release
c436fd4
9bbc39a
* Thu Nov 29 2012 David Tardon <dtardon@redhat.com> - 0.0.22-1
9bbc39a
- new upstream release
9bbc39a
9ac4e0d
* Wed Nov 21 2012 David Tardon <dtardon@redhat.com> - 0.0.21-1
9ac4e0d
- new upstream release
9ac4e0d
1ed18f2
* Tue Nov 06 2012 David Tardon <dtardon@redhat.com> - 0.0.20-1
1ed18f2
- new upstream version
1ed18f2
2c24a7e
* Fri Jul 27 2012 David Tardon <dtardon@redhat.com> - 0.0.19-2
2c24a7e
- rebuilt for boost 1.50
2c24a7e
d2a90e8
* Thu Jul 26 2012 David Tardon <dtardon@redhat.com> - 0.0.19-1
d2a90e8
- new upstream version
d2a90e8
4f5e6c5
* Tue Jul 24 2012 David Tardon <dtardon@redhat.com> - 0.0.18-3
4f5e6c5
- fix endless loop with text fields in VSD6
4f5e6c5
b3e10df
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.18-2
b3e10df
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
b3e10df
d3c8ef5
* Fri Jun 22 2012 David Tardon <dtardon@redhat.com> 0.0.18-1
d3c8ef5
- new upstream version
d3c8ef5
63249a5
* Fri Jun 01 2012 David Tardon <dtardon@redhat.com> 0.0.17-1
63249a5
- new upstream version
63249a5
f237fa3
* Tue Apr 17 2012 David Tardon <dtardon@redhat.com> 0.0.16-1
f237fa3
- new upstream version
f237fa3
c2e2646
* Tue Feb 28 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.15-2
c2e2646
- Rebuilt for c++ ABI breakage
c2e2646
a946af2
* Tue Feb 21 2012 David Tardon <dtardon@redhat.com> 0.0.15-1
a946af2
- new upstream version
a946af2
af2e7f4
* Wed Jan 25 2012 David Tardon <dtardon@redhat.com> 0.0.14-1
af2e7f4
- bump version
af2e7f4
af2e7f4
- initial import
af2e7f4
* Wed Dec 21 2011 David Tardon <dtardon@redhat.com> 0.0.11-1
af2e7f4
- initial import