]> git.pld-linux.org Git - packages/libhif.git/blob - libhif.spec
e976e3af8ec0efe4ce883bd9aed6ecf86b567664
[packages/libhif.git] / libhif.spec
1 Summary:        Simple package library built on top of hawkey and librepo
2 Summary(pl.UTF-8):      Prosta biblioteka obsługi pakietów oparta na bibliotekach hawkey i librepo
3 Name:           libhif
4 Version:        0.2.1
5 Release:        1
6 License:        LGPL v2.1+
7 Group:          Libraries
8 Source0:        http://people.freedesktop.org/~hughsient/releases/%{name}-%{version}.tar.xz
9 # Source0-md5:  f500d8b3366aabea60341332d92f5df1
10 Patch0:         %{name}-rpm5.patch
11 URL:            https://github.com/hughsie/libhif
12 BuildRequires:  glib2-devel >= 1:2.36.0
13 BuildRequires:  gobject-introspection-devel >= 0.9.8
14 BuildRequires:  gtk-doc >= 1.9
15 BuildRequires:  hawkey-devel >= 0.4.6
16 BuildRequires:  librepo-devel >= 1.7.11
17 BuildRequires:  libsolv-devel
18 BuildRequires:  pkgconfig
19 BuildRequires:  rpm-devel >= 5
20 BuildRequires:  tar >= 1:1.22
21 BuildRequires:  xz
22 Requires:       glib2 >= 1:2.36.0
23 Requires:       hawkey >= 0.4.6
24 Requires:       librepo >= 1.7.11
25 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27 %description
28 This library provides a simple interface to hawkey and librepo and is
29 currently used by PackageKit and rpm-ostree.
30
31 %description -l pl.UTF-8
32 Ta biblioteka udostępnia prosty interfejs do bibliotek hawkey i
33 librepo, jest obecnie używana przez pakiety PackageKit i rpm-ostree.
34
35 %package devel
36 Summary:        Header files for libhif library
37 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki libhif
38 Group:          Development/Libraries
39 Requires:       %{name} = %{version}-%{release}
40 Requires:       glib2-devel >= 1:2.36.0
41 Requires:       hawkey-devel >= 0.4.6
42 Requires:       librepo-devel >= 1.7.11
43 Requires:       rpm-devel >= 5
44
45 %description devel
46 Header files for libhif library.
47
48 %description devel -l pl.UTF-8
49 Pliki nagłówkowe biblioteki libhif.
50
51 %package static
52 Summary:        Static libhif library
53 Summary(pl.UTF-8):      Statyczna biblioteka libhif
54 Group:          Development/Libraries
55 Requires:       %{name}-devel = %{version}-%{release}
56
57 %description static
58 Static libhif library.
59
60 %description static -l pl.UTF-8
61 Statyczna biblioteka libhif.
62
63 %package apidocs
64 Summary:        libhif API documentation
65 Summary(pl.UTF-8):      Dokumentacja API biblioteki libhif
66 Group:          Documentation
67
68 %description apidocs
69 API documentation for libhif library.
70
71 %description apidocs -l pl.UTF-8
72 Dokumentacja API biblioteki libhif.
73
74 %prep
75 %setup -q
76 %patch0 -p1
77
78 %build
79 %configure \
80         --disable-silent-rules \
81         --with-html-dir=%{_gtkdocdir}
82 %{__make}
83
84 %install
85 rm -rf $RPM_BUILD_ROOT
86
87 %{__make} install \
88         DESTDIR=$RPM_BUILD_ROOT
89
90 # obsoleted by pkg-config
91 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libhif.la
92
93 %clean
94 rm -rf $RPM_BUILD_ROOT
95
96 %post   -p /sbin/ldconfig
97 %postun -p /sbin/ldconfig
98
99 %files
100 %defattr(644,root,root,755)
101 %doc AUTHORS MAINTAINERS NEWS README.md
102 %attr(755,root,root) %{_libdir}/libhif.so.*.*.*
103 %attr(755,root,root) %ghost %{_libdir}/libhif.so.1
104 %{_libdir}/girepository-1.0/Hif-1.0.typelib
105
106 %files devel
107 %defattr(644,root,root,755)
108 %attr(755,root,root) %{_libdir}/libhif.so
109 %{_datadir}/gir-1.0/Hif-1.0.gir
110 %{_includedir}/libhif
111 %{_pkgconfigdir}/libhif.pc
112
113 %files static
114 %defattr(644,root,root,755)
115 %{_libdir}/libhif.a
116
117 %files apidocs
118 %defattr(644,root,root,755)
119 %{_gtkdocdir}/libhif
This page took 0.111553 seconds and 2 git commands to generate.