]> git.pld-linux.org Git - packages/libetonyek.git/blob - libetonyek.spec
- updated to 0.0.3
[packages/libetonyek.git] / libetonyek.spec
1 #
2 # Conditional build:
3 %bcond_without  static_libs     # don't build static libraries
4 #
5 Summary:        Library and tools for reading and converting Apple Keynote presentations
6 Summary(pl.UTF-8):      Biblioteka i narzędzia do odczytu i konwersji prezentacji Apple Keynote
7 Name:           libetonyek
8 Version:        0.0.3
9 Release:        1
10 License:        MPL v2.0
11 Group:          Libraries
12 Source0:        http://dev-www.libreoffice.org/src/%{name}-%{version}.tar.xz
13 # Source0-md5:  6deb26eb088acd8938b9bec800cfb59e
14 URL:            http://www.freedesktop.org/wiki/Software/libetonyek/
15 BuildRequires:  boost-devel
16 BuildRequires:  doxygen
17 BuildRequires:  gperf
18 BuildRequires:  libstdc++-devel
19 BuildRequires:  libwpd-devel >= 0.9
20 BuildRequires:  libxml2-devel >= 2.0
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 libetonyek is a library and a set of tools for reading and converting
29 Apple Keynote presentations. The library tries to extract the most
30 important parts of version 2 format of Keynote (version 1 is not
31 supported yet, but it should be in the future). See FEATURES for what
32 is currently supported.
33
34 %description -l pl.UTF-8
35 libetonyek to biblioteka i zestaw narzędzi do odczytu i konwersji
36 prezentacji Apple Keynote. Biblioteka próbuje wydobyć najważniejsze
37 części formatu Keynote w wersji 2 (wersja 1 nie jest jeszcze
38 obsługiwana, ale powinna być w przyszłości). Informacje o
39 obsługiwanych elementach można znaleźć w pliku FEATURES.
40
41 %package devel
42 Summary:        Header files for libetonyek library
43 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki libetonyek
44 Group:          Development/Libraries
45 Requires:       %{name} = %{version}-%{release}
46 Requires:       libstdc++-devel
47 Requires:       libwpd-devel >= 0.9
48
49 %description devel
50 Header files for libetonyek library.
51
52 %description devel -l pl.UTF-8
53 Pliki nagłówkowe biblioteki libetonyek.
54
55 %package static
56 Summary:        Static libetonyek library
57 Summary(pl.UTF-8):      Statyczna biblioteka libetonyek
58 Group:          Development/Libraries
59 Requires:       %{name}-devel = %{version}-%{release}
60
61 %description static
62 Static libetonyek library.
63
64 %description static -l pl.UTF-8
65 Statyczna biblioteka libetonyek.
66
67 %package apidocs
68 Summary:        libetonyek API documentation
69 Summary(pl.UTF-8):      Dokumentacja API biblioteki libetonyek
70 Group:          Documentation
71
72 %description apidocs
73 API documentation for libetonyek library.
74
75 %description apidocs -l pl.UTF-8
76 Dokumentacja API biblioteki libetonyek.
77
78 %prep
79 %setup -q
80
81 %build
82 %configure \
83         --disable-silent-rules \
84         %{?with_static_libs:--enable-static} \
85         --disable-werror
86 %{__make}
87
88 %install
89 rm -rf $RPM_BUILD_ROOT
90
91 %{__make} install \
92         DESTDIR=$RPM_BUILD_ROOT
93
94 # obsoleted by pkg-config
95 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libetonyek-*.la
96 # packaged as %doc in -apidocs
97 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/libetonyek
98
99 %clean
100 rm -rf $RPM_BUILD_ROOT
101
102 %post   -p /sbin/ldconfig
103 %postun -p /sbin/ldconfig
104
105 %files
106 %defattr(644,root,root,755)
107 %doc AUTHORS ChangeLog FEATURES NEWS README TODO
108 %attr(755,root,root) %{_bindir}/key2raw
109 %attr(755,root,root) %{_bindir}/key2text
110 %attr(755,root,root) %{_bindir}/key2xhtml
111 %attr(755,root,root) %{_libdir}/libetonyek-0.0.so.*.*.*
112 %attr(755,root,root) %ghost %{_libdir}/libetonyek-0.0.so.0
113
114 %files devel
115 %defattr(644,root,root,755)
116 %attr(755,root,root) %{_libdir}/libetonyek-0.0.so
117 %{_includedir}/libetonyek-0.0
118 %{_pkgconfigdir}/libetonyek-0.0.pc
119
120 %if %{with static_libs}
121 %files static
122 %defattr(644,root,root,755)
123 %{_libdir}/libetonyek-0.0.a
124 %endif
125
126 %files apidocs
127 %defattr(644,root,root,755)
128 %doc docs/doxygen/html/*
This page took 0.071768 seconds and 3 git commands to generate.