]>
Commit | Line | Data |
---|---|---|
fcbf5e86 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without static_libs # static library | |
ee2456a7 | 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 |
da0b9753 AM |
8 | Version: 0.1.6 |
9 | Release: 1 | |
ad3412e6 | 10 | License: MPL v2.0 |
0b4f5b4b | 11 | Group: Libraries |
430cc004 | 12 | Source0: http://dev-www.libreoffice.org/src/libvisio/%{name}-%{version}.tar.xz |
da0b9753 | 13 | # Source0-md5: b60b7f4233105261eb139d82cbf3b33a |
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 |
ad3412e6 | 19 | BuildRequires: librevenge-devel >= 0.0 |
fcbf5e86 | 20 | BuildRequires: libstdc++-devel |
fbc46dfa | 21 | BuildRequires: libxml2-devel >= 2.0 |
735a1a44 | 22 | BuildRequires: perl-base |
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 | 39 | %package devel |
ad3412e6 JB |
40 | Summary: Development files for libvisio library |
41 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libvisio | |
0b4f5b4b AM |
42 | Group: Development/Libraries |
43 | Requires: %{name} = %{version}-%{release} | |
ad3412e6 JB |
44 | Requires: libicu-devel |
45 | Requires: librevenge-devel >= 0.0 | |
fcbf5e86 | 46 | Requires: libstdc++-devel |
fbc46dfa JB |
47 | Requires: libxml2-devel >= 2.0 |
48 | Requires: zlib-devel | |
0b4f5b4b AM |
49 | |
50 | %description devel | |
fcbf5e86 | 51 | This package contains the header files for developing applications |
ad3412e6 | 52 | that use libvisio. |
0b4f5b4b | 53 | |
6e31dce9 | 54 | %description devel -l pl.UTF-8 |
fcbf5e86 | 55 | Pen pakiet zawiera pliki nagłówkowe do tworzenia aplikacji opartych na |
ad3412e6 | 56 | bibliotece libvisio. |
fcbf5e86 JB |
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 | 70 | %package apidocs |
ad3412e6 JB |
71 | Summary: API documentation for libvisio library |
72 | Summary(pl.UTF-8): Dokumentacja API biblioteki libvisio | |
857ba49d | 73 | Group: Documentation |
ee2456a7 ER |
74 | %if "%{_rpmversion}" >= "5" |
75 | BuildArch: noarch | |
76 | %endif | |
857ba49d ER |
77 | |
78 | %description apidocs | |
ad3412e6 | 79 | API and internal documentation for libvisio library. |
857ba49d ER |
80 | |
81 | %description apidocs -l pl.UTF-8 | |
ad3412e6 | 82 | Dokumentacja API biblioteki libvisio. |
857ba49d | 83 | |
0b4f5b4b AM |
84 | %package tools |
85 | Summary: Tools to transform Visio diagrams into other formats | |
fcbf5e86 | 86 | Summary(pl.UTF-8): Programy przekształcania diagramów Visio do innych formatów |
0b4f5b4b AM |
87 | Group: Applications/Publishing |
88 | Requires: %{name} = %{version}-%{release} | |
89 | ||
90 | %description tools | |
91 | Tools to transform Visio diagrams into other formats. Currently | |
92 | supported: XHTML, raw. | |
93 | ||
6e31dce9 | 94 | %description tools -l pl.UTF-8 |
fcbf5e86 JB |
95 | Narzędzia do przekształcania diagramów Visio do innych formatów. |
96 | Aktualnie obsługiwane są XHTML i raw. | |
6e31dce9 | 97 | |
0b4f5b4b AM |
98 | %prep |
99 | %setup -q | |
100 | ||
101 | %build | |
aca54bdb JR |
102 | %{__libtoolize} |
103 | %{__aclocal} | |
104 | %{__autoconf} | |
105 | %{__autoheader} | |
106 | %{__automake} | |
0b4f5b4b | 107 | %configure \ |
fcbf5e86 | 108 | --disable-silent-rules \ |
ad3412e6 | 109 | %{?with_static_libs:--enable-static} |
0b4f5b4b AM |
110 | |
111 | %{__make} | |
112 | ||
113 | ||
114 | %install | |
115 | rm -rf $RPM_BUILD_ROOT | |
0b4f5b4b AM |
116 | %{__make} install \ |
117 | DESTDIR=$RPM_BUILD_ROOT | |
118 | ||
fcbf5e86 | 119 | # obsoleted by pkg-config |
857ba49d | 120 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la |
0b4f5b4b AM |
121 | |
122 | %clean | |
123 | rm -rf $RPM_BUILD_ROOT | |
124 | ||
857ba49d ER |
125 | %post -p /sbin/ldconfig |
126 | %postun -p /sbin/ldconfig | |
0b4f5b4b AM |
127 | |
128 | %files | |
129 | %defattr(644,root,root,755) | |
ad3412e6 JB |
130 | %doc AUTHORS ChangeLog NEWS README |
131 | %attr(755,root,root) %{_libdir}/libvisio-0.1.so.*.*.* | |
132 | %attr(755,root,root) %ghost %{_libdir}/libvisio-0.1.so.1 | |
0b4f5b4b AM |
133 | |
134 | %files devel | |
0b4f5b4b | 135 | %defattr(644,root,root,755) |
ad3412e6 JB |
136 | %attr(755,root,root) %{_libdir}/libvisio-0.1.so |
137 | %{_includedir}/libvisio-0.1 | |
138 | %{_pkgconfigdir}/libvisio-0.1.pc | |
fcbf5e86 | 139 | |
5980bb8d | 140 | %if %{with static_libs} |
fcbf5e86 JB |
141 | %files static |
142 | %defattr(644,root,root,755) | |
ad3412e6 | 143 | %{_libdir}/libvisio-0.1.a |
5980bb8d | 144 | %endif |
0b4f5b4b | 145 | |
857ba49d ER |
146 | %files apidocs |
147 | %defattr(644,root,root,755) | |
ad3412e6 | 148 | %{_docdir}/%{name} |
857ba49d | 149 | |
0b4f5b4b AM |
150 | %files tools |
151 | %defattr(644,root,root,755) | |
152 | %attr(755,root,root) %{_bindir}/vsd2raw | |
48d55392 | 153 | %attr(755,root,root) %{_bindir}/vsd2text |
0b4f5b4b | 154 | %attr(755,root,root) %{_bindir}/vsd2xhtml |
fbc46dfa JB |
155 | %attr(755,root,root) %{_bindir}/vss2raw |
156 | %attr(755,root,root) %{_bindir}/vss2text | |
157 | %attr(755,root,root) %{_bindir}/vss2xhtml |