]> git.pld-linux.org Git - packages/libcdr.git/blob - libcdr.spec
- updated to 0.1.6
[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.6
9 Release:        1
10 License:        MPL v2.0
11 Group:          Libraries
12 Source0:        https://dev-www.libreoffice.org/src/libcdr/%{name}-%{version}.tar.xz
13 # Source0-md5:  5543719c505002e9da0535c7e4cf2321
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:  tar >= 1:1.22
23 BuildRequires:  xz
24 BuildRequires:  zlib-devel
25 Requires:       librevenge >= 0.0.1
26 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28 %description
29 Libcdr is library providing ability to interpret and import Corel Draw
30 drawings into various applications. You can find it being used in
31 libreoffice.
32
33 %description -l pl.UTF-8
34 Libcdr to biblioteka umożliwiająca interpretowanie i importowanie
35 rysunków Corel Draw do wielu aplikacji. Jest wykorzystywana przez
36 libreoffice.
37
38 %package devel
39 Summary:        Development files for libcdr
40 Summary(pl.UTF-8):      Pliki nagłówkowe dla libcdr
41 Group:          Development/Libraries
42 Requires:       %{name} = %{version}-%{release}
43 Requires:       lcms2-devel >= 2.0
44 Requires:       libicu-devel
45 Requires:       librevenge-devel >= 0.0.1
46 Requires:       libstdc++-devel >= 6:4.7
47 Requires:       zlib-devel
48
49 %description devel
50 This package contains the header files for developing applications
51 that use libcdr.
52
53 %description devel -l pl.UTF-8
54 Pen pakiet zawiera pliki nagłówkowe do tworzenia aplikacji opartych na
55 libcdr.
56
57 %package static
58 Summary:        Static libcdr library
59 Summary(pl.UTF-8):      Statyczna biblioteka libcdr
60 Group:          Development/Libraries
61 Requires:       %{name}-devel = %{version}-%{release}
62
63 %description static
64 Static libcdr library.
65
66 %description static -l pl.UTF-8
67 Statyczna biblioteka libcdr.
68
69 %package apidocs
70 Summary:        libcdr API documentation
71 Summary(pl.UTF-8):      Dokumentacja API biblioteki libcdr
72 Group:          Documentation
73 %if "%{_rpmversion}" >= "4.6"
74 BuildArch:      noarch
75 %endif
76
77 %description apidocs
78 API and internal documentation for libcdr library.
79
80 %description apidocs -l pl.UTF-8
81 Dokumentacja API biblioteki libcdr.
82
83 %package tools
84 Summary:        Tools to transform Corel Draw drawings into other formats
85 Summary(pl.UTF-8):      Programy przekształcania rysunków Corel Draw do innych formatów
86 Group:          Applications/Publishing
87 Requires:       %{name} = %{version}-%{release}
88
89 %description tools
90 Tools to transform Corel Draw drawings into other formats. Currently
91 supported: XHTML, raw.
92
93 %description tools -l pl.UTF-8
94 Narzędzia do przekształcania rysunków Corel Draw do innych formatów.
95 Aktualnie obsługiwane są XHTML i raw.
96
97 %prep
98 %setup -q
99
100 %build
101 %{__libtoolize}
102 %{__aclocal}
103 %{__autoconf}
104 %{__autoheader}
105 %{__automake}
106 %configure \
107         --disable-silent-rules \
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.112678 seconds and 3 git commands to generate.