]> git.pld-linux.org Git - packages/libcdr.git/blame - libcdr.spec
icu rebuild
[packages/libcdr.git] / libcdr.spec
CommitLineData
08379207
JB
1#
2# Conditional build:
3%bcond_without static_libs # static library
8e9ba94c 4
08379207
JB
5Summary: A library providing ability to interpret and import Corel Draw drawings
6Summary(pl.UTF-8): Biblioteka umożliwiająca interpretowanie i importowanie rysunków Corel Draw
7Name: libcdr
224a4e69 8Version: 0.1.7
c8554271 9Release: 3
d9d35b7c 10License: MPL v2.0
08379207 11Group: Libraries
1bae4a53 12Source0: https://dev-www.libreoffice.org/src/libcdr/%{name}-%{version}.tar.xz
224a4e69 13# Source0-md5: b6df5cafffe0724b8a1339ecc1710936
1bae4a53 14URL: https://wiki.documentfoundation.org/DLP/Libraries/libcdr
08379207 15BuildRequires: doxygen
d1cb491d 16BuildRequires: boost-devel >= 1.41.0
08379207 17BuildRequires: lcms2-devel >= 2.0
7c4943dd 18BuildRequires: libicu-devel
9b0e7701 19BuildRequires: librevenge-devel >= 0.0.1
c8b0b0ee 20BuildRequires: libstdc++-devel >= 6:4.7
08379207 21BuildRequires: pkgconfig >= 1:0.20
224a4e69 22BuildRequires: rpm-build >= 4.6
08379207
JB
23BuildRequires: tar >= 1:1.22
24BuildRequires: xz
25BuildRequires: zlib-devel
9b0e7701 26Requires: librevenge >= 0.0.1
08379207
JB
27BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28
29%description
30Libcdr is library providing ability to interpret and import Corel Draw
31drawings into various applications. You can find it being used in
32libreoffice.
33
34%description -l pl.UTF-8
35Libcdr to biblioteka umożliwiająca interpretowanie i importowanie
36rysunków Corel Draw do wielu aplikacji. Jest wykorzystywana przez
37libreoffice.
38
39%package devel
40Summary: Development files for libcdr
41Summary(pl.UTF-8): Pliki nagłówkowe dla libcdr
42Group: Development/Libraries
43Requires: %{name} = %{version}-%{release}
44Requires: lcms2-devel >= 2.0
d3b1e016 45Requires: libicu-devel
9b0e7701 46Requires: librevenge-devel >= 0.0.1
c8b0b0ee 47Requires: libstdc++-devel >= 6:4.7
08379207
JB
48Requires: zlib-devel
49
50%description devel
51This package contains the header files for developing applications
52that use libcdr.
53
54%description devel -l pl.UTF-8
55Pen pakiet zawiera pliki nagłówkowe do tworzenia aplikacji opartych na
56libcdr.
57
58%package static
59Summary: Static libcdr library
60Summary(pl.UTF-8): Statyczna biblioteka libcdr
61Group: Development/Libraries
62Requires: %{name}-devel = %{version}-%{release}
63
64%description static
65Static libcdr library.
66
67%description static -l pl.UTF-8
68Statyczna biblioteka libcdr.
69
70%package apidocs
71Summary: libcdr API documentation
72Summary(pl.UTF-8): Dokumentacja API biblioteki libcdr
73Group: Documentation
8e9ba94c 74BuildArch: noarch
08379207
JB
75
76%description apidocs
77API and internal documentation for libcdr library.
78
79%description apidocs -l pl.UTF-8
80Dokumentacja API biblioteki libcdr.
81
82%package tools
83Summary: Tools to transform Corel Draw drawings into other formats
84Summary(pl.UTF-8): Programy przekształcania rysunków Corel Draw do innych formatów
85Group: Applications/Publishing
86Requires: %{name} = %{version}-%{release}
87
88%description tools
89Tools to transform Corel Draw drawings into other formats. Currently
90supported: XHTML, raw.
91
92%description tools -l pl.UTF-8
93Narzędzia do przekształcania rysunków Corel Draw do innych formatów.
94Aktualnie 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
113rm -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
122rm -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
This page took 0.071715 seconds and 4 git commands to generate.