- initital
authorundefine <undefine@pld-linux.org>
Thu, 2 Jun 2005 00:01:07 +0000 (00:01 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    cpu-DESTDIR.patch -> 1.1
    cpu.spec -> 1.1

cpu-DESTDIR.patch [new file with mode: 0644]
cpu.spec [new file with mode: 0644]

diff --git a/cpu-DESTDIR.patch b/cpu-DESTDIR.patch
new file mode 100644 (file)
index 0000000..b59dd28
--- /dev/null
@@ -0,0 +1,27 @@
+--- cpu-1.4.3/doc/Makefile.am~ 2003-09-16 23:43:09.000000000 +0000
++++ cpu-1.4.3/doc/Makefile.am  2005-06-01 23:26:45.890349976 +0000
+@@ -5,16 +5,16 @@
+       test.ldif
+ install-data-local:
+-      @if test -f $(sysconfdir)/cpu.conf ; then \
+-              echo "$@ will not overwrite existing $(sysconfdir)/cpu.conf"; \
++      @if test -f $(DESTDIR)$(sysconfdir)/cpu.conf ; then \
++              echo "$@ will not overwrite existing $(DESTDIR)$(sysconfdir)/cpu.conf"; \
+       else \
+-              $(mkinstalldirs) $(sysconfdir); \
+-              echo "$(INSTALL_DATA) cpu.conf $(sysconfdir)/cpu.conf"; \
+-              $(INSTALL_DATA) cpu.conf $(sysconfdir)/cpu.conf; \
++              $(mkinstalldirs) $(DESTDIR)$(sysconfdir); \
++              echo "$(INSTALL_DATA) cpu.conf $(DESTDIR)$(sysconfdir)/cpu.conf"; \
++              $(INSTALL_DATA) cpu.conf $(DESTDIR)$(sysconfdir)/cpu.conf; \
+       fi
+ uninstall-local:
+-      @if test -f $(sysconfdir)/cpu.conf ; then \
+-              echo "rm -f $(sysconfdir)/cpu.conf"; \
+-              $(RM) -f $(sysconfdir)/cpu.conf; \
++      @if test -f $(DESTDIR)$(sysconfdir)/cpu.conf ; then \
++              echo "rm -f $(DESTDIR)$(sysconfdir)/cpu.conf"; \
++              $(RM) -f $(DESTDIR)$(sysconfdir)/cpu.conf; \
+       fi
diff --git a/cpu.spec b/cpu.spec
new file mode 100644 (file)
index 0000000..878a901
--- /dev/null
+++ b/cpu.spec
@@ -0,0 +1,55 @@
+Summary:       Change Password Utility
+Summary(pl):   Narzêdzie do zmiany hase³
+Name:          cpu
+Version:       1.4.3
+Release:       1
+License:       GPL
+Group:         Applications/System
+URL:           http://cpu.sourceforge.net/
+Source0:       http://dl.sourceforge.net/cpu/%{name}-%{version}.tar.bz2
+Patch0:                %{name}-DESTDIR.patch
+# Source0-md5: 2d128f82261967d41458800752bc943d
+BuildRequires: openldap-devel
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+CPU is an LDAP user management tool written in C and loosely based on
+FreeBSD's pw(8). The goal of CPU is to be a suitable replacement of
+the useradd/usermod/userdel utilities for administrators using an LDAP
+backend and wishing to have a suite of command line tools for doing
+the administration.
+
+%description -l pl
+CPU to narzêdzie do zarz±dzania u¿ytkownikami w LDAP, napisane w C i
+bazuj±ce na pw(8) z FreeBSD. Celem CPU jest zast±pienie narzêdzi
+useradd/usermod/userdel, korzystaj±c z LDAP.
+
+%prep
+%setup -q
+%patch0 -p1
+
+%build
+%{__libtoolize}
+%{__aclocal}
+%{__autoconf}
+%{__automake}
+%configure
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT \
+       docdir="../rpm-doc"
+
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_sbindir}/*
+%attr(755,root,root) %{_libdir}/libcpu*.so.*.*
+%verify(not md5 mtime size) %config(noreplace) %{_sysconfdir}/cpu.conf
+%doc AUTHORS ChangeLog NEWS README TODO
+%{_mandir}/man?/*
This page took 0.127501 seconds and 4 git commands to generate.