]> git.pld-linux.org Git - packages/libcdr.git/blob - libcdr.spec
- updated to 0.1.1
[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.1
9 Release:        1
10 License:        MPL v2.0
11 Group:          Libraries
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
23 BuildRequires:  xz
24 BuildRequires:  zlib-devel
25 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27 %description
28 Libcdr is library providing ability to interpret and import Corel Draw
29 drawings into various applications. You can find it being used in
30 libreoffice.
31
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
35 libreoffice.
36
37 %package devel
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
46 Requires:       zlib-devel
47
48 %description devel
49 This package contains the header files for developing applications
50 that use libcdr.
51
52 %description devel -l pl.UTF-8
53 Pen pakiet zawiera pliki nagłówkowe do tworzenia aplikacji opartych na
54 libcdr.
55
56 %package static
57 Summary:        Static libcdr library
58 Summary(pl.UTF-8):      Statyczna biblioteka libcdr
59 Group:          Development/Libraries
60 Requires:       %{name}-devel = %{version}-%{release}
61
62 %description static
63 Static libcdr library.
64
65 %description static -l pl.UTF-8
66 Statyczna biblioteka libcdr.
67
68 %package apidocs
69 Summary:        libcdr API documentation
70 Summary(pl.UTF-8):      Dokumentacja API biblioteki libcdr
71 Group:          Documentation
72
73 %description apidocs
74 API and internal documentation for libcdr library.
75
76 %description apidocs -l pl.UTF-8
77 Dokumentacja API biblioteki libcdr.
78
79 %package tools
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}
84
85 %description tools
86 Tools to transform Corel Draw drawings into other formats. Currently
87 supported: XHTML, raw.
88
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.
92
93 %prep
94 %setup -q
95
96 %build
97 %configure \
98         --disable-silent-rules \
99         %{?with_static_libs:--enable-static}
100
101 %{__make}
102
103
104 %install
105 rm -rf $RPM_BUILD_ROOT
106 %{__make} install \
107         DESTDIR=$RPM_BUILD_ROOT
108
109 # obsoleted by pkg-config
110 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
111
112 %clean
113 rm -rf $RPM_BUILD_ROOT
114
115 %post   -p /sbin/ldconfig
116 %postun -p /sbin/ldconfig
117
118 %files
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
123
124 %files devel
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
129
130 %if %{with static_libs}
131 %files static
132 %defattr(644,root,root,755)
133 %{_libdir}/libcdr-0.1.a
134 %endif
135
136 %files apidocs
137 %defattr(644,root,root,755)
138 %{_docdir}/%{name}
139
140 %files tools
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
This page took 0.055665 seconds and 3 git commands to generate.