3 %bcond_without static_libs # static library
5 Summary: A library providing ability to interpret and import Visio diagrams
6 Summary(pl.UTF-8): Biblioteka umożliwiająca interpretowanie i importowanie diagramów Visio
12 Source0: http://dev-www.libreoffice.org/src/libvisio/%{name}-%{version}.tar.xz
13 # Source0-md5: fda521a18bbfccc5f034ea02119e7998
14 URL: http://www.freedesktop.org/wiki/Software/libvisio
15 BuildRequires: boost-devel >= 1.36
16 BuildRequires: doxygen
17 BuildRequires: gperf >= 3
18 BuildRequires: libicu-devel
19 BuildRequires: librevenge-devel >= 0.0
20 BuildRequires: libstdc++-devel
21 BuildRequires: libwpd-devel >= 0.9.5
22 BuildRequires: libwpg-devel >= 0.2
23 BuildRequires: libxml2-devel >= 2.0
24 BuildRequires: pkgconfig >= 1:0.20
25 BuildRequires: tar >= 1:1.22
27 BuildRequires: zlib-devel
28 Requires: libwpd >= 0.9.5
29 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32 Libvisio is library providing ability to interpret and import Visio
33 diagrams into various applications. You can find it being used in
36 %description -l pl.UTF-8
37 Libvisio to biblioteka umożliwiająca interpretowanie i importowanie
38 diagramów Visio do wielu aplikacji. Jest wykorzystywana przez
42 Summary: Development files for libvisio library
43 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libvisio
44 Group: Development/Libraries
45 Requires: %{name} = %{version}-%{release}
46 Requires: libicu-devel
47 Requires: librevenge-devel >= 0.0
48 Requires: libstdc++-devel
49 Requires: libxml2-devel >= 2.0
53 This package contains the header files for developing applications
56 %description devel -l pl.UTF-8
57 Pen pakiet zawiera pliki nagłówkowe do tworzenia aplikacji opartych na
61 Summary: Static libvisio library
62 Summary(pl.UTF-8): Statyczna biblioteka libvisio
63 Group: Development/Libraries
64 Requires: %{name}-devel = %{version}-%{release}
67 Static libvisio library.
69 %description static -l pl.UTF-8
70 Statyczna biblioteka libvisio.
73 Summary: API documentation for libvisio library
74 Summary(pl.UTF-8): Dokumentacja API biblioteki libvisio
76 %if "%{_rpmversion}" >= "5"
81 API and internal documentation for libvisio library.
83 %description apidocs -l pl.UTF-8
84 Dokumentacja API biblioteki libvisio.
87 Summary: Tools to transform Visio diagrams into other formats
88 Summary(pl.UTF-8): Programy przekształcania diagramów Visio do innych formatów
89 Group: Applications/Publishing
90 Requires: %{name} = %{version}-%{release}
93 Tools to transform Visio diagrams into other formats. Currently
94 supported: XHTML, raw.
96 %description tools -l pl.UTF-8
97 Narzędzia do przekształcania diagramów Visio do innych formatów.
98 Aktualnie obsługiwane są XHTML i raw.
105 --disable-silent-rules \
106 %{?with_static_libs:--enable-static}
112 rm -rf $RPM_BUILD_ROOT
114 DESTDIR=$RPM_BUILD_ROOT
116 # obsoleted by pkg-config
117 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
120 rm -rf $RPM_BUILD_ROOT
122 %post -p /sbin/ldconfig
123 %postun -p /sbin/ldconfig
126 %defattr(644,root,root,755)
127 %doc AUTHORS ChangeLog NEWS README
128 %attr(755,root,root) %{_libdir}/libvisio-0.1.so.*.*.*
129 %attr(755,root,root) %ghost %{_libdir}/libvisio-0.1.so.1
132 %defattr(644,root,root,755)
133 %attr(755,root,root) %{_libdir}/libvisio-0.1.so
134 %{_includedir}/libvisio-0.1
135 %{_pkgconfigdir}/libvisio-0.1.pc
137 %if %{with static_libs}
139 %defattr(644,root,root,755)
140 %{_libdir}/libvisio-0.1.a
144 %defattr(644,root,root,755)
148 %defattr(644,root,root,755)
149 %attr(755,root,root) %{_bindir}/vsd2raw
150 %attr(755,root,root) %{_bindir}/vsd2text
151 %attr(755,root,root) %{_bindir}/vsd2xhtml
152 %attr(755,root,root) %{_bindir}/vss2raw
153 %attr(755,root,root) %{_bindir}/vss2text
154 %attr(755,root,root) %{_bindir}/vss2xhtml