]> git.pld-linux.org Git - packages/PolicyKit-gnome.git/blame - PolicyKit-gnome.spec
- BR: docbook-dtd412-xml
[packages/PolicyKit-gnome.git] / PolicyKit-gnome.spec
CommitLineData
8b69dc65
SS
1#
2# Conditional build:
3c7cd94d 3%bcond_without examples # don't build example
8b69dc65 4#
70d60b45 5Summary: GNOME dialogs for PolicyKit
4e11cd41 6Summary(pl.UTF-8): Okna dialogowe GNOME dla pakietu PolicyKit
76100e07 7Name: PolicyKit-gnome
aa9bf8cd 8Version: 0.9.2
72e2c3a7 9Release: 3
69b7dddb 10License: LGPL v2+ (polkit-gnome library), GPL v2+ (D-Bus service)
76100e07 11Group: X11/Applications
944b7184 12Source0: http://hal.freedesktop.org/releases/%{name}-%{version}.tar.bz2
aa9bf8cd 13# Source0-md5: fc478b168d0c926a9766b0b415ff4bbf
72e2c3a7 14Patch0: %{name}-fix-clickable-buttons.patch
76100e07 15URL: http://people.freedesktop.org/~david/polkit-spec.html
28bf57a8
MB
16BuildRequires: GConf2-devel
17BuildRequires: PolicyKit-devel >= 0.9
8b69dc65 18%{?with_examples:BuildRequires: PolicyKit}
76100e07
JB
19BuildRequires: autoconf >= 2.50
20BuildRequires: automake >= 1:1.9
21BuildRequires: dbus-glib-devel >= 0.71
663d7870 22BuildRequires: docbook-dtd412-xml
28bf57a8 23BuildRequires: gettext-devel
76100e07 24BuildRequires: gnome-common >= 2.0
28bf57a8 25BuildRequires: gnome-doc-utils
aa9bf8cd 26BuildRequires: gtk+2-devel >= 2:2.14.0
69b7dddb 27BuildRequires: gtk-doc >= 1.3
4e96e2a3 28BuildRequires: intltool >= 0.35.0
76100e07
JB
29BuildRequires: libgnomeui-devel >= 2.14.0
30BuildRequires: libtool
31BuildRequires: pkgconfig
28bf57a8 32Requires(post,preun): GConf2
69b7dddb 33Requires: %{name}-libs = %{version}-%{release}
76100e07
JB
34BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
35
36%description
70d60b45
MB
37PolicyKit-gnome provides a D-BUS session bus service that is used to
38bring up authentication dialogs used for obtaining privileges.
76100e07
JB
39
40%description -l pl.UTF-8
4e11cd41
JB
41Pakiet PolicyKit-gnome udostępnia usługę magistrali sesji D-BUS
42służącą do wyświetlania okien dialogowych uwierzytelniania w celu
43uzyskania uprawnień.
76100e07 44
69b7dddb
JB
45%package libs
46Summary: PolicyKit add-on library for GNOME
47Summary(pl.UTF-8): Dodatkowa biblioteka PolicyKit dla GNOME
48Group: X11/Libraries
28bf57a8 49Requires: PolicyKit-libs >= 0.9
69b7dddb
JB
50Requires: gtk+2 >= 2:2.12.0
51
52%description libs
53PolicyKit add-on library for GNOME.
54
55%description libs -l pl.UTF-8
56Dodatkowa biblioteka PolicyKit dla GNOME.
57
58%package devel
59Summary: Header files for polkit-gnome library
60Summary(pl.UTF-8): Pliki nagłówkowe biblioteki polkit-gnome
033ad8eb 61Group: X11/Development/Libraries
69b7dddb 62Requires: %{name}-libs = %{version}-%{release}
28bf57a8 63Requires: PolicyKit-devel >= 0.9
69b7dddb 64Requires: dbus-devel >= 1.0
aa9bf8cd 65Requires: gtk+2-devel >= 2:2.14.0
69b7dddb
JB
66Requires: libselinux-devel >= 1.30
67
68%description devel
69Header files for polkit-gnome library.
70
71%description devel -l pl.UTF-8
72Pliki nagłówkowe biblioteki polkit-gnome.
73
74%package static
75Summary: Static polkit-gnome library
76Summary(pl.UTF-8): Statyczna biblioteka polkit-gnome
033ad8eb 77Group: X11/Development/Libraries
69b7dddb
JB
78Requires: %{name}-devel = %{version}-%{release}
79
80%description static
81Static polkit-gnome library.
82
83%description static -l pl.UTF-8
84Statyczna biblioteka polkit-gnome.
85
28bf57a8
MB
86%package apidocs
87Summary: polkit-gnome library API documentation
88Summary(pl.UTF-8): Dokumentacja API biblioteki polkit-gnome
89Group: Documentation
90Requires: gtk-doc-common
91
92%description apidocs
93polkit-gnome library API documentation.
94
95%description apidocs -l pl.UTF-8
96Dokumentacja API biblioteki polkit-gnome.
97
70d60b45
MB
98%package demo
99Summary: Demo application for PolicyKit-gnome
4e11cd41 100Summary(pl.UTF-8): Aplikacja demonstracyjna dla pakietu PolicyKit-gnome
70d60b45
MB
101Group: X11/Applications
102Requires: %{name} = %{version}-%{release}
103
104%description demo
105PolicyKit-gnome-demo provides a sample application that demonstrates
106the features of both PolicyKit and PolicyKit-gnome. You normally don't
107want to have this package installed.
108
4e11cd41
JB
109%description demo -l pl.UTF-8
110Pakiet PolicyKit-gnome-demo zawiera przykładową aplikację
111demonstrującą możliwości pakietów PolicyKit i PolicyKit-gnome. Zwykle
112ten pakiet nie powinien być instalowany.
113
76100e07
JB
114%prep
115%setup -q
72e2c3a7 116%patch0 -p1
76100e07
JB
117
118%build
4e96e2a3 119%{__intltoolize}
76100e07
JB
120%{__libtoolize}
121%{__aclocal}
122%{__autoconf}
123%{__autoheader}
124%{__automake}
033ad8eb 125%configure \
8b69dc65 126 %{!?with_examples:--disable-examples} \
033ad8eb 127 --with-html-dir=%{_gtkdocdir}
76100e07
JB
128%{__make}
129
130%install
131rm -rf $RPM_BUILD_ROOT
132
133%{__make} install \
134 DESTDIR=$RPM_BUILD_ROOT
135
4e96e2a3
MB
136%find_lang %{name}
137
76100e07
JB
138%clean
139rm -rf $RPM_BUILD_ROOT
140
28bf57a8 141%post
83bc6693 142%gconf_schema_install polkit-gnome.schemas
28bf57a8
MB
143
144%preun
83bc6693 145%gconf_schema_uninstall polkit-gnome.schemas
28bf57a8 146
a03a1f92
MB
147%post libs -p /sbin/ldconfig
148%postun libs -p /sbin/ldconfig
149
4e96e2a3 150%files -f %{name}.lang
76100e07 151%defattr(644,root,root,755)
69b7dddb 152%doc AUTHORS ChangeLog NEWS TODO
033ad8eb 153%attr(755,root,root) %{_bindir}/polkit-gnome-authorization
70d60b45 154%attr(755,root,root) %{_libdir}/polkit-gnome-manager
28bf57a8 155%{_sysconfdir}/gconf/schemas/polkit-gnome.schemas
70d60b45 156%{_datadir}/dbus-1/services/org.gnome.PolicyKit.service
69b7dddb
JB
157%{_datadir}/dbus-1/services/org.gnome.PolicyKit.AuthorizationManager.service
158%{_datadir}/dbus-1/services/gnome-org.freedesktop.PolicyKit.AuthenticationAgent.service
159%{_desktopdir}/polkit-gnome-authorization.desktop
160
161%files libs
162%defattr(644,root,root,755)
163%attr(755,root,root) %{_libdir}/libpolkit-gnome.so.*.*.*
164%attr(755,root,root) %ghost %{_libdir}/libpolkit-gnome.so.0
165
166%files devel
167%defattr(644,root,root,755)
168%attr(755,root,root) %{_libdir}/libpolkit-gnome.so
169%{_libdir}/libpolkit-gnome.la
170%{_includedir}/PolicyKit/polkit-gnome
171%{_pkgconfigdir}/polkit-gnome.pc
69b7dddb
JB
172
173%files static
174%defattr(644,root,root,755)
175%{_libdir}/libpolkit-gnome.a
70d60b45 176
28bf57a8
MB
177%files apidocs
178%defattr(644,root,root,755)
179%{_gtkdocdir}/polkit-gnome
180
3c7cd94d 181%if %{with examples}
70d60b45
MB
182%files demo
183%defattr(644,root,root,755)
76100e07 184%attr(755,root,root) %{_bindir}/polkit-gnome-example
28bf57a8 185%{_datadir}/PolicyKit/policy/org.gnome.policykit.examples.policy
8b69dc65 186%endif
This page took 0.105589 seconds and 4 git commands to generate.