File: gbindadmin.spec

package info (click to toggle)
gbindadmin 0.1.5-2
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 3,168 kB
  • ctags: 450
  • sloc: ansic: 5,934; sh: 3,607; makefile: 182
file content (76 lines) | stat: -rw-r--r-- 2,082 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
%define desktop_vendor magnus-swe@telia.com
%{!?_dist: %{expand: %%define dist rhfc5}}

Summary:	GBINDADMIN -- A GTK+ administation tool for ISC BIND.
Name:		gbindadmin
Version:	0.1.5
Release:	0.1.%{dist}.nr
License:	GPL
Group:		Applications/System
URL:		http://mange.dynalias.org/linux.html
Source0:	http://mange.dynalias.org/linux/%{name}/%{name}-%{version}.tar.gz
BuildRoot:	%{_builddir}/%{name}-%{version}-root
Provides:	gbindadmin

%description
GBINDADMIN is a fast and easy to use GTK+ administration tool for ISC BIND.

%prep
%setup -q
%configure

%build
%{__make}

%install
rm -rf $RPM_BUILD_ROOT
%makeinstall INSTALL_USER=`id -un` INSTALL_GROUP=`id -gn`

# pam auth
install -d %{buildroot}%{_sysconfdir}/pam.d/
install -d %{buildroot}%{_sysconfdir}/security/console.apps
install -m 644 etc/pam.d/%{name} %{buildroot}%{_sysconfdir}/pam.d/%{name}
install -m 644 etc/security/console.apps/%{name} %{buildroot}%{_sysconfdir}/security/console.apps/%{name}

# desktop entry
install -d %{buildroot}%{_datadir}/applications
install -m 644 desktop/net-%{name}.desktop %{buildroot}%{_datadir}/applications/%{name}.desktop

# docs, theres no need to have version, rpm is not fun.
install -d %{buildroot}%{_datadir}/doc/%{name}
install -m 644 README COPYING AUTHORS ChangeLog %{buildroot}%{_datadir}/doc/%{name}/

%find_lang %name

%post 
if test ! -h %{_bindir}/gbindadmin; then \
ln -s %{_bindir}/consolehelper %{_bindir}/gbindadmin ; \
fi;

%clean
rm -rf $RPM_BUILD_ROOT

%files -f %{name}.lang

##%files
%defattr(0755, root, root)
%{_sbindir}/%{name}

%defattr(0644, root, root)
%{_sysconfdir}/pam.d/%{name}
%{_sysconfdir}/security/console.apps/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/*.png
%dir %{_datadir}/pixmaps/%{name}
%{_datadir}/pixmaps/%{name}/*.png

%dir %{_datadir}/doc/%{name}
%{_datadir}/doc/%{name}/README
%{_datadir}/doc/%{name}/COPYING
%{_datadir}/doc/%{name}/AUTHORS
%{_datadir}/doc/%{name}/ChangeLog

%changelog
* Sat Jul 15 2006 Magnus-swe <magnus-swe@telia.com>
- Fixes lots of small issues.
- Swedish translation added (Magnus-swe)