]> git.pld-linux.org Git - packages/libzmf.git/blob - libzmf.spec
37852460fd785d1edd57f035e3a953190a8c4d72
[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:        1
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 %if "%{_rpmversion}" >= "5"
70 BuildArch:      noarch
71 %endif
72
73 %description apidocs
74 API and internal documentation for libzmf library.
75
76 %description apidocs -l pl.UTF-8
77 Dokumentacja API biblioteki libzmf.
78
79 %package tools
80 Summary:        Tools to transform Zoner Draw drawings into other formats
81 Summary(pl.UTF-8):      Programy przekształcania rysunków Zoner Draw do innych formatów
82 Group:          Applications/Publishing
83 Requires:       %{name} = %{version}-%{release}
84
85 %description tools
86 Tools to transform Zoner Draw drawings into other formats. Currently
87 supported: SVG, raw.
88
89 %description tools -l pl.UTF-8
90 Narzędzia do przekształcania rysunków Zoner Draw do innych formatów.
91 Aktualnie obsługiwane są SVG i raw.
92
93 %prep
94 %setup -q
95
96 %build
97 %{__libtoolize}
98 %{__aclocal}
99 %{__autoconf}
100 %{__autoheader}
101 %{__automake}
102 %configure \
103         --disable-silent-rules \
104         %{?with_static_libs:--enable-static} \
105         --disable-werror
106
107 %{__make}
108
109
110 %install
111 rm -rf $RPM_BUILD_ROOT
112 %{__make} install \
113         DESTDIR=$RPM_BUILD_ROOT
114
115 # obsoleted by pkg-config
116 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
117
118 %clean
119 rm -rf $RPM_BUILD_ROOT
120
121 %post   -p /sbin/ldconfig
122 %postun -p /sbin/ldconfig
123
124 %files
125 %defattr(644,root,root,755)
126 %doc AUTHORS ChangeLog NEWS README
127 %attr(755,root,root) %{_libdir}/libzmf-0.0.so.*.*.*
128 %attr(755,root,root) %ghost %{_libdir}/libzmf-0.0.so.0
129
130 %files devel
131 %defattr(644,root,root,755)
132 %attr(755,root,root) %{_libdir}/libzmf-0.0.so
133 %{_includedir}/libzmf-0.0
134 %{_pkgconfigdir}/libzmf-0.0.pc
135
136 %if %{with static_libs}
137 %files static
138 %defattr(644,root,root,755)
139 %{_libdir}/libzmf-0.0.a
140 %endif
141
142 %files apidocs
143 %defattr(644,root,root,755)
144 %{_docdir}/%{name}
145
146 %files tools
147 %defattr(644,root,root,755)
148 %attr(755,root,root) %{_bindir}/zmf2raw
149 %attr(755,root,root) %{_bindir}/zmf2svg
This page took 0.04158 seconds and 2 git commands to generate.