]> git.pld-linux.org Git - packages/gxml.git/blob - gxml.spec
- updated gettext BR
[packages/gxml.git] / gxml.spec
1 #
2 # Conditional build:
3 %bcond_without  static_libs     # don't build static libraries
4 #
5 Summary:        GXml - GObject API that wraps around libxml2
6 Summary(pl.UTF-8):      GXml - API GObject obudowujące libxml2
7 Name:           gxml
8 Version:        0.4.1
9 Release:        1
10 License:        LGPL v2.1+
11 Group:          Libraries
12 Source0:        http://ftp.gnome.org/pub/GNOME/sources/gxml/0.4/%{name}-%{version}.tar.xz
13 # Source0-md5:  a637f46fe662b64221a766cbd4a3c724
14 URL:            https://github.com/GNOME/gxml
15 BuildRequires:  autoconf >= 2.65
16 BuildRequires:  automake >= 1:1.11
17 BuildRequires:  gettext-tools >= 0.18.1
18 BuildRequires:  glib2-devel >= 1:2.32.0
19 BuildRequires:  gobject-introspection-devel >= 1.32.0
20 BuildRequires:  intltool >= 0.35.0
21 BuildRequires:  libgee-devel >= 0.10.5
22 BuildRequires:  libtool >= 2:2
23 BuildRequires:  libxml2-devel >= 1:2.7
24 BuildRequires:  pkgconfig >= 1:0.21
25 BuildRequires:  sed >= 4.0
26 BuildRequires:  tar >= 1:1.22
27 BuildRequires:  vala >= 2:0.22
28 # needed only for docs regeneration
29 #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.16
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 %{__sed} -i -e 's/libvala-0\.20/libvala-0.22/' configure.ac
86
87 %build
88 %{__intltoolize}
89 %{__libtoolize}
90 %{__aclocal} -I m4
91 %{__autoconf}
92 %{__autoheader}
93 %{__automake}
94 %configure \
95         --enable-gi-system-install \
96         --disable-silent-rules \
97         %{?with_static_libs:--enable-static}
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.4.la
108 # packaged as %doc
109 %{__rm} -r $RPM_BUILD_ROOT%{_prefix}/doc
110
111 %clean
112 rm -rf $RPM_BUILD_ROOT
113
114 %post   -p /sbin/ldconfig
115 %postun -p /sbin/ldconfig
116
117 %files
118 %defattr(644,root,root,755)
119 %doc AUTHORS ChangeLog NEWS README
120 %attr(755,root,root) %{_libdir}/libgxml-0.4.so.*.*.*
121 %attr(755,root,root) %ghost %{_libdir}/libgxml-0.4.so.4
122 %{_libdir}/girepository-1.0/GXml-0.4.typelib
123
124 %files devel
125 %defattr(644,root,root,755)
126 %attr(755,root,root) %{_libdir}/libgxml-0.4.so
127 %{_includedir}/gxml-0.4
128 %{_datadir}/gir-1.0/GXml-0.4.gir
129 %{_pkgconfigdir}/gxml-0.4.pc
130
131 %if %{with static_libs}
132 %files static
133 %defattr(644,root,root,755)
134 %{_libdir}/libgxml-0.4.a
135 %endif
136
137 %files -n vala-gxml
138 %defattr(644,root,root,755)
139 %{_datadir}/vala/vapi/gxml-0.4.deps
140 %{_datadir}/vala/vapi/gxml-0.4.vapi
This page took 0.262526 seconds and 3 git commands to generate.