]> git.pld-linux.org Git - packages/libzmf.git/blob - libzmf.spec
- rpm version for noarch subpackages
[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:  rpm-build >= 4.6
24 BuildRequires:  tar >= 1:1.22
25 BuildRequires:  xz
26 BuildRequires:  zlib-devel
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
70 BuildArch:      noarch
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 \
103         %{?with_static_libs:--enable-static} \
104         --disable-werror
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
This page took 0.085309 seconds and 3 git commands to generate.