]> git.pld-linux.org Git - packages/libepubgen.git/blob - libepubgen.spec
- new
[packages/libepubgen.git] / libepubgen.spec
1 #
2 # Conditional build:
3 %bcond_without  static_libs     # don't build static library
4 #
5 Summary:        Library for generating documents in EPUB format
6 Summary(pl.UTF-8):      Biblioteka do generowania dokumentów w formacie EPUB
7 Name:           libepubgen
8 Version:        0.0.0
9 Release:        1
10 License:        MPL v2.0
11 Group:          Libraries
12 Source0:        http://downloads.sourceforge.net/libepubgen/%{name}-%{version}.tar.xz
13 # Source0-md5:  21d1d23f609da2e9ed24629b8ae96584
14 URL:            http://libepubgen.sourceforge.net/
15 BuildRequires:  boost-devel
16 BuildRequires:  librevenge-devel >= 0.0
17 BuildRequires:  libstdc++-devel
18 BuildRequires:  pkgconfig >= 1:0.20
19 BuildRequires:  tar >= 1:1.22
20 BuildRequires:  xz
21 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23 %description
24 libepubgen is a library for generating documents in EPUB format,
25 implementing librevenge document interfaces. It supports conversion of
26 text documents, presentations and vector drawings.
27
28 %description -l pl.UTF-8
29 libepubgen to biblioteka do generowania dokumentów w formacie EPUB,
30 implementująca interfejsy dokumentów librevenge. Obsługuje konwersję
31 dokumentów tekstowych, prezentacji oraz rysunków wektorowych.
32
33 %package devel
34 Summary:        Header files for libepubgen library
35 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki libepubgen
36 Group:          Development/Libraries
37 Requires:       %{name} = %{version}-%{release}
38 Requires:       librevenge-devel >= 0.0
39 Requires:       libstdc++-devel
40
41 %description devel
42 Header files for libepubgen library.
43
44 %description devel -l pl.UTF-8
45 Pliki nagłówkowe biblioteki libepubgen.
46
47 %package static
48 Summary:        Static libepubgen library
49 Summary(pl.UTF-8):      Statyczna biblioteka libepubgen
50 Group:          Development/Libraries
51 Requires:       %{name}-devel = %{version}-%{release}
52
53 %description static
54 Static libepubgen library.
55
56 %description static -l pl.UTF-8
57 Statyczna biblioteka libepubgen.
58
59 %package apidocs
60 Summary:        libepubgen API documentation
61 Summary(pl.UTF-8):      Dokumentacja API biblioteki libepubgen
62 Group:          Documentation
63
64 %description apidocs
65 libepubgen API documentation.
66
67 %description apidocs -l pl.UTF-8
68 Dokumentacja API biblioteki libepubgen.
69
70 %prep
71 %setup -q
72
73 %build
74 %configure \
75         %{?with_static_libs:--enable-static} \
76         --disable-silent-rules \
77         --disable-werror
78 %{__make}
79
80 %install
81 rm -rf $RPM_BUILD_ROOT
82
83 %{__make} install \
84         DESTDIR=$RPM_BUILD_ROOT
85
86 # obsoleted by pkg-config
87 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libepubgen-*.la
88 # packaged as %doc in -apidocs
89 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/libepubgen
90
91 %clean
92 rm -rf $RPM_BUILD_ROOT
93
94 %post   -p /sbin/ldconfig
95 %postun -p /sbin/ldconfig
96
97 %files
98 %defattr(644,root,root,755)
99 %doc AUTHORS ChangeLog NEWS README TODO
100 %attr(755,root,root) %{_libdir}/libepubgen-0.0.so.*.*.*
101 %attr(755,root,root) %ghost %{_libdir}/libepubgen-0.0.so.0
102
103 %files devel
104 %defattr(644,root,root,755)
105 %attr(755,root,root) %{_libdir}/libepubgen-0.0.so
106 %{_includedir}/libepubgen-0.0
107 %{_pkgconfigdir}/libepubgen-0.0.pc
108
109 %if %{with static_libs}
110 %files static
111 %defattr(644,root,root,755)
112 %{_libdir}/libepubgen-0.0.a
113 %endif
114
115 %files apidocs
116 %defattr(644,root,root,755)
117 %doc docs/doxygen/html/*
This page took 0.12156 seconds and 3 git commands to generate.