]>
Commit | Line | Data |
---|---|---|
beb976bc | 1 | Summary: XPS documents library |
734e7a2c | 2 | Summary(pl.UTF-8): Biblioteka do obsługi dokumentów XPS |
beb976bc | 3 | Name: libgxps |
c32ef9ca | 4 | Version: 0.2.5 |
dec9da79 | 5 | Release: 1 |
769cbe18 | 6 | License: LGPL v2.1+ |
beb976bc | 7 | Group: Libraries |
3c5fb40d | 8 | Source0: http://ftp.gnome.org/pub/GNOME/sources/libgxps/0.2/%{name}-%{version}.tar.xz |
c32ef9ca | 9 | # Source0-md5: c10e1ef5b2d61c88f4da2bd252a9e239 |
beb976bc MB |
10 | URL: http://live.gnome.org/libgxps |
11 | BuildRequires: autoconf >= 2.57 | |
12 | BuildRequires: automake >= 1:1.10 | |
13 | BuildRequires: cairo-devel >= 1.10.0 | |
dec9da79 | 14 | BuildRequires: freetype-devel >= 2 |
beb976bc MB |
15 | BuildRequires: glib2-devel >= 1:2.24.0 |
16 | BuildRequires: gnome-common | |
17 | BuildRequires: gobject-introspection-devel >= 0.10.1 | |
18 | BuildRequires: gtk-doc >= 1.14 | |
dec9da79 | 19 | BuildRequires: lcms2-devel >= 2 |
beb976bc MB |
20 | BuildRequires: libarchive-devel >= 2.8.0 |
21 | BuildRequires: libjpeg-devel | |
3c5fb40d | 22 | BuildRequires: libpng-devel |
beb976bc MB |
23 | BuildRequires: libtiff-devel |
24 | BuildRequires: libtool | |
734e7a2c | 25 | BuildRequires: libxslt-progs |
beb976bc MB |
26 | BuildRequires: pkgconfig |
27 | BuildRequires: tar >= 1:1.22 | |
28 | BuildRequires: xz | |
734e7a2c JB |
29 | Requires: cairo >= 1.10.0 |
30 | Requires: glib2 >= 1:2.24.0 | |
31 | Requires: libarchive >= 2.8.0 | |
beb976bc MB |
32 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
33 | ||
34 | %description | |
35 | libgxps is a GObject based library for handling and rendering XPS | |
36 | documents. | |
37 | ||
734e7a2c JB |
38 | %description -l pl.UTF-8 |
39 | libgxps to oparta na szkielecie GObject biblioteka do obsługi i | |
40 | renderowania dokumentów XPS. | |
41 | ||
beb976bc MB |
42 | %package devel |
43 | Summary: Header files for libgxps library | |
44 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libgxps | |
45 | Group: Development/Libraries | |
46 | Requires: %{name} = %{version}-%{release} | |
47 | Requires: cairo-devel >= 1.10.0 | |
48 | Requires: glib2-devel >= 1:2.24.0 | |
49 | Requires: libarchive-devel >= 2.8.0 | |
50 | ||
51 | %description devel | |
52 | Header files for libgxps library. | |
53 | ||
54 | %description devel -l pl.UTF-8 | |
55 | Pliki nagłówkowe biblioteki libgxps. | |
56 | ||
734e7a2c JB |
57 | %package static |
58 | Summary: Static libgxps libary | |
59 | Summary(pl.UTF-8): Statyczna biblioteka libgxps | |
60 | Group: Development/Libraries | |
61 | Requires: %{name}-devel = %{version}-%{release} | |
62 | ||
63 | %description static | |
64 | Static libgxps libary. | |
65 | ||
66 | %description static -l pl.UTF-8 | |
67 | Statyczna biblioteka libgxps. | |
68 | ||
beb976bc MB |
69 | %package apidocs |
70 | Summary: libgxps API documentation | |
71 | Summary(pl.UTF-8): Dokumentacja API biblioteki libgxps | |
72 | Group: Documentation | |
73 | Requires: gtk-doc-common | |
83684951 ER |
74 | %if "%{_rpmversion}" >= "5" |
75 | BuildArch: noarch | |
76 | %endif | |
beb976bc MB |
77 | |
78 | %description apidocs | |
79 | API documentation for libgxps library. | |
80 | ||
81 | %description apidocs -l pl.UTF-8 | |
82 | Dokumentacja API biblioteki libgxps. | |
83 | ||
84 | %prep | |
85 | %setup -q | |
86 | ||
87 | %build | |
88 | %{__libtoolize} | |
89 | %{__aclocal} -I m4 | |
90 | %{__autoconf} | |
91 | %{__autoheader} | |
92 | %{__automake} | |
93 | %configure \ | |
94 | --with-html-dir=%{_gtkdocdir} \ | |
95 | --enable-gtk-doc \ | |
734e7a2c | 96 | --disable-silent-rules |
beb976bc MB |
97 | %{__make} |
98 | ||
99 | %install | |
100 | rm -rf $RPM_BUILD_ROOT | |
101 | ||
102 | %{__make} install \ | |
103 | DESTDIR=$RPM_BUILD_ROOT | |
104 | ||
734e7a2c | 105 | # obsoleted by pkg-config |
beb976bc MB |
106 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la |
107 | ||
108 | %clean | |
109 | rm -rf $RPM_BUILD_ROOT | |
110 | ||
111 | %post -p /sbin/ldconfig | |
112 | %postun -p /sbin/ldconfig | |
113 | ||
114 | %files | |
115 | %defattr(644,root,root,755) | |
116 | %doc AUTHORS ChangeLog NEWS README TODO | |
3c5fb40d MB |
117 | %attr(755,root,root) %{_bindir}/xpstojpeg |
118 | %attr(755,root,root) %{_bindir}/xpstopdf | |
119 | %attr(755,root,root) %{_bindir}/xpstopng | |
120 | %attr(755,root,root) %{_bindir}/xpstops | |
121 | %attr(755,root,root) %{_bindir}/xpstosvg | |
beb976bc | 122 | %attr(755,root,root) %{_libdir}/libgxps.so.*.*.* |
3c5fb40d | 123 | %attr(755,root,root) %ghost %{_libdir}/libgxps.so.2 |
beb976bc MB |
124 | %{_libdir}/girepository-1.0/GXPS-0.1.typelib |
125 | ||
126 | %files devel | |
127 | %defattr(644,root,root,755) | |
128 | %attr(755,root,root) %{_libdir}/libgxps.so | |
129 | %{_datadir}/gir-1.0/GXPS-0.1.gir | |
130 | %{_includedir}/libgxps | |
131 | %{_pkgconfigdir}/libgxps.pc | |
132 | ||
734e7a2c JB |
133 | %files static |
134 | %defattr(644,root,root,755) | |
135 | %{_libdir}/libgxps.a | |
136 | ||
beb976bc MB |
137 | %files apidocs |
138 | %defattr(644,root,root,755) | |
139 | %{_gtkdocdir}/libgxps |