]> git.pld-linux.org Git - packages/mate-polkit.git/blob - mate-polkit.spec
- updated gettext BR
[packages/mate-polkit.git] / mate-polkit.spec
1 # TODO: recheck cairo-gobject BR
2 #
3 # Conditional build:
4 %bcond_with     gtk3            # use GTK+ 3.x instead of 2.x
5
6 Summary:        Integrates polkit authentication for MATE desktop
7 Summary(pl.UTF-8):      Integracja uwierzytelniania polkit ze środowiskiem MATE
8 Name:           mate-polkit
9 Version:        1.8.0
10 Release:        1
11 License:        LGPL v2+
12 Group:          X11/Applications
13 Source0:        http://pub.mate-desktop.org/releases/1.8/%{name}-%{version}.tar.xz
14 # Source0-md5:  bd7dfb225e1ba6aac3c5752d496071d8
15 URL:            http://wiki.mate-desktop.org/mate-polkit
16 BuildRequires:  autoconf >= 2.50
17 BuildRequires:  automake >= 1:1.9
18 BuildRequires:  gettext-tools >= 0.10.40
19 BuildRequires:  gobject-introspection-devel >= 0.6.2
20 %{!?with_gtk3:BuildRequires:    gtk+2-devel >= 2:2.17.1}
21 %{?with_gtk3:BuildRequires:     gtk+3-devel >= 3.0.0}
22 BuildRequires:  gtk-doc >= 1.3
23 BuildRequires:  intltool >= 0.35.0
24 BuildRequires:  libtool
25 BuildRequires:  mate-common
26 BuildRequires:  pkgconfig
27 BuildRequires:  polkit-devel >= 0.97
28 BuildRequires:  tar >= 1:1.22
29 BuildRequires:  xz
30 # needed for gobject-introspection support somehow,
31 # https://bugzilla.redhat.com/show_bug.cgi?id=847419#c17 asserts this is a bug (elsewhere)
32 # but I'm not entirely sure -- rex
33 BuildRequires:  cairo-gobject-devel
34 %{!?with_gtk3:Requires: gtk+2 >= 2:2.17.1}
35 %{?with_gtk3:Requires:  gtk+3 >= 3.0.0}
36 Requires:       polkit-libs >= 0.97
37 #Provides:      PolicyKit-authentication-agent
38 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
39
40 %description
41 MATE polkit integrates polkit with the MATE Desktop environment.
42 MATE polkit is a fork of GNOME polkit.
43
44 %description -l pl.UTF-8
45 Integracja uwierzytelniania polkit ze środowiskiem MATE. MATE polkit
46 to odgałęzienie pakietu GNOME polkit.
47
48 %package devel
49 Summary:        Development files for mate-polkit library
50 Summary(pl.UTF-8):      Pliki programistyczne biblioteki mate-polkit
51 Group:          Development/Libraries
52 Requires:       %{name} = %{version}-%{release}
53 %{!?with_gtk3:Requires: gtk+2-devel >= 2:2.17.1}
54 %{?with_gtk3:Requires:  gtk+3-devel >= 3.0.0}
55 Requires:       polkit-devel >= 0.97
56
57 %description devel
58 Development files for mate-polkit library.
59
60 %description devel -l pl.UTF-8
61 Pliki programistyczne biblioteki mate-polkit.
62
63 %prep
64 %setup -q
65
66 %build
67 %{__libtoolize}
68 %{__aclocal} -I m4
69 %{__autoconf}
70 %{__autoheader}
71 %{__automake}
72 %configure \
73         --disable-silent-rules \
74         --disable-static \
75         %{?with_gtk3:--with-gtk=3.0}
76
77 %{__make}
78
79 %install
80 rm -rf $RPM_BUILD_ROOT
81 %{__make} install \
82         DESTDIR=$RPM_BUILD_ROOT
83
84 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libpolkit-gtk-mate-1.la
85
86 %find_lang %{name}
87
88 %clean
89 rm -rf $RPM_BUILD_ROOT
90
91 %post   -p /sbin/ldconfig
92 %postun -p /sbin/ldconfig
93
94 %files -f %{name}.lang
95 %defattr(644,root,root,755)
96 %doc AUTHORS ChangeLog README
97 %attr(755,root,root) %{_libdir}/libpolkit-gtk-mate-1.so.*.*.*
98 %attr(755,root,root) %ghost %{_libdir}/libpolkit-gtk-mate-1.so.0
99 %{_libdir}/girepository-1.0/PolkitGtkMate-1.0.typelib
100 %attr(755,root,root) %{_libexecdir}/polkit-mate-authentication-agent-1
101 %{_sysconfdir}/xdg/autostart/polkit-mate-authentication-agent-1.desktop
102
103 %files devel
104 %defattr(644,root,root,755)
105 %attr(755,root,root) %{_libdir}/libpolkit-gtk-mate-1.so
106 %{_includedir}/polkit-gtk-mate-1
107 %{_datadir}/gir-1.0/PolkitGtkMate-1.0.gir
108 %{_pkgconfigdir}/polkit-gtk-mate-1.pc
This page took 0.046935 seconds and 4 git commands to generate.