]> git.pld-linux.org Git - packages/appstream-glib.git/blob - appstream-glib.spec
- new
[packages/appstream-glib.git] / appstream-glib.spec
1 Summary:        GLib Objects and helper methods for reading and writing AppStream metadata
2 Summary(pl.UTF-8):      Obiekty GLiba i metody pomocnicze do odczytu i zapisu metadanych AppStream
3 Name:           appstream-glib
4 Version:        0.1.6
5 Release:        1
6 License:        LGPL v2.1+
7 Group:          Libraries
8 Source0:        http://people.freedesktop.org/~hughsient/appstream-glib/releases/%{name}-%{version}.tar.xz
9 # Source0-md5:  aecdcd0bedaf7e41fc13335288312aae
10 URL:            http://people.freedesktop.org/~hughsient/appstream-glib/
11 BuildRequires:  gdk-pixbuf2-devel >= 2.14
12 BuildRequires:  glib2-devel >= 1:2.16.1
13 BuildRequires:  gobject-introspection-devel >= 0.9.8
14 BuildRequires:  gperf
15 BuildRequires:  gtk-doc >= 1.9
16 BuildRequires:  libarchive-devel
17 BuildRequires:  libsoup-devel >= 2.24
18 BuildRequires:  libstdc++-devel
19 BuildRequires:  pkgconfig
20 BuildRequires:  tar >= 1:1.22
21 BuildRequires:  xz
22 Requires:       glib2 >= 1:2.16.1
23 Requires:       gdk-pixbuf2 >= 2.14
24 Requires:       libsoup >= 2.24
25 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27 %description
28 AppStream-Glib library provides GObjects and helper methods to make it
29 easy to read and write AppStream metadata. It also provides a simple
30 DOM implementation that makes it easy to edit nodes and convert to and
31 from the standardized XML representation.
32
33 %description -l pl.UTF-8
34 Biblioteka AppStream-Glib dostarcza obiekty GLiba (GObject) oraz
35 metody pomocnicze ułatwiające odczyt i zapis metadanych AppStream.
36 Zapewnia także prostą implementację DOM ułatwiającą modyfikowanie
37 węzłów i konwersję do i ze standardowej reprezentacji XML.
38
39 %package devel
40 Summary:        Header files for appstream-glib library
41 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki appstream-glib
42 Group:          Development/Libraries
43 Requires:       %{name} = %{version}-%{release}
44 Requires:       gdk-pixbuf2-devel >= 2.14
45 Requires:       glib2-devel >= 1:2.16.1
46
47 %description devel
48 Header files for appstream-glib library.
49
50 %description devel -l pl.UTF-8
51 Pliki nagłówkowe biblioteki appstream-glib.
52
53 %package static
54 Summary:        Static appstream-glib library
55 Summary(pl.UTF-8):      Statyczna biblioteka appstream-glib
56 Group:          Development/Libraries
57 Requires:       %{name}-devel = %{version}-%{release}
58
59 %description static
60 Static appstream-glib library.
61
62 %description static -l pl.UTF-8
63 Statyczna biblioteka appstream-glib.
64
65 %package apidocs
66 Summary:        appstream-glib API documentation
67 Summary(pl.UTF-8):      Dokumentacja API biblioteki appstream-glib
68 Group:          Documentation
69
70 %description apidocs
71 API documentation for appstream-glib library.
72
73 %description apidocs -l pl.UTF-8
74 Dokumentacja API biblioteki appstream-glib.
75
76 %prep
77 %setup -q
78
79 %build
80 %configure \
81         --disable-silent-rules \
82         --with-html-dir=%{_gtkdocdir}
83 %{__make}
84
85 %install
86 rm -rf $RPM_BUILD_ROOT
87
88 %{__make} install \
89         DESTDIR=$RPM_BUILD_ROOT
90
91 # obsoleted by pkg-config
92 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libappstream-glib.la
93
94 %clean
95 rm -rf $RPM_BUILD_ROOT
96
97 %post   -p /sbin/ldconfig
98 %postun -p /sbin/ldconfig
99
100 %files
101 %defattr(644,root,root,755)
102 %doc AUTHORS MAINTAINERS NEWS README.md
103 %attr(755,root,root) %{_bindir}/appstream-util
104 %attr(755,root,root) %{_libdir}/libappstream-glib.so.*.*.*
105 %attr(755,root,root) %ghost %{_libdir}/libappstream-glib.so.1
106 %{_libdir}/girepository-1.0/AppStreamGlib-1.0.typelib
107
108 %files devel
109 %defattr(644,root,root,755)
110 %attr(755,root,root) %{_libdir}/libappstream-glib.so
111 %{_datadir}/gir-1.0/AppStreamGlib-1.0.gir
112 %{_includedir}/libappstream-glib
113 %{_pkgconfigdir}/appstream-glib.pc
114
115 %files static
116 %defattr(644,root,root,755)
117 %{_libdir}/libappstream-glib.a
118
119 %files apidocs
120 %defattr(644,root,root,755)
121 %{_gtkdocdir}/appstream-glib
This page took 0.066928 seconds and 4 git commands to generate.