]> git.pld-linux.org Git - packages/libwpg.git/blob - libwpg.spec
- updated to 0.3.4
[packages/libwpg.git] / libwpg.spec
1 #
2 # Conditional build:
3 %bcond_without  static_libs     # static library
4
5 Summary:        Library for importing and converting Corel WordPerfect(TM) Graphics images
6 Summary(pl.UTF-8):      Biblioteka do importowania i konwersji obrazów Corel WordPerfect Graphics
7 Name:           libwpg
8 Version:        0.3.4
9 Release:        1
10 License:        MPL v2.0 or LGPL v2.1+
11 Group:          Libraries
12 Source0:        https://downloads.sourceforge.net/libwpg/%{name}-%{version}.tar.xz
13 # Source0-md5:  8f3ef77c8f650b299693c4b79c59483a
14 URL:            https://libwpg.sourceforge.net/
15 BuildRequires:  doxygen
16 BuildRequires:  librevenge-devel >= 0.0.1
17 BuildRequires:  libstdc++-devel >= 6:4.7
18 BuildRequires:  libwpd-devel >= 0.10
19 BuildRequires:  pkgconfig >= 1:0.20
20 BuildRequires:  tar >= 1:1.22
21 BuildRequires:  xz
22 Requires:       librevenge >= 0.0.1
23 Requires:       libwpd >= 0.10
24 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26 %description
27 Libwpg project is a collection of library and tools to work with
28 graphics in WPG (WordPerfect Graphics) format. WPG is the format used
29 among others in Corel software, such as WordPerfect(TM) and
30 Presentations(TM).
31
32 %description -l pl.UTF-8
33 Projekt libwpg to zestaw biblioteki i narzędzi do pracy z obrazami w
34 formacie WPG (WordPerfect Graphics). WPG to format używany między
35 innymi w programach firmy Corel, takich jak WordPerfect(TM) i
36 Presentations(TM).
37
38 %package devel
39 Summary:        Header files for libwpg library
40 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki libwpg
41 Group:          Development/Libraries
42 Requires:       %{name} = %{version}-%{release}
43 Requires:       librevenge-devel >= 0.0.1
44 Requires:       libstdc++-devel >= 6:4.7
45 Requires:       libwpd-devel >= 0.10
46
47 %description devel
48 Header files for libwpg library.
49
50 %description devel -l pl.UTF-8
51 Pliki nagłówkowe biblioteki libwpg.
52
53 %package static
54 Summary:        Static libwpg library
55 Summary(pl.UTF-8):      Statyczna biblioteka libwpg
56 Group:          Development/Libraries
57 Requires:       %{name}-devel = %{version}-%{release}
58
59 %description static
60 Static libwpg library.
61
62 %description static -l pl.UTF-8
63 Statyczna biblioteka libwpg.
64
65 %package apidocs
66 Summary:        API documentation for libwpg library
67 Summary(pl.UTF-8):      Dokumentacja API biblioteki libwpg
68 Group:          Documentation
69 BuildArch:      noarch
70
71 %description apidocs
72 API documentation for libwpg library.
73
74 %description apidocs -l pl.UTF-8
75 Dokumentacja API biblioteki libwpg.
76
77 %package tools
78 Summary:        Tools to transform WordPerfect Graphics into other formats
79 Summary(pl.UTF-8):      Narzędzia do konwersji plików z formatu WordPerfect Graphics do innych
80 Group:          Applications/Publishing
81 Requires:       %{name} = %{version}-%{release}
82
83 %description tools
84 Tools to transform WordPerfect Graphics (WPG) into other formats.
85
86 %description tools -l pl.UTF-8
87 Narzędzia do konwersji plików z formatu WordPerfect Graphics do innych
88 formatów.
89
90 %prep
91 %setup -q
92
93 %build
94 %configure \
95         --disable-silent-rules \
96         %{?with_static_libs:--enable-static}
97 %{__make}
98
99 %install
100 rm -rf $RPM_BUILD_ROOT
101
102 %{__make} install \
103         DESTDIR=$RPM_BUILD_ROOT
104
105 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
106 # packages as %doc in -devel
107 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}/html
108
109 %clean
110 rm -rf $RPM_BUILD_ROOT
111
112 %post   -p /sbin/ldconfig
113 %postun -p /sbin/ldconfig
114
115 %files
116 %defattr(644,root,root,755)
117 %doc AUTHORS ChangeLog NEWS
118 %attr(755,root,root) %{_libdir}/libwpg-0.3.so.*.*.*
119 %attr(755,root,root) %ghost %{_libdir}/libwpg-0.3.so.3
120
121 %files devel
122 %defattr(644,root,root,755)
123 %attr(755,root,root) %{_libdir}/libwpg-0.3.so
124 %{_includedir}/libwpg-0.3
125 %{_pkgconfigdir}/libwpg-0.3.pc
126
127 %if %{with static_libs}
128 %files static
129 %defattr(644,root,root,755)
130 %{_libdir}/libwpg-0.3.a
131 %endif
132
133 %files apidocs
134 %defattr(644,root,root,755)
135 %doc docs/doxygen/html/*
136
137 %files tools
138 %defattr(644,root,root,755)
139 %attr(755,root,root) %{_bindir}/wpg2raw
140 %attr(755,root,root) %{_bindir}/wpg2svg
141 %attr(755,root,root) %{_bindir}/wpg2svgbatch.pl
This page took 0.137679 seconds and 3 git commands to generate.