3 %bcond_without static_libs # static library
5 Summary: A library providing ability to interpret and import Corel Draw drawings
6 Summary(pl.UTF-8): Biblioteka umożliwiająca interpretowanie i importowanie rysunków Corel Draw
12 Source0: http://dev-www.libreoffice.org/src/libcdr/%{name}-%{version}.tar.xz
13 # Source0-md5: 72ed4d2f900eac95061207d026d5324c
14 URL: http://www.freedesktop.org/wiki/Software/libcdr
15 BuildRequires: doxygen
16 BuildRequires: boost-devel >= 1.41.0
17 BuildRequires: lcms2-devel >= 2.0
18 BuildRequires: libicu-devel
19 BuildRequires: librevenge-devel >= 0.0
20 BuildRequires: libstdc++-devel
21 BuildRequires: pkgconfig >= 1:0.20
22 BuildRequires: tar >= 1:1.22
24 BuildRequires: zlib-devel
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28 Libcdr is library providing ability to interpret and import Corel Draw
29 drawings into various applications. You can find it being used in
32 %description -l pl.UTF-8
33 Libcdr to biblioteka umożliwiająca interpretowanie i importowanie
34 rysunków Corel Draw do wielu aplikacji. Jest wykorzystywana przez
38 Summary: Development files for libcdr
39 Summary(pl.UTF-8): Pliki nagłówkowe dla libcdr
40 Group: Development/Libraries
41 Requires: %{name} = %{version}-%{release}
42 Requires: lcms2-devel >= 2.0
43 Requires: libicu-devel
44 Requires: librevenge-devel >= 0.0
45 Requires: libstdc++-devel
49 This package contains the header files for developing applications
52 %description devel -l pl.UTF-8
53 Pen pakiet zawiera pliki nagłówkowe do tworzenia aplikacji opartych na
57 Summary: Static libcdr library
58 Summary(pl.UTF-8): Statyczna biblioteka libcdr
59 Group: Development/Libraries
60 Requires: %{name}-devel = %{version}-%{release}
63 Static libcdr library.
65 %description static -l pl.UTF-8
66 Statyczna biblioteka libcdr.
69 Summary: libcdr API documentation
70 Summary(pl.UTF-8): Dokumentacja API biblioteki libcdr
74 API and internal documentation for libcdr library.
76 %description apidocs -l pl.UTF-8
77 Dokumentacja API biblioteki libcdr.
80 Summary: Tools to transform Corel Draw drawings into other formats
81 Summary(pl.UTF-8): Programy przekształcania rysunków Corel Draw do innych formatów
82 Group: Applications/Publishing
83 Requires: %{name} = %{version}-%{release}
86 Tools to transform Corel Draw drawings into other formats. Currently
87 supported: XHTML, raw.
89 %description tools -l pl.UTF-8
90 Narzędzia do przekształcania rysunków Corel Draw do innych formatów.
91 Aktualnie obsługiwane są XHTML i raw.
98 --disable-silent-rules \
99 %{?with_static_libs:--enable-static}
105 rm -rf $RPM_BUILD_ROOT
107 DESTDIR=$RPM_BUILD_ROOT
109 # obsoleted by pkg-config
110 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
113 rm -rf $RPM_BUILD_ROOT
115 %post -p /sbin/ldconfig
116 %postun -p /sbin/ldconfig
119 %defattr(644,root,root,755)
120 %doc AUTHORS ChangeLog NEWS README
121 %attr(755,root,root) %{_libdir}/libcdr-0.1.so.*.*.*
122 %attr(755,root,root) %ghost %{_libdir}/libcdr-0.1.so.1
125 %defattr(644,root,root,755)
126 %attr(755,root,root) %{_libdir}/libcdr-0.1.so
127 %{_includedir}/libcdr-0.1
128 %{_pkgconfigdir}/libcdr-0.1.pc
130 %if %{with static_libs}
132 %defattr(644,root,root,755)
133 %{_libdir}/libcdr-0.1.a
137 %defattr(644,root,root,755)
141 %defattr(644,root,root,755)
142 %attr(755,root,root) %{_bindir}/cdr2raw
143 %attr(755,root,root) %{_bindir}/cdr2xhtml
144 %attr(755,root,root) %{_bindir}/cdr2text
145 %attr(755,root,root) %{_bindir}/cmx2raw
146 %attr(755,root,root) %{_bindir}/cmx2xhtml
147 %attr(755,root,root) %{_bindir}/cmx2text