]> git.pld-linux.org Git - packages/libvisio.git/blame - libvisio.spec
- fixed build without static_libs
[packages/libvisio.git] / libvisio.spec
CommitLineData
fcbf5e86
JB
1#
2# Conditional build:
3%bcond_without static_libs # static library
4#
6e31dce9 5Summary: A library providing ability to interpret and import Visio diagrams
fcbf5e86 6Summary(pl.UTF-8): Biblioteka umożliwiająca interpretowanie i importowanie diagramów Visio
0b4f5b4b 7Name: libvisio
fcbf5e86 8Version: 0.0.15
0b4f5b4b 9Release: 1
fcbf5e86 10License: GPL v2+ or LGPL v2+ or MPL v1.1
0b4f5b4b 11Group: Libraries
0b4f5b4b 12Source0: http://dev-www.libreoffice.org/src/%{name}-%{version}.tar.xz
fcbf5e86
JB
13# Source0-md5: 956a49d249137fb76ef8853bc192ea49
14URL: http://www.freedesktop.org/wiki/Software/libvisio
15BuildRequires: boost-devel >= 1.36
0b4f5b4b 16BuildRequires: doxygen
fcbf5e86
JB
17BuildRequires: libstdc++-devel
18BuildRequires: libwpd-devel >= 0.9
19BuildRequires: libwpg-devel >= 0.2
20BuildRequires: pkgconfig >= 1:0.20
21BuildRequires: tar >= 1:1.22
22BuildRequires: xz
857ba49d 23BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
0b4f5b4b
AM
24
25%description
6e31dce9 26Libvisio is library providing ability to interpret and import Visio
0b4f5b4b
AM
27diagrams into various applications. You can find it being used in
28libreoffice.
29
6e31dce9 30%description -l pl.UTF-8
fcbf5e86
JB
31Libvisio to biblioteka umożliwiająca interpretowanie i importowanie
32diagramów Visio do wielu aplikacji. Jest wykorzystywana przez
33libreoffice.
6e31dce9 34
0b4f5b4b
AM
35%package devel
36Summary: Development files for %{name}
25747ed1 37Summary(pl.UTF-8): Pliki nagłówkowe dla %{name}
0b4f5b4b
AM
38Group: Development/Libraries
39Requires: %{name} = %{version}-%{release}
fcbf5e86
JB
40Requires: libstdc++-devel
41Requires: libwpd-devel >= 0.9
42Requires: libwpg-devel >= 0.2
0b4f5b4b
AM
43
44%description devel
fcbf5e86
JB
45This package contains the header files for developing applications
46that use %{name}.
0b4f5b4b 47
6e31dce9 48%description devel -l pl.UTF-8
fcbf5e86
JB
49Pen pakiet zawiera pliki nagłówkowe do tworzenia aplikacji opartych na
50%{name}.
51
52%package static
53Summary: Static libvisio library
54Summary(pl.UTF-8): Statyczna biblioteka libvisio
55Group: Development/Libraries
56Requires: %{name}-devel = %{version}-%{release}
57
58%description static
59Static libvisio library.
60
61%description static -l pl.UTF-8
62Statyczna biblioteka libvisio.
6e31dce9 63
857ba49d
ER
64%package apidocs
65Summary: %{name} API documentation
66Summary(pl.UTF-8): Dokumentacja API biblioteki %{name}
67Group: Documentation
68
69%description apidocs
70API and internal documentation for %{name} library.
71
72%description apidocs -l pl.UTF-8
73Dokumentacja API biblioteki %{name}.
74
0b4f5b4b
AM
75%package tools
76Summary: Tools to transform Visio diagrams into other formats
fcbf5e86 77Summary(pl.UTF-8): Programy przekształcania diagramów Visio do innych formatów
0b4f5b4b
AM
78Group: Applications/Publishing
79Requires: %{name} = %{version}-%{release}
80
81%description tools
82Tools to transform Visio diagrams into other formats. Currently
83supported: XHTML, raw.
84
6e31dce9 85%description tools -l pl.UTF-8
fcbf5e86
JB
86Narzędzia do przekształcania diagramów Visio do innych formatów.
87Aktualnie 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
102rm -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
110rm -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
This page took 0.083619 seconds and 4 git commands to generate.