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