]> git.pld-linux.org Git - packages/libgnomesu.git/blame - libgnomesu.spec
Release 12 (by relup.sh)
[packages/libgnomesu.git] / libgnomesu.spec
CommitLineData
fde05b66
JB
1#
2# Conditional build:
3%bcond_without static_libs
4
5f86ab44 5Summary: Library for providing superuser privileges
6512d0db 6Summary(pl.UTF-8): Biblioteka do udostępniania uprawnień superużytkownika
5f86ab44 7Name: libgnomesu
e0e0fe3d 8Version: 1.0.0
1fbb4b0b 9Release: 12
6512d0db
JB
10License: LGPL v2+
11Group: X11/Applications
e0e0fe3d 12Source0: http://members.chello.nl/~h.lai/libgnomesu/%{name}-%{version}.tar.gz
13# Source0-md5: 9f1cb8c3f61ad2fb31ad05a5d3eb211d
14Patch0: %{name}-xauth-nolookup.patch
15Patch1: %{name}-mainloop.patch
16Patch2: %{name}-unsetenv.patch
17Patch3: %{name}-modernize.patch
18Patch4: %{name}-startup-notification.patch
19Patch5: %{name}-pam-handling.patch
20Patch6: %{name}-drop-libgnomeui.patch
21Patch7: %{name}-safe-path.patch
22Patch8: %{name}-remove-prior-cookie.patch
23Patch9: %{name}-i18n.patch
24Patch10: %{name}-memory-cleaning.patch
1df270c6 25Patch11: %{name}-format.patch
fde05b66 26Patch12: %{name}-libdir.patch
e0e0fe3d 27URL: http://members.chello.nl/~h.lai/libgnomesu/
6512d0db 28BuildRequires: GConf2-devel >= 2.0
f09dda5f 29BuildRequires: gettext-tools
fde05b66 30BuildRequires: glib2-devel >= 2.0
6512d0db 31BuildRequires: gtk+2-devel >= 1:2.0
b3b56bc8 32BuildRequires: libgnomeui-devel >= 2.10.0-2
5f86ab44 33BuildRequires: pam-devel
6512d0db
JB
34BuildRequires: pkgconfig
35Requires: %{name}-libs = %{version}-%{release}
0700932f 36Provides: gnomesu = %{version}-%{release}
6512d0db 37Obsoletes: gnomesu
5f86ab44 38BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
39
40%description
41libgnomesu is a library for providing superuser privileges to GNOME
42applications. It supports sudo, consolehelper, PAM and su.
43
6512d0db
JB
44This package contains actual gnomesu program and backends.
45
d523aa30
JR
46%description -l pl.UTF-8
47libgnomesu to biblioteka do udostępniania uprawnień superużytkownika
48aplikacjom GNOME. Obsługuje sudo, consolehelper, PAM i su.
bee23f44 49
6512d0db
JB
50Ten pakiet zawiera właściwy program gnomesu i backendy.
51
52%package libs
53Summary: libgnomesu library itself
54Summary(pl.UTF-8): Sama biblioteka libgnomesu
55Group: X11/Libraries
56
57%description libs
58libgnomesu library itself.
59
60%description libs -l pl.UTF-8
61Sama biblioteka libgnomesu.
62
5f86ab44 63%package devel
64Summary: Headers for libgnomesu
ed46127d 65Summary(pl.UTF-8): Pliki nagłówkowe libgnomesu
6512d0db
JB
66Group: X11/Development/Libraries
67Requires: %{name}-libs = %{version}-%{release}
fde05b66 68Requires: glib2-devel >= 2.0
5f86ab44 69
70%description devel
71Libraries and include files that you will need to use libgnomesu.
72
d523aa30
JR
73%description devel -l pl.UTF-8
74Pliki nagłówkowe potrzebne do kompilowania programów korzystających z
5f86ab44 75libgnomesu.
76
77%package static
78Summary: Static libgnomesu libraries
ed46127d 79Summary(pl.UTF-8): Statyczne biblioteki libgnomesu
6512d0db 80Group: X11/Development/Libraries
5f86ab44 81Requires: %{name}-devel = %{version}-%{release}
82
83%description static
84Static version of libgnomesu libraries.
85
d523aa30 86%description static -l pl.UTF-8
5f86ab44 87Statyczna wersja bibliotek libgnomesu.
88
89%prep
90%setup -q
e0e0fe3d 91%patch0 -p1
92%patch1 -p1
93%patch2 -p1
94%patch3 -p0
95%patch4 -p1
96%patch5 -p1
97%patch6 -p1
98%patch7 -p1
99%patch8 -p1
100%patch9 -p1
101%patch10 -p1
1df270c6 102%patch11 -p1
fde05b66 103%patch12 -p1
5f86ab44 104
105%build
106%configure \
107 --disable-schemas-install \
108 --disable-setuid-error \
fde05b66 109 %{?with_static_libs:--enable-static}
5f86ab44 110
111%{__make}
112
113%install
114rm -rf $RPM_BUILD_ROOT
115
116%{__make} install \
117 DESTDIR=$RPM_BUILD_ROOT
118
a7c82ecd 119chmod 755 $RPM_BUILD_ROOT%{_libexecdir}/gnomesu*backend
5f86ab44 120
fde05b66
JB
121# obsoleted by pkg-config
122%{__rm} $RPM_BUILD_ROOT%{_libdir}/libgnomesu.la
123
1df270c6
JB
124%{__mv} $RPM_BUILD_ROOT%{_datadir}/locale/{sr@Latn,sr@latin}
125
5f86ab44 126%find_lang %{name}-1.0
127
128%clean
129rm -rf $RPM_BUILD_ROOT
130
6512d0db
JB
131%post libs -p /sbin/ldconfig
132%postun libs -p /sbin/ldconfig
5f86ab44 133
134%files -f %{name}-1.0.lang
135%defattr(644,root,root,755)
136%doc AUTHORS ChangeLog NEWS README TODO
bee23f44 137%config(noreplace) %verify(not md5 mtime size) /etc/pam.d/gnomesu-pam
5f86ab44 138%attr(755,root,root) %{_bindir}/gnomesu
a7c82ecd
JP
139%attr(4755,root,root) %{_libexecdir}/gnomesu-backend
140%attr(4755,root,root) %{_libexecdir}/gnomesu-pam-backend
6512d0db
JB
141%{_datadir}/application-registry/gnomesu-nautilus.applications
142%{_datadir}/mime-info/gnomesu-nautilus.keys
143
144%files libs
145%defattr(644,root,root,755)
146%attr(755,root,root) %{_libdir}/libgnomesu.so.*.*.*
147%attr(755,root,root) %ghost %{_libdir}/libgnomesu.so.0
5f86ab44 148
149%files devel
150%defattr(644,root,root,755)
151%doc doc/api.html doc/libgnomesu.css
6512d0db 152%attr(755,root,root) %{_libdir}/libgnomesu.so
5f86ab44 153%{_includedir}/libgnomesu-1.0
6512d0db 154%{_pkgconfigdir}/libgnomesu-1.0.pc
5f86ab44 155
fde05b66 156%if %{with static_libs}
5f86ab44 157%files static
158%defattr(644,root,root,755)
6512d0db 159%{_libdir}/libgnomesu.a
fde05b66 160%endif
This page took 0.100206 seconds and 4 git commands to generate.