]> git.pld-linux.org Git - SPECS.git/blob - librvngabw.spec
SPECS updated Mon 29 Apr 22:05:02 CEST 2024
[SPECS.git] / librvngabw.spec
1 #
2 # Conditional build:
3 %bcond_without  static_libs     # static library
4
5 Summary:        Library for generating documents in AbiWord (ABW) format
6 Summary(pl.UTF-8):      Biblioteka do generowania dokumentów w formacie AbiWorda (ABW)
7 Name:           librvngabw
8 Version:        0.0.3
9 Release:        1
10 License:        MPL v2.0 or LGPL v2.1+
11 Group:          Libraries
12 Source0:        http://downloads.sourceforge.net/librvngabw/%{name}-%{version}.tar.xz
13 # Source0-md5:  c81884e5f280ed56ae34c356d8e3ccc1
14 URL:            http://librvngabw.sourceforge.net/
15 BuildRequires:  doxygen
16 BuildRequires:  librevenge-devel >= 0.0
17 BuildRequires:  libstdc++-devel >= 6:4.7
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 librvngabw is a library for generating documents in AbiWord (ABW)
25 format. It provides generator implementations for text document
26 interfaces supported by librevenge.
27
28 %description -l pl.UTF-8
29 librvngabw to biblioteka do generowania dokumentów w formacie AbiWorda
30 (ABW). Zawiera implementacje generatorów dla interfejsów dokumentów
31 tekstowych obsługiwanych przez librevenge.
32
33 %package devel
34 Summary:        Header files for librvngabw library
35 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki librvngabw
36 Group:          Development/Libraries
37 Requires:       %{name} = %{version}-%{release}
38 Requires:       librevenge-devel >= 0.0
39 Requires:       libstdc++-devel >= 6:4.7
40
41 %description devel
42 Header files for librvngabw library.
43
44 %description devel -l pl.UTF-8
45 Pliki nagłówkowe biblioteki librvngabw.
46
47 %package static
48 Summary:        Static librvngabw library
49 Summary(pl.UTF-8):      Statyczna biblioteka librvngabw
50 Group:          Development/Libraries
51 Requires:       %{name}-devel = %{version}-%{release}
52
53 %description static
54 Static librvngabw library.
55
56 %description static -l pl.UTF-8
57 Statyczna biblioteka librvngabw.
58
59 %package apidocs
60 Summary:        librvngabw API documentation
61 Summary(pl.UTF-8):      Dokumentacja API biblioteki librvngabw
62 Group:          Documentation
63 BuildArch:      noarch
64
65 %description apidocs
66 librvngabw API documentation.
67
68 %description apidocs -l pl.UTF-8
69 Dokumentacja API biblioteki librvngabw.
70
71 %prep
72 %setup -q
73
74 %build
75 %configure \
76         %{?with_static_libs:--enable-static} \
77         --disable-silent-rules \
78         --disable-werror
79 %{__make}
80
81 %install
82 rm -rf $RPM_BUILD_ROOT
83
84 %{__make} install \
85         DESTDIR=$RPM_BUILD_ROOT
86
87 # obsoleted by pkg-config
88 %{__rm} $RPM_BUILD_ROOT%{_libdir}/librvngabw-*.la
89 # packaged as %doc in -apidocs
90 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/librvngabw
91
92 %clean
93 rm -rf $RPM_BUILD_ROOT
94
95 %post   -p /sbin/ldconfig
96 %postun -p /sbin/ldconfig
97
98 %files
99 %defattr(644,root,root,755)
100 %doc ChangeLog NEWS README
101 %attr(755,root,root) %{_libdir}/librvngabw-0.0.so.*.*.*
102 %attr(755,root,root) %ghost %{_libdir}/librvngabw-0.0.so.0
103
104 %files devel
105 %defattr(644,root,root,755)
106 %attr(755,root,root) %{_libdir}/librvngabw-0.0.so
107 %{_includedir}/librvngabw-0.0
108 %{_pkgconfigdir}/librvngabw-0.0.pc
109
110 %if %{with static_libs}
111 %files static
112 %defattr(644,root,root,755)
113 %{_libdir}/librvngabw-0.0.a
114 %endif
115
116 %files apidocs
117 %defattr(644,root,root,755)
118 %doc docs/doxygen/html/*
This page took 0.395307 seconds and 3 git commands to generate.