]> git.pld-linux.org Git - packages/libcdr.git/blob - libcdr.spec
icu rebuild
[packages/libcdr.git] / libcdr.spec
1 #
2 # Conditional build:
3 %bcond_without  static_libs     # static library
4
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
8 Version:        0.1.7
9 Release:        5
10 License:        MPL v2.0
11 Group:          Libraries
12 Source0:        https://dev-www.libreoffice.org/src/libcdr/%{name}-%{version}.tar.xz
13 # Source0-md5:  b6df5cafffe0724b8a1339ecc1710936
14 URL:            https://wiki.documentfoundation.org/DLP/Libraries/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.1
20 BuildRequires:  libstdc++-devel >= 6:4.7
21 BuildRequires:  pkgconfig >= 1:0.20
22 BuildRequires:  rpm-build >= 4.6
23 BuildRequires:  tar >= 1:1.22
24 BuildRequires:  xz
25 BuildRequires:  zlib-devel
26 Requires:       librevenge >= 0.0.1
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
45 Requires:       libicu-devel
46 Requires:       librevenge-devel >= 0.0.1
47 Requires:       libstdc++-devel >= 6:4.7
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
74 BuildArch:      noarch
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
100 %{__libtoolize}
101 %{__aclocal}
102 %{__autoconf}
103 %{__autoheader}
104 %{__automake}
105 %configure \
106         --disable-silent-rules \
107         --disable-tests \
108         %{?with_static_libs:--enable-static}
109
110 %{__make}
111
112
113 %install
114 rm -rf $RPM_BUILD_ROOT
115
116 %{__make} install \
117         DESTDIR=$RPM_BUILD_ROOT
118
119 # obsoleted by pkg-config
120 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
121
122 %clean
123 rm -rf $RPM_BUILD_ROOT
124
125 %post   -p /sbin/ldconfig
126 %postun -p /sbin/ldconfig
127
128 %files
129 %defattr(644,root,root,755)
130 %doc AUTHORS ChangeLog NEWS README
131 %attr(755,root,root) %{_libdir}/libcdr-0.1.so.*.*.*
132 %attr(755,root,root) %ghost %{_libdir}/libcdr-0.1.so.1
133
134 %files devel
135 %defattr(644,root,root,755)
136 %attr(755,root,root) %{_libdir}/libcdr-0.1.so
137 %{_includedir}/libcdr-0.1
138 %{_pkgconfigdir}/libcdr-0.1.pc
139
140 %if %{with static_libs}
141 %files static
142 %defattr(644,root,root,755)
143 %{_libdir}/libcdr-0.1.a
144 %endif
145
146 %files apidocs
147 %defattr(644,root,root,755)
148 %{_docdir}/%{name}
149
150 %files tools
151 %defattr(644,root,root,755)
152 %attr(755,root,root) %{_bindir}/cdr2raw
153 %attr(755,root,root) %{_bindir}/cdr2xhtml
154 %attr(755,root,root) %{_bindir}/cdr2text
155 %attr(755,root,root) %{_bindir}/cmx2raw
156 %attr(755,root,root) %{_bindir}/cmx2xhtml
157 %attr(755,root,root) %{_bindir}/cmx2text
This page took 0.128622 seconds and 3 git commands to generate.