]> git.pld-linux.org Git - packages/libpagemaker.git/blob - libpagemaker.spec
9d487bce8919da5895105288fd7dc44e1f815439
[packages/libpagemaker.git] / libpagemaker.spec
1 #
2 # Conditional build:
3 %bcond_without  static_libs     # static library
4 #
5 Summary:        Library for importing and converting PageMaker documents
6 Summary(pl.UTF-8):      Biblioteka do importowania i konwersji dokumentów PageMakera
7 Name:           libpagemaker
8 Version:        0.0.0
9 Release:        1
10 License:        MPL v2.0
11 Group:          Libraries
12 Source0:        http://dev-www.libreoffice.org/src/libpagemaker/%{name}-%{version}.tar.xz
13 # Source0-md5:  45e2ca30ce6a089fe0fec4badd636632
14 URL:            https://wiki.documentfoundation.org/DLP/Libraries/libpagemaker
15 BuildRequires:  boost-devel
16 BuildRequires:  doxygen
17 BuildRequires:  gperf >= 3.0.0
18 BuildRequires:  librevenge-devel >= 0.0
19 BuildRequires:  libstdc++-devel
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 libpagemaker is a library for importing and converting of PageMaker
29 documents.
30
31 %description -l pl.UTF-8
32 libpagemaker to biblioteka do importowaniai konwersji dokumentów
33 PageMakera.
34
35 %package devel
36 Summary:        Development files for libpagemaker
37 Summary(pl.UTF-8):      Pliki programistyczne biblioteki libpagemaker
38 Group:          Development/Libraries
39 Requires:       %{name} = %{version}-%{release}
40 Requires:       librevenge-devel >= 0.0
41 Requires:       libstdc++-devel
42 Requires:       libxml2-devel >= 2.0
43 Requires:       zlib-devel
44
45 %description devel
46 This package contains the header files for developing applications
47 that use libpagemaker.
48
49 %description devel -l pl.UTF-8
50 Ten pakiet zawiera biblioteki i pliki nagłówkowe do tworzenia
51 aplikacji wykorzystujących bibliotekę libpagemaker.
52
53 %package static
54 Summary:        Static libpagemaker library
55 Summary(pl.UTF-8):      Statyczna biblioteka libpagemaker
56 Group:          Development/Libraries
57 Requires:       %{name}-devel = %{version}-%{release}
58
59 %description static
60 Static libpagemaker library.
61
62 %description static -l pl.UTF-8
63 Statyczna biblioteka libpagemaker.
64
65 %package apidocs
66 Summary:        API documentation for libpagemaker library
67 Summary(pl.UTF-8):      Dokumentacja API biblioteki libpagemaker
68 Group:          Documentation
69
70 %description apidocs
71 API documentation for libpagemaker library.
72
73 %description apidocs -l pl.UTF-8
74 Dokumentacja API biblioteki libpagemaker.
75
76 %package tools
77 Summary:        Tools to transform PageMaker files into other formats
78 Summary(pl.UTF-8):      Narzędzia do przekształcania plików PageMakera do innych formatów
79 Group:          Applications/Publishing
80 Requires:       %{name} = %{version}-%{release}
81
82 %description tools
83 Tools to transform PageMaker files into other formats. Currently
84 supported: SVG, raw.
85
86 %description tools -l pl.UTF-8
87 Narzędzia do przekształcania plików PageMakera do innych formatów.
88 Obecnie obsługiwane są: SVG i surowy.
89
90 %prep
91 %setup -q
92
93 %build
94 %configure \
95         --disable-silent-rules \
96         %{?with_static_libs:--enable-static}
97
98 %{__make}
99
100 %install
101 rm -rf $RPM_BUILD_ROOT
102 %{__make} install \
103         DESTDIR=$RPM_BUILD_ROOT
104
105 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
106
107 # we install API docs directly from build
108 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}
109
110 %clean
111 rm -rf $RPM_BUILD_ROOT
112
113 %post   -p /sbin/ldconfig
114 %postun -p /sbin/ldconfig
115
116 %files
117 %defattr(644,root,root,755)
118 %doc AUTHORS ChangeLog NEWS NOTES
119 %attr(755,root,root) %{_libdir}/libpagemaker-0.0.so.*.*.*
120 %attr(755,root,root) %ghost %{_libdir}/libpagemaker-0.0.so.0
121
122 %files devel
123 %defattr(644,root,root,755)
124 %attr(755,root,root) %{_libdir}/libpagemaker-0.0.so
125 %{_includedir}/libpagemaker-0.0
126 %{_pkgconfigdir}/libpagemaker-0.0.pc
127
128 %if %{with static_libs}
129 %files static
130 %defattr(644,root,root,755)
131 %{_libdir}/libpagemaker-0.0.a
132 %endif
133
134 %files apidocs
135 %defattr(644,root,root,755)
136 %doc docs/doxygen/html/*
137
138 %files tools
139 %defattr(644,root,root,755)
140 %attr(755,root,root) %{_bindir}/pmd2raw
141 %attr(755,root,root) %{_bindir}/pmd2svg
This page took 0.047691 seconds and 2 git commands to generate.