]> git.pld-linux.org Git - SPECS.git/blob - gksu.spec
SPECS updated Wed 28 Jul 14:48:01 CEST 2021
[SPECS.git] / gksu.spec
1 #
2 # Conditional builds:
3 %bcond_with     apidocs         # disable gtk-doc (there isn't any)
4 %bcond_without  nautilus        # build without nautilus extensions
5 #
6 Summary:        GKsu is a GTK+ frontend to the su program
7 Summary(pl.UTF-8):      GKsu to nakÅ‚adka graficzna na program su
8 Name:           gksu
9 Version:        2.0.2
10 Release:        2
11 License:        GPL
12 Group:          Applications/System
13 Source0:        http://people.debian.org/~kov/gksu/%{name}-%{version}.tar.gz
14 # Source0-md5:  cacbcac3fc272dce01c6ea38354489e2
15 Patch0:         glib-2.32.patch
16 URL:            http://www.nongnu.org/gksu/
17 BuildRequires:  GConf2-devel
18 BuildRequires:  autoconf >= 2.57
19 BuildRequires:  automake
20 BuildRequires:  gettext-devel
21 %{?with_nautilus:BuildRequires: gnome-vfs2-devel}
22 BuildRequires:  gtk+2-devel >= 2:2.4
23 %{?with_apidocs:BuildRequires:  gtk-doc >= 1.0}
24 BuildRequires:  intltool
25 BuildRequires:  libgksu-devel >= 2.0.0
26 BuildRequires:  libtool
27 %{?with_nautilus:BuildRequires: nautilus-devel}
28 BuildRequires:  pkgconfig
29 Requires:       /bin/su
30 Obsoletes:      gksu-devel
31 Obsoletes:      gksu-static
32 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33
34 %if %{with nautilus}
35 %define         specflags       `pkg-config --cflags gnome-vfs-2.0`
36 %define         nautilus_extensiondir   %( pkg-config --variable=extensiondir libnautilus-extension )
37 %endif
38
39 %description
40 GKsu is a GTK+ frontend to the su program.
41
42 %description -l pl.UTF-8
43 GKsu to graficzna nakÅ‚adka na program su.
44
45 %package nautilus
46 Summary:        Gksu plugin for nautilus
47 Summary(pl.UTF-8):      Wtyczka gksu dla nautilusa
48 Group:          X11/Applications
49 Requires:       %{name} = %{version}-%{release}
50 Requires:       nautilus
51 Obsoletes:      gksu-nautilus-devel
52 Obsoletes:      gksu-nautilus-static
53
54 %description nautilus
55 Gksu plugin for nautilus.
56
57 %description nautilus -l pl.UTF-8
58 Wtyczka gksu dla nautilusa.
59
60 %prep
61 %setup -q
62 %patch0 -p1
63
64 %build
65 %{__intltoolize}
66 %{__libtoolize}
67 %{__aclocal}
68 %{__autoconf}
69 %{__automake}
70 %configure \
71         --disable-static \
72         %{!?with_apidocs:--disable-gtk-doc} \
73         %{!?with_nautilus:--disable-nautilus-extension} \
74         --with-html-dir=%{_gtkdocdir}
75
76 %{__make}
77
78 %install
79 rm -rf $RPM_BUILD_ROOT
80
81 %{__make} install \
82         nautilus_extensiondir=%{nautilus_extensiondir} \
83         DESTDIR=$RPM_BUILD_ROOT
84
85 # fix gksudo man link
86 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/gksudo.1
87 echo .so man1/gksu.1 > $RPM_BUILD_ROOT%{_mandir}/man1/gksudo.1
88
89 %{?with_nautilus:%{__rm} $RPM_BUILD_ROOT%{_libdir}/nautilus/extensions-3.0/*.la}
90
91 %find_lang %{name}
92
93 %clean
94 rm -rf $RPM_BUILD_ROOT
95
96 %files -f %{name}.lang
97 %defattr(644,root,root,755)
98 %doc AUTHORS ChangeLog README
99 %attr(755,root,root) %{_bindir}/gksu
100 %attr(755,root,root) %{_bindir}/gksudo
101 %{_desktopdir}/gksu.desktop
102 %{_mandir}/man1/*.1*
103 %{_pixmapsdir}/*.png
104 %dir %{_datadir}/gksu
105 %attr(755,root,root) %{_datadir}/gksu/gksu-migrate-conf.sh
106
107 %if %{with nautilus}
108 %files nautilus
109 %defattr(644,root,root,755)
110 %attr (755,root,root) %{nautilus_extensiondir}/libnautilus-gksu.so
111 %endif
This page took 0.288772 seconds and 3 git commands to generate.