]> git.pld-linux.org Git - packages/gxml.git/blob - gxml.spec
- updated to 0.8.0 (note: new soname; API compatible with 0.6.x)
[packages/gxml.git] / gxml.spec
1 #
2 # Conditional build:
3 %bcond_with     apidocs         # API documentation [doesn't build up to 0.8.0 release]
4 %bcond_without  static_libs     # static library
5 #
6 Summary:        GXml - GObject API that wraps around libxml2
7 Summary(pl.UTF-8):      GXml - API GObject obudowujące libxml2
8 Name:           gxml
9 Version:        0.8.0
10 Release:        1
11 License:        LGPL v2.1+
12 Group:          Libraries
13 Source0:        http://ftp.gnome.org/pub/GNOME/sources/gxml/0.8/%{name}-%{version}.tar.xz
14 # Source0-md5:  5fcc4a9a4e1f55750bbe3771957a76c8
15 URL:            https://github.com/GNOME/gxml
16 BuildRequires:  autoconf >= 2.65
17 BuildRequires:  automake >= 1:1.11
18 BuildRequires:  gettext-tools >= 0.18.1
19 BuildRequires:  glib2-devel >= 1:2.32.0
20 BuildRequires:  gobject-introspection-devel >= 1.32.0
21 BuildRequires:  intltool >= 0.35.0
22 BuildRequires:  libgee-devel >= 0.10.5
23 BuildRequires:  libtool >= 2:2
24 BuildRequires:  libxml2-devel >= 1:2.7
25 BuildRequires:  pkgconfig >= 1:0.21
26 BuildRequires:  sed >= 4.0
27 BuildRequires:  tar >= 1:1.22
28 BuildRequires:  vala >= 2:0.26
29 %{?with_apidocs:BuildRequires:  valadoc >= 0.3.1}
30 BuildRequires:  yelp-tools
31 BuildRequires:  xz
32 Requires:       glib2 >= 1:2.32.0
33 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
34
35 %description
36 GXml is a GObject API that wraps around libxml2.
37
38 %description -l pl.UTF-8
39 GXml to API GObject obudowujące libxml2.
40
41 %package devel
42 Summary:        Header files for GXml library
43 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki GXml
44 Group:          Development/Libraries
45 Requires:       %{name} = %{version}-%{release}
46 Requires:       glib2-devel >= 1:2.32.0
47 Requires:       libgee-devel >= 0.10.5
48 Requires:       libxml2-devel >= 1:2.7
49
50 %description devel
51 Header files for GXml library.
52
53 %description devel -l pl.UTF-8
54 Pliki nagłówkowe biblioteki GXml.
55
56 %package static
57 Summary:        Static GXml library
58 Summary(pl.UTF-8):      Statyczna biblioteka GXml
59 Group:          Development/Libraries
60 Requires:       %{name}-devel = %{version}-%{release}
61
62 %description static
63 Static GXml library.
64
65 %description static -l pl.UTF-8
66 Statyczna biblioteka GXml.
67
68 %package -n vala-gxml
69 Summary:        Vala API for GXml library
70 Summary(pl.UTF-8):      API języka Vala dla biblioteki GXml
71 Group:          Development/Libraries
72 Requires:       %{name}-devel = %{version}-%{release}
73 Requires:       vala >= 2:0.26
74 Requires:       vala-libgee >= 0.10.5
75
76 %description -n vala-gxml
77 Vala API for GXml library.
78
79 %description -n vala-gxml -l pl.UTF-8
80 API języka Vala dla biblioteki GXml.
81
82 %prep
83 %setup -q
84
85 %build
86 %{__intltoolize}
87 %{__libtoolize}
88 %{__aclocal} -I m4
89 %{__autoconf}
90 %{__autoheader}
91 %{__automake}
92 %configure \
93         --enable-gi-system-install \
94         --disable-silent-rules \
95         %{?with_static_libs:--enable-static} \
96         %{?with_apidocs:--enable-docs --enable-gtk-docs --enable-valadoc}
97 # --enable-gir-docs --enable-devhelp-docs ???
98 %{__make}
99
100 %install
101 rm -rf $RPM_BUILD_ROOT
102
103 %{__make} install \
104         DESTDIR=$RPM_BUILD_ROOT
105
106 # obsoleted by pkg-config
107 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libgxml-0.6.la
108 # packaged as %doc
109 %{__rm} -r $RPM_BUILD_ROOT%{_prefix}/doc
110
111 %find_lang GXml
112
113 %clean
114 rm -rf $RPM_BUILD_ROOT
115
116 %post   -p /sbin/ldconfig
117 %postun -p /sbin/ldconfig
118
119 %files -f GXml.lang
120 %defattr(644,root,root,755)
121 %doc AUTHORS ChangeLog NEWS README
122 %attr(755,root,root) %{_libdir}/libgxml-0.6.so.*.*.*
123 %attr(755,root,root) %ghost %{_libdir}/libgxml-0.6.so.8
124 %{_libdir}/girepository-1.0/GXml-0.6.typelib
125
126 %files devel
127 %defattr(644,root,root,755)
128 %attr(755,root,root) %{_libdir}/libgxml-0.6.so
129 %{_includedir}/gxml-0.6
130 %{_datadir}/gir-1.0/GXml-0.6.gir
131 %{_pkgconfigdir}/gxml-0.6.pc
132
133 %if %{with static_libs}
134 %files static
135 %defattr(644,root,root,755)
136 %{_libdir}/libgxml-0.6.a
137 %endif
138
139 %files -n vala-gxml
140 %defattr(644,root,root,755)
141 %{_datadir}/vala/vapi/gxml-0.6.deps
142 %{_datadir}/vala/vapi/gxml-0.6.vapi
This page took 0.070659 seconds and 4 git commands to generate.