]>
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 |
2c30dc02 | 4 | Version: 0.2.2 |
4791ee0b | 5 | Release: 2 |
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 |
2c30dc02 | 9 | # Source0-md5: 65bec2033ff71307f429dc3f91d60233 |
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 | |
14 | BuildRequires: freetype-devel | |
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 | |
3c5fb40d | 19 | BuildRequires: lcms2-devel |
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 | |
74 | ||
75 | %description apidocs | |
76 | API documentation for libgxps library. | |
77 | ||
78 | %description apidocs -l pl.UTF-8 | |
79 | Dokumentacja API biblioteki libgxps. | |
80 | ||
81 | %prep | |
82 | %setup -q | |
83 | ||
84 | %build | |
85 | %{__libtoolize} | |
86 | %{__aclocal} -I m4 | |
87 | %{__autoconf} | |
88 | %{__autoheader} | |
89 | %{__automake} | |
90 | %configure \ | |
91 | --with-html-dir=%{_gtkdocdir} \ | |
92 | --enable-gtk-doc \ | |
734e7a2c | 93 | --disable-silent-rules |
beb976bc MB |
94 | %{__make} |
95 | ||
96 | %install | |
97 | rm -rf $RPM_BUILD_ROOT | |
98 | ||
99 | %{__make} install \ | |
100 | DESTDIR=$RPM_BUILD_ROOT | |
101 | ||
734e7a2c | 102 | # obsoleted by pkg-config |
beb976bc MB |
103 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la |
104 | ||
105 | %clean | |
106 | rm -rf $RPM_BUILD_ROOT | |
107 | ||
108 | %post -p /sbin/ldconfig | |
109 | %postun -p /sbin/ldconfig | |
110 | ||
111 | %files | |
112 | %defattr(644,root,root,755) | |
113 | %doc AUTHORS ChangeLog NEWS README TODO | |
3c5fb40d MB |
114 | %attr(755,root,root) %{_bindir}/xpstojpeg |
115 | %attr(755,root,root) %{_bindir}/xpstopdf | |
116 | %attr(755,root,root) %{_bindir}/xpstopng | |
117 | %attr(755,root,root) %{_bindir}/xpstops | |
118 | %attr(755,root,root) %{_bindir}/xpstosvg | |
beb976bc | 119 | %attr(755,root,root) %{_libdir}/libgxps.so.*.*.* |
3c5fb40d | 120 | %attr(755,root,root) %ghost %{_libdir}/libgxps.so.2 |
beb976bc MB |
121 | %{_libdir}/girepository-1.0/GXPS-0.1.typelib |
122 | ||
123 | %files devel | |
124 | %defattr(644,root,root,755) | |
125 | %attr(755,root,root) %{_libdir}/libgxps.so | |
126 | %{_datadir}/gir-1.0/GXPS-0.1.gir | |
127 | %{_includedir}/libgxps | |
128 | %{_pkgconfigdir}/libgxps.pc | |
129 | ||
734e7a2c JB |
130 | %files static |
131 | %defattr(644,root,root,755) | |
132 | %{_libdir}/libgxps.a | |
133 | ||
beb976bc MB |
134 | %files apidocs |
135 | %defattr(644,root,root,755) | |
136 | %{_gtkdocdir}/libgxps |