]>
Commit | Line | Data |
---|---|---|
08379207 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without static_libs # static library | |
8e9ba94c | 4 | |
08379207 JB |
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 | |
7 | Name: libcdr | |
224a4e69 | 8 | Version: 0.1.7 |
c8554271 | 9 | Release: 3 |
d9d35b7c | 10 | License: MPL v2.0 |
08379207 | 11 | Group: Libraries |
1bae4a53 | 12 | Source0: https://dev-www.libreoffice.org/src/libcdr/%{name}-%{version}.tar.xz |
224a4e69 | 13 | # Source0-md5: b6df5cafffe0724b8a1339ecc1710936 |
1bae4a53 | 14 | URL: https://wiki.documentfoundation.org/DLP/Libraries/libcdr |
08379207 | 15 | BuildRequires: doxygen |
d1cb491d | 16 | BuildRequires: boost-devel >= 1.41.0 |
08379207 | 17 | BuildRequires: lcms2-devel >= 2.0 |
7c4943dd | 18 | BuildRequires: libicu-devel |
9b0e7701 | 19 | BuildRequires: librevenge-devel >= 0.0.1 |
c8b0b0ee | 20 | BuildRequires: libstdc++-devel >= 6:4.7 |
08379207 | 21 | BuildRequires: pkgconfig >= 1:0.20 |
224a4e69 | 22 | BuildRequires: rpm-build >= 4.6 |
08379207 JB |
23 | BuildRequires: tar >= 1:1.22 |
24 | BuildRequires: xz | |
25 | BuildRequires: zlib-devel | |
9b0e7701 | 26 | Requires: librevenge >= 0.0.1 |
08379207 JB |
27 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
28 | ||
29 | %description | |
30 | Libcdr is library providing ability to interpret and import Corel Draw | |
31 | drawings into various applications. You can find it being used in | |
32 | libreoffice. | |
33 | ||
34 | %description -l pl.UTF-8 | |
35 | Libcdr to biblioteka umożliwiająca interpretowanie i importowanie | |
36 | rysunków Corel Draw do wielu aplikacji. Jest wykorzystywana przez | |
37 | libreoffice. | |
38 | ||
39 | %package devel | |
40 | Summary: Development files for libcdr | |
41 | Summary(pl.UTF-8): Pliki nagłówkowe dla libcdr | |
42 | Group: Development/Libraries | |
43 | Requires: %{name} = %{version}-%{release} | |
44 | Requires: lcms2-devel >= 2.0 | |
d3b1e016 | 45 | Requires: libicu-devel |
9b0e7701 | 46 | Requires: librevenge-devel >= 0.0.1 |
c8b0b0ee | 47 | Requires: libstdc++-devel >= 6:4.7 |
08379207 JB |
48 | Requires: zlib-devel |
49 | ||
50 | %description devel | |
51 | This package contains the header files for developing applications | |
52 | that use libcdr. | |
53 | ||
54 | %description devel -l pl.UTF-8 | |
55 | Pen pakiet zawiera pliki nagłówkowe do tworzenia aplikacji opartych na | |
56 | libcdr. | |
57 | ||
58 | %package static | |
59 | Summary: Static libcdr library | |
60 | Summary(pl.UTF-8): Statyczna biblioteka libcdr | |
61 | Group: Development/Libraries | |
62 | Requires: %{name}-devel = %{version}-%{release} | |
63 | ||
64 | %description static | |
65 | Static libcdr library. | |
66 | ||
67 | %description static -l pl.UTF-8 | |
68 | Statyczna biblioteka libcdr. | |
69 | ||
70 | %package apidocs | |
71 | Summary: libcdr API documentation | |
72 | Summary(pl.UTF-8): Dokumentacja API biblioteki libcdr | |
73 | Group: Documentation | |
8e9ba94c | 74 | BuildArch: noarch |
08379207 JB |
75 | |
76 | %description apidocs | |
77 | API and internal documentation for libcdr library. | |
78 | ||
79 | %description apidocs -l pl.UTF-8 | |
80 | Dokumentacja API biblioteki libcdr. | |
81 | ||
82 | %package tools | |
83 | Summary: Tools to transform Corel Draw drawings into other formats | |
84 | Summary(pl.UTF-8): Programy przekształcania rysunków Corel Draw do innych formatów | |
85 | Group: Applications/Publishing | |
86 | Requires: %{name} = %{version}-%{release} | |
87 | ||
88 | %description tools | |
89 | Tools to transform Corel Draw drawings into other formats. Currently | |
90 | supported: XHTML, raw. | |
91 | ||
92 | %description tools -l pl.UTF-8 | |
93 | Narzędzia do przekształcania rysunków Corel Draw do innych formatów. | |
94 | Aktualnie obsługiwane są XHTML i raw. | |
95 | ||
96 | %prep | |
97 | %setup -q | |
98 | ||
99 | %build | |
c47a61bc JR |
100 | %{__libtoolize} |
101 | %{__aclocal} | |
102 | %{__autoconf} | |
103 | %{__autoheader} | |
104 | %{__automake} | |
08379207 JB |
105 | %configure \ |
106 | --disable-silent-rules \ | |
d3b1e016 | 107 | %{?with_static_libs:--enable-static} |
08379207 JB |
108 | |
109 | %{__make} | |
110 | ||
111 | ||
112 | %install | |
113 | rm -rf $RPM_BUILD_ROOT | |
796c1a21 | 114 | |
08379207 JB |
115 | %{__make} install \ |
116 | DESTDIR=$RPM_BUILD_ROOT | |
117 | ||
118 | # obsoleted by pkg-config | |
119 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la | |
120 | ||
121 | %clean | |
122 | rm -rf $RPM_BUILD_ROOT | |
123 | ||
124 | %post -p /sbin/ldconfig | |
125 | %postun -p /sbin/ldconfig | |
126 | ||
127 | %files | |
128 | %defattr(644,root,root,755) | |
d3b1e016 JB |
129 | %doc AUTHORS ChangeLog NEWS README |
130 | %attr(755,root,root) %{_libdir}/libcdr-0.1.so.*.*.* | |
131 | %attr(755,root,root) %ghost %{_libdir}/libcdr-0.1.so.1 | |
08379207 JB |
132 | |
133 | %files devel | |
134 | %defattr(644,root,root,755) | |
d3b1e016 JB |
135 | %attr(755,root,root) %{_libdir}/libcdr-0.1.so |
136 | %{_includedir}/libcdr-0.1 | |
137 | %{_pkgconfigdir}/libcdr-0.1.pc | |
08379207 | 138 | |
a8c8f800 | 139 | %if %{with static_libs} |
08379207 JB |
140 | %files static |
141 | %defattr(644,root,root,755) | |
d3b1e016 | 142 | %{_libdir}/libcdr-0.1.a |
a8c8f800 | 143 | %endif |
08379207 JB |
144 | |
145 | %files apidocs | |
146 | %defattr(644,root,root,755) | |
d3b1e016 | 147 | %{_docdir}/%{name} |
08379207 JB |
148 | |
149 | %files tools | |
150 | %defattr(644,root,root,755) | |
151 | %attr(755,root,root) %{_bindir}/cdr2raw | |
152 | %attr(755,root,root) %{_bindir}/cdr2xhtml | |
d1cb491d | 153 | %attr(755,root,root) %{_bindir}/cdr2text |
bf40dd15 JB |
154 | %attr(755,root,root) %{_bindir}/cmx2raw |
155 | %attr(755,root,root) %{_bindir}/cmx2xhtml | |
d1cb491d | 156 | %attr(755,root,root) %{_bindir}/cmx2text |