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