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