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