]>
Commit | Line | Data |
---|---|---|
fcbf5e86 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without static_libs # static library | |
4 | # | |
6e31dce9 | 5 | Summary: A library providing ability to interpret and import Visio diagrams |
fcbf5e86 | 6 | Summary(pl.UTF-8): Biblioteka umożliwiająca interpretowanie i importowanie diagramów Visio |
0b4f5b4b | 7 | Name: libvisio |
6d4ab4ab | 8 | Version: 0.0.30 |
0b4f5b4b | 9 | Release: 1 |
fcbf5e86 | 10 | License: GPL v2+ or LGPL v2+ or MPL v1.1 |
0b4f5b4b | 11 | Group: Libraries |
0b4f5b4b | 12 | Source0: http://dev-www.libreoffice.org/src/%{name}-%{version}.tar.xz |
6d4ab4ab | 13 | # Source0-md5: d691804bd356ec1edfdfd8e0709347ea |
fcbf5e86 JB |
14 | URL: http://www.freedesktop.org/wiki/Software/libvisio |
15 | BuildRequires: boost-devel >= 1.36 | |
0b4f5b4b | 16 | BuildRequires: doxygen |
7289ee7f | 17 | BuildRequires: gperf >= 3 |
28aea940 | 18 | BuildRequires: libicu-devel |
fcbf5e86 JB |
19 | BuildRequires: libstdc++-devel |
20 | BuildRequires: libwpd-devel >= 0.9 | |
21 | BuildRequires: libwpg-devel >= 0.2 | |
fbc46dfa | 22 | BuildRequires: libxml2-devel >= 2.0 |
fcbf5e86 JB |
23 | BuildRequires: pkgconfig >= 1:0.20 |
24 | BuildRequires: tar >= 1:1.22 | |
25 | BuildRequires: xz | |
fbc46dfa | 26 | BuildRequires: zlib-devel |
857ba49d | 27 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
0b4f5b4b AM |
28 | |
29 | %description | |
6e31dce9 | 30 | Libvisio is library providing ability to interpret and import Visio |
0b4f5b4b AM |
31 | diagrams into various applications. You can find it being used in |
32 | libreoffice. | |
33 | ||
6e31dce9 | 34 | %description -l pl.UTF-8 |
fcbf5e86 JB |
35 | Libvisio to biblioteka umożliwiająca interpretowanie i importowanie |
36 | diagramów Visio do wielu aplikacji. Jest wykorzystywana przez | |
37 | libreoffice. | |
6e31dce9 | 38 | |
0b4f5b4b AM |
39 | %package devel |
40 | Summary: Development files for %{name} | |
25747ed1 | 41 | Summary(pl.UTF-8): Pliki nagłówkowe dla %{name} |
0b4f5b4b AM |
42 | Group: Development/Libraries |
43 | Requires: %{name} = %{version}-%{release} | |
fcbf5e86 JB |
44 | Requires: libstdc++-devel |
45 | Requires: libwpd-devel >= 0.9 | |
46 | Requires: libwpg-devel >= 0.2 | |
fbc46dfa JB |
47 | Requires: libxml2-devel >= 2.0 |
48 | Requires: zlib-devel | |
0b4f5b4b AM |
49 | |
50 | %description devel | |
fcbf5e86 JB |
51 | This package contains the header files for developing applications |
52 | that use %{name}. | |
0b4f5b4b | 53 | |
6e31dce9 | 54 | %description devel -l pl.UTF-8 |
fcbf5e86 JB |
55 | Pen pakiet zawiera pliki nagłówkowe do tworzenia aplikacji opartych na |
56 | %{name}. | |
57 | ||
58 | %package static | |
59 | Summary: Static libvisio library | |
60 | Summary(pl.UTF-8): Statyczna biblioteka libvisio | |
61 | Group: Development/Libraries | |
62 | Requires: %{name}-devel = %{version}-%{release} | |
63 | ||
64 | %description static | |
65 | Static libvisio library. | |
66 | ||
67 | %description static -l pl.UTF-8 | |
68 | Statyczna biblioteka libvisio. | |
6e31dce9 | 69 | |
857ba49d ER |
70 | %package apidocs |
71 | Summary: %{name} API documentation | |
72 | Summary(pl.UTF-8): Dokumentacja API biblioteki %{name} | |
73 | Group: Documentation | |
74 | ||
75 | %description apidocs | |
76 | API and internal documentation for %{name} library. | |
77 | ||
78 | %description apidocs -l pl.UTF-8 | |
79 | Dokumentacja API biblioteki %{name}. | |
80 | ||
0b4f5b4b AM |
81 | %package tools |
82 | Summary: Tools to transform Visio diagrams into other formats | |
fcbf5e86 | 83 | Summary(pl.UTF-8): Programy przekształcania diagramów Visio do innych formatów |
0b4f5b4b AM |
84 | Group: Applications/Publishing |
85 | Requires: %{name} = %{version}-%{release} | |
86 | ||
87 | %description tools | |
88 | Tools to transform Visio diagrams into other formats. Currently | |
89 | supported: XHTML, raw. | |
90 | ||
6e31dce9 | 91 | %description tools -l pl.UTF-8 |
fcbf5e86 JB |
92 | Narzędzia do przekształcania diagramów Visio do innych formatów. |
93 | Aktualnie obsługiwane są XHTML i raw. | |
6e31dce9 | 94 | |
0b4f5b4b AM |
95 | %prep |
96 | %setup -q | |
97 | ||
98 | %build | |
99 | %configure \ | |
fcbf5e86 | 100 | --disable-silent-rules \ |
ffe3e942 | 101 | %{?with_static_libs:--enable-static} \ |
fcbf5e86 | 102 | --disable-werror |
0b4f5b4b AM |
103 | |
104 | %{__make} | |
105 | ||
106 | ||
107 | %install | |
108 | rm -rf $RPM_BUILD_ROOT | |
0b4f5b4b AM |
109 | %{__make} install \ |
110 | DESTDIR=$RPM_BUILD_ROOT | |
111 | ||
fcbf5e86 | 112 | # obsoleted by pkg-config |
857ba49d | 113 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la |
0b4f5b4b AM |
114 | |
115 | %clean | |
116 | rm -rf $RPM_BUILD_ROOT | |
117 | ||
857ba49d ER |
118 | %post -p /sbin/ldconfig |
119 | %postun -p /sbin/ldconfig | |
0b4f5b4b AM |
120 | |
121 | %files | |
122 | %defattr(644,root,root,755) | |
857ba49d | 123 | %doc AUTHORS ChangeLog |
fcbf5e86 JB |
124 | %attr(755,root,root) %{_libdir}/libvisio-0.0.so.*.*.* |
125 | %attr(755,root,root) %ghost %{_libdir}/libvisio-0.0.so.0 | |
0b4f5b4b AM |
126 | |
127 | %files devel | |
0b4f5b4b | 128 | %defattr(644,root,root,755) |
fcbf5e86 JB |
129 | %attr(755,root,root) %{_libdir}/libvisio-0.0.so |
130 | %{_includedir}/libvisio-0.0 | |
131 | %{_pkgconfigdir}/libvisio-0.0.pc | |
132 | ||
5980bb8d | 133 | %if %{with static_libs} |
fcbf5e86 JB |
134 | %files static |
135 | %defattr(644,root,root,755) | |
136 | %{_libdir}/libvisio-0.0.a | |
5980bb8d | 137 | %endif |
0b4f5b4b | 138 | |
857ba49d ER |
139 | %files apidocs |
140 | %defattr(644,root,root,755) | |
141 | %doc %{_docdir}/%{name} | |
142 | ||
0b4f5b4b AM |
143 | %files tools |
144 | %defattr(644,root,root,755) | |
145 | %attr(755,root,root) %{_bindir}/vsd2raw | |
48d55392 | 146 | %attr(755,root,root) %{_bindir}/vsd2text |
0b4f5b4b | 147 | %attr(755,root,root) %{_bindir}/vsd2xhtml |
fbc46dfa JB |
148 | %attr(755,root,root) %{_bindir}/vss2raw |
149 | %attr(755,root,root) %{_bindir}/vss2text | |
150 | %attr(755,root,root) %{_bindir}/vss2xhtml |