]> git.pld-linux.org Git - packages/libzmf.git/blame - libzmf.spec
- rpm version for noarch subpackages
[packages/libzmf.git] / libzmf.spec
CommitLineData
e132fc3b
JB
1#
2# Conditional build:
3%bcond_without static_libs # static library
4
5Summary: A library for reading and converting Zoner Draw and Zebra file formats
6Summary(pl.UTF-8): Biblioteka do odczytu i importu formatów plików Zoner Draw i Zebra
7Name: libzmf
01bf86e9 8Version: 0.0.2
9afc48ca 9Release: 5
e132fc3b
JB
10License: MPL v2.0
11Group: Libraries
12Source0: http://dev-www.libreoffice.org/src/libzmf/%{name}-%{version}.tar.xz
01bf86e9 13# Source0-md5: e4b089f35a85a042ba4da3c143b1dc5a
e132fc3b 14URL: https://wiki.documentfoundation.org/DLP/Libraries/libzmf
e132fc3b 15BuildRequires: boost-devel
2d810325
MB
16BuildRequires: cppunit-devel
17BuildRequires: doxygen
18BuildRequires: libicu-devel
19BuildRequires: libpng-devel
e132fc3b
JB
20BuildRequires: librevenge-devel >= 0.0
21BuildRequires: libstdc++-devel >= 6:4.7
22BuildRequires: pkgconfig >= 1:0.20
b56c75c7 23BuildRequires: rpm-build >= 4.6
e132fc3b
JB
24BuildRequires: tar >= 1:1.22
25BuildRequires: xz
2d810325 26BuildRequires: zlib-devel
e132fc3b
JB
27Requires: librevenge >= 0.0
28BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29
30%description
31Libzmf is a library for reading and converting Zoner Draw and Zebra
32file formats.
33
34%description -l pl.UTF-8
35Libzmf to biblioteka do odczytu i importu formatów plików Zoner Draw i
36Zebra.
37
38%package devel
39Summary: Development files for libzmf
40Summary(pl.UTF-8): Pliki nagłówkowe dla libzmf
41Group: Development/Libraries
42Requires: %{name} = %{version}-%{release}
43Requires: librevenge-devel >= 0.0
44Requires: libstdc++-devel >= 6:4.7
45
46%description devel
47This package contains the header files for developing applications
48that use libzmf.
49
50%description devel -l pl.UTF-8
51Pen pakiet zawiera pliki nagłówkowe do tworzenia aplikacji opartych na
52libzmf.
53
54%package static
55Summary: Static libzmf library
56Summary(pl.UTF-8): Statyczna biblioteka libzmf
57Group: Development/Libraries
58Requires: %{name}-devel = %{version}-%{release}
59
60%description static
61Static libzmf library.
62
63%description static -l pl.UTF-8
64Statyczna biblioteka libzmf.
65
66%package apidocs
67Summary: libzmf API documentation
68Summary(pl.UTF-8): Dokumentacja API biblioteki libzmf
69Group: Documentation
e132fc3b 70BuildArch: noarch
e132fc3b
JB
71
72%description apidocs
73API and internal documentation for libzmf library.
74
75%description apidocs -l pl.UTF-8
76Dokumentacja API biblioteki libzmf.
77
78%package tools
79Summary: Tools to transform Zoner Draw drawings into other formats
80Summary(pl.UTF-8): Programy przekształcania rysunków Zoner Draw do innych formatów
81Group: Applications/Publishing
82Requires: %{name} = %{version}-%{release}
83
84%description tools
85Tools to transform Zoner Draw drawings into other formats. Currently
86supported: SVG, raw.
87
88%description tools -l pl.UTF-8
89Narzędzia do przekształcania rysunków Zoner Draw do innych formatów.
90Aktualnie 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
110rm -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
118rm -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.163912 seconds and 4 git commands to generate.