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