]>
Commit | Line | Data |
---|---|---|
e132fc3b JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without static_libs # static library | |
4 | ||
5 | Summary: A library for reading and converting Zoner Draw and Zebra file formats | |
6 | Summary(pl.UTF-8): Biblioteka do odczytu i importu formatów plików Zoner Draw i Zebra | |
7 | Name: libzmf | |
01bf86e9 | 8 | Version: 0.0.2 |
9afc48ca | 9 | Release: 5 |
e132fc3b JB |
10 | License: MPL v2.0 |
11 | Group: Libraries | |
12 | Source0: http://dev-www.libreoffice.org/src/libzmf/%{name}-%{version}.tar.xz | |
01bf86e9 | 13 | # Source0-md5: e4b089f35a85a042ba4da3c143b1dc5a |
e132fc3b | 14 | URL: https://wiki.documentfoundation.org/DLP/Libraries/libzmf |
e132fc3b | 15 | BuildRequires: boost-devel |
2d810325 MB |
16 | BuildRequires: cppunit-devel |
17 | BuildRequires: doxygen | |
18 | BuildRequires: libicu-devel | |
19 | BuildRequires: libpng-devel | |
e132fc3b JB |
20 | BuildRequires: librevenge-devel >= 0.0 |
21 | BuildRequires: libstdc++-devel >= 6:4.7 | |
22 | BuildRequires: pkgconfig >= 1:0.20 | |
b56c75c7 | 23 | BuildRequires: rpm-build >= 4.6 |
e132fc3b JB |
24 | BuildRequires: tar >= 1:1.22 |
25 | BuildRequires: xz | |
2d810325 | 26 | BuildRequires: zlib-devel |
e132fc3b JB |
27 | Requires: librevenge >= 0.0 |
28 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
29 | ||
30 | %description | |
31 | Libzmf is a library for reading and converting Zoner Draw and Zebra | |
32 | file formats. | |
33 | ||
34 | %description -l pl.UTF-8 | |
35 | Libzmf to biblioteka do odczytu i importu formatów plików Zoner Draw i | |
36 | Zebra. | |
37 | ||
38 | %package devel | |
39 | Summary: Development files for libzmf | |
40 | Summary(pl.UTF-8): Pliki nagłówkowe dla libzmf | |
41 | Group: Development/Libraries | |
42 | Requires: %{name} = %{version}-%{release} | |
43 | Requires: librevenge-devel >= 0.0 | |
44 | Requires: libstdc++-devel >= 6:4.7 | |
45 | ||
46 | %description devel | |
47 | This package contains the header files for developing applications | |
48 | that use libzmf. | |
49 | ||
50 | %description devel -l pl.UTF-8 | |
51 | Pen pakiet zawiera pliki nagłówkowe do tworzenia aplikacji opartych na | |
52 | libzmf. | |
53 | ||
54 | %package static | |
55 | Summary: Static libzmf library | |
56 | Summary(pl.UTF-8): Statyczna biblioteka libzmf | |
57 | Group: Development/Libraries | |
58 | Requires: %{name}-devel = %{version}-%{release} | |
59 | ||
60 | %description static | |
61 | Static libzmf library. | |
62 | ||
63 | %description static -l pl.UTF-8 | |
64 | Statyczna biblioteka libzmf. | |
65 | ||
66 | %package apidocs | |
67 | Summary: libzmf API documentation | |
68 | Summary(pl.UTF-8): Dokumentacja API biblioteki libzmf | |
69 | Group: Documentation | |
e132fc3b | 70 | BuildArch: noarch |
e132fc3b JB |
71 | |
72 | %description apidocs | |
73 | API and internal documentation for libzmf library. | |
74 | ||
75 | %description apidocs -l pl.UTF-8 | |
76 | Dokumentacja API biblioteki libzmf. | |
77 | ||
78 | %package tools | |
79 | Summary: Tools to transform Zoner Draw drawings into other formats | |
80 | Summary(pl.UTF-8): Programy przekształcania rysunków Zoner Draw do innych formatów | |
81 | Group: Applications/Publishing | |
82 | Requires: %{name} = %{version}-%{release} | |
83 | ||
84 | %description tools | |
85 | Tools to transform Zoner Draw drawings into other formats. Currently | |
86 | supported: SVG, raw. | |
87 | ||
88 | %description tools -l pl.UTF-8 | |
89 | Narzędzia do przekształcania rysunków Zoner Draw do innych formatów. | |
90 | Aktualnie obsługiwane są SVG i raw. | |
91 | ||
92 | %prep | |
93 | %setup -q | |
94 | ||
95 | %build | |
96 | %{__libtoolize} | |
97 | %{__aclocal} | |
98 | %{__autoconf} | |
99 | %{__autoheader} | |
100 | %{__automake} | |
101 | %configure \ | |
102 | --disable-silent-rules \ | |
4347e111 JB |
103 | %{?with_static_libs:--enable-static} \ |
104 | --disable-werror | |
e132fc3b JB |
105 | |
106 | %{__make} | |
107 | ||
108 | ||
109 | %install | |
110 | rm -rf $RPM_BUILD_ROOT | |
111 | %{__make} install \ | |
112 | DESTDIR=$RPM_BUILD_ROOT | |
113 | ||
114 | # obsoleted by pkg-config | |
115 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la | |
116 | ||
117 | %clean | |
118 | rm -rf $RPM_BUILD_ROOT | |
119 | ||
120 | %post -p /sbin/ldconfig | |
121 | %postun -p /sbin/ldconfig | |
122 | ||
123 | %files | |
124 | %defattr(644,root,root,755) | |
125 | %doc AUTHORS ChangeLog NEWS README | |
126 | %attr(755,root,root) %{_libdir}/libzmf-0.0.so.*.*.* | |
127 | %attr(755,root,root) %ghost %{_libdir}/libzmf-0.0.so.0 | |
128 | ||
129 | %files devel | |
130 | %defattr(644,root,root,755) | |
131 | %attr(755,root,root) %{_libdir}/libzmf-0.0.so | |
132 | %{_includedir}/libzmf-0.0 | |
133 | %{_pkgconfigdir}/libzmf-0.0.pc | |
134 | ||
135 | %if %{with static_libs} | |
136 | %files static | |
137 | %defattr(644,root,root,755) | |
138 | %{_libdir}/libzmf-0.0.a | |
139 | %endif | |
140 | ||
141 | %files apidocs | |
142 | %defattr(644,root,root,755) | |
143 | %{_docdir}/%{name} | |
144 | ||
145 | %files tools | |
146 | %defattr(644,root,root,755) | |
147 | %attr(755,root,root) %{_bindir}/zmf2raw | |
148 | %attr(755,root,root) %{_bindir}/zmf2svg |