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