]> git.pld-linux.org Git - packages/ldapvi.git/blob - ldapvi.spec
8bbbde4073acae742cf2e6d83a7f5960ee8aaf71
[packages/ldapvi.git] / ldapvi.spec
1 Summary:        LDAP LDIF Editor
2 Summary(pl.UTF-8):      Edytor LDAP LDIF
3 Name:           ldapvi
4 Version:        1.7
5 Release:        13
6 License:        GPL v2
7 Group:          Networking/Utilities
8 Source0:        http://www.lichteblau.com/download/%{name}-%{version}.tar.gz
9 # Source0-md5:  6dc2f5441ac5f1e2b5b036e3521012cc
10 Patch0:         %{name}-getline.patch
11 Patch1:         %{name}-vim-syntax.patch
12 URL:            http://www.lichteblau.com/ldapvi/
13 BuildRequires:  autoconf
14 BuildRequires:  automake
15 BuildRequires:  glib2-devel >= 2.0
16 BuildRequires:  ncurses-devel
17 BuildRequires:  openldap-devel >= 2.4.6
18 BuildRequires:  pkgconfig
19 BuildRequires:  popt-devel
20 BuildRequires:  readline-devel
21 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23 %description
24 LDAPvi allows retrieving LDAP database records, edit them in LDIF
25 format within a text editor and store the changed records back via
26 LDAP.
27
28 %description -l pl.UTF-8
29 LDAPvi jest narzędziem do obróbki rekordów katalogu LDAP. Pozwala
30 modyfikować je w formacie LDIF edytorem tekstowym i zachowywać zmiany
31 z powrotem w LDAP-ie.
32
33 %prep
34 %setup -q
35 %patch0 -p1
36 %patch1 -p1
37 sed -i -e 's#curses ncurses#tinfo curses ncurses#g' configure.in
38
39 %build
40 %{__aclocal}
41 %{__autoconf}
42 %configure \
43          CFLAGS="%{rpmcflags} -I/usr/include/ncurses"
44 %{__make}
45
46 %install
47 rm -rf $RPM_BUILD_ROOT
48 install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1}
49
50 install ldapvi $RPM_BUILD_ROOT%{_bindir}
51 install ldapvi.1 $RPM_BUILD_ROOT%{_mandir}/man1
52
53 %clean
54 rm -rf $RPM_BUILD_ROOT
55
56 %files
57 %defattr(644,root,root,755)
58 %doc NEWS
59 %attr(755,root,root) %{_bindir}/ldapvi
60 %{_mandir}/man?/*
This page took 0.056889 seconds and 2 git commands to generate.