]> git.pld-linux.org Git - SPECS.git/blob - liboobs.spec
SPECS updated Wed 28 Jul 14:48:01 CEST 2021
[SPECS.git] / liboobs.spec
1 #
2 # Conditional build:
3 %bcond_with     hal     # HAL support
4
5 Summary:        Wrapping library to the System Tools Backends
6 Summary(pl.UTF-8):      Biblioteka opakowująca dla System Tools Backends
7 Name:           liboobs
8 Version:        3.0.0
9 Release:        3
10 License:        LGPL v2+
11 Group:          Libraries
12 Source0:        http://ftp.gnome.org/pub/GNOME/sources/liboobs/3.0/%{name}-%{version}.tar.bz2
13 # Source0-md5:  fc3235b902a1cb7ac45776431004a57b
14 URL:            http://www.gnome.org/
15 BuildRequires:  autoconf >= 2.52
16 BuildRequires:  automake
17 BuildRequires:  dbus-glib-devel >= 0.74
18 BuildRequires:  docbook-dtd412-xml
19 BuildRequires:  gettext-tools
20 BuildRequires:  glib2-devel >= 1:2.14.0
21 BuildRequires:  gtk-doc >= 1.9
22 %{?with_hal:BuildRequires:      hal-devel >= 0.5.10}
23 BuildRequires:  libtool
24 BuildRequires:  pkgconfig
25 BuildRequires:  system-tools-backends-devel >= 2.10.1
26 Requires:       dbus-glib >= 0.74
27 Requires:       glib2 >= 1:2.14.0
28 %{?with_hal:Requires:   hal-libs >= 0.5.10}
29 Suggests:       system-tools-backends >= 2.10.1
30 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31
32 %description
33 Liboobs is a wrapping library to the System Tools Backends. It
34 provides easy to access GObjects to system configuration details, like
35 users, groups and network interfaces.
36
37 %description -l pl.UTF-8
38 Liboobs jest biblioteką opakowującą dla System Tools Backends.
39 Dostarcza łatwo dostępne interfejsy GObject dla szczegółów
40 konfiguracyjnych, takich jak użytkownicy, grupy, czy interfejsy
41 sieciowe.
42
43 %package devel
44 Summary:        Header files for liboobs library
45 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki liboobs
46 Group:          Development/Libraries
47 Requires:       %{name} = %{version}-%{release}
48 Requires:       dbus-glib-devel >= 0.74
49 Requires:       glib2-devel >= 1:2.14.0
50
51 %description devel
52 Header files for liboobs library.
53
54 %description devel -l pl.UTF-8
55 Pliki nagłówkowe biblioteki liboobs.
56
57 %package static
58 Summary:        Static liboobs library
59 Summary(pl.UTF-8):      Statyczna biblioteka liboobs
60 Group:          Development/Libraries
61 Requires:       %{name}-devel = %{version}-%{release}
62
63 %description static
64 Static liboobs library.
65
66 %description static -l pl.UTF-8
67 Statyczna biblioteka liboobs.
68
69 %package apidocs
70 Summary:        liboobs API documentation
71 Summary(pl.UTF-8):      Dokumentacja API liboobs
72 Group:          Documentation
73 Requires:       gtk-doc-common
74 BuildArch:      noarch
75
76 %description apidocs
77 liboobs API documentation.
78
79 %description apidocs -l pl.UTF-8
80 Dokumentacja API liboobs.
81
82 %prep
83 %setup -q
84
85 %build
86 %{__libtoolize}
87 %{__aclocal}
88 %{__automake}
89 %{__autoheader}
90 %{__autoconf}
91 %configure \
92         --disable-silent-rules \
93         --enable-gtk-doc \
94         %{?with_hal:--with-hal} \
95         --with-html-dir=%{_gtkdocdir}
96 %{__make}
97
98 %install
99 rm -rf $RPM_BUILD_ROOT
100
101 %{__make} install \
102         DESTDIR=$RPM_BUILD_ROOT
103
104 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
105
106 %clean
107 rm -rf $RPM_BUILD_ROOT
108
109 %post   -p /sbin/ldconfig
110 %postun -p /sbin/ldconfig
111
112 %files
113 %defattr(644,root,root,755)
114 %doc AUTHORS ChangeLog NEWS README
115 %attr(755,root,root) %{_libdir}/liboobs-1.so.*.*.*
116 %attr(755,root,root) %ghost %{_libdir}/liboobs-1.so.5
117
118 %files devel
119 %defattr(644,root,root,755)
120 %attr(755,root,root) %{_libdir}/liboobs-1.so
121 %{_includedir}/liboobs-1.0
122 %{_pkgconfigdir}/liboobs-1.pc
123
124 %files static
125 %defattr(644,root,root,755)
126 %{_libdir}/liboobs-1.a
127
128 %files apidocs
129 %defattr(644,root,root,755)
130 %{_gtkdocdir}/%{name}
This page took 1.176174 seconds and 3 git commands to generate.