SPECS: ldap-MigrationTools.spec - updtaed to 47 - renamed to Migra...

baggins baggins at pld-linux.org
Mon Nov 5 17:48:40 CET 2007


Author: baggins                      Date: Mon Nov  5 16:48:40 2007 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- updtaed to 47
- renamed to MigrationTools...
- ...but build openldap-migration package
- more patches from FC
- moved migrate_common.ph config to /etc/openldap
- cut down changelog

---- Files affected:
SPECS:
   ldap-MigrationTools.spec (1.19 -> 1.20) 

---- Diffs:

================================================================
Index: SPECS/ldap-MigrationTools.spec
diff -u SPECS/ldap-MigrationTools.spec:1.19 SPECS/ldap-MigrationTools.spec:1.20
--- SPECS/ldap-MigrationTools.spec:1.19	Tue Feb 13 07:46:50 2007
+++ SPECS/ldap-MigrationTools.spec	Mon Nov  5 17:48:35 2007
@@ -2,22 +2,26 @@
 %include        /usr/lib/rpm/macros.perl
 Summary:	LDAP Migration Tools
 Summary(pl.UTF-8):	Narzędzia do migraacji do LDAP
-Name:		ldap-MigrationTools
-Version:	46
+Name:		MigrationTools
+Version:	47
 Release:	0.1
-License:	custom
+License:	BSD
 Group:		Base
-Source0:	http://www.padl.com/download/MigrationTools-%{version}.tar.gz
-# Source0-md5:	dc80548f76d6aeba2b51b15751e08b21
-Source1:	http://www.padl.com/download/MigrationTools.txt
-Patch0:		MigrationTools-38-instdir.patch
-Patch1:		MigrationTools-36-mktemp.patch
-Patch2:		MigrationTools-27-simple.patch
-Patch3:		MigrationTools-26-suffix.patch
-Patch4:		MigrationTools-44-schema.patch
-URL:		http://www.padl.com/tools.html
+Source0:	http://www.padl.com/download/%{name}-%{version}.tar.gz
+# Source0-md5:	3faf83eb8482e55979bda47f1d1e6501
+# http://www.padl.com/download/MigrationTools.txt
+Source1:	%{name}.txt
+Patch0:		%{name}-instdir.patch
+Patch1:		%{name}-mktemp.patch
+Patch2:		%{name}-simple.patch
+Patch3:		%{name}-suffix.patch
+Patch4:		%{name}-schema.patch
+Patch5:		%{name}-noaliases.patch
+Patch6:		%{name}-noddp.patch
+Patch7:		%{name}-unique-hosts.patch
+Patch8:		%{name}-sysconfdir.patch
+URL:		http://www.padl.com/OSS/MigrationTools.html
 BuildRequires:	rpm-perlprov
-Requires:	openldap
 BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -32,31 +36,57 @@
 grup, hostów, grup sieciowych, sieci, protokołów, RPC i serwisów z
 istniejących serwisów nazw (zwykłych plików, NIS, NetInfo) do LDAP.
 
+%package -n openldap-migration
+Summary:	LDAP Migration Tools
+Summary(pl.UTF-8):	Narzędzia do migraacji do LDAP
+Group:		Base
+Requires:	openldap
+Obsoletes:	ldap-MigrationTools
+
+%description -n openldap-migration
+The MigrationTools are a set of Perl scripts for migrating users,
+groups, aliases, hosts, netgroups, networks, protocols, RPCs, and
+services from existing nameservices (flat files, NIS, and NetInfo) to
+LDAP.
+
+%description -n openldap-migration -l pl.UTF-8
+MigrationTools to zestaw skryptów perlowych do migracji użytkowników,
+grup, hostów, grup sieciowych, sieci, protokołów, RPC i serwisów z
+istniejących serwisów nazw (zwykłych plików, NIS, NetInfo) do LDAP.
+
 %prep
-%setup -qn MigrationTools-%{version}
+%setup -q
 %patch0 -p1
 %patch1 -p1
 %patch2 -p1
 %patch3 -p1
 %patch4 -p1
+%patch5 -p1
+%patch6 -p1
+%patch7 -p1
+%patch8 -p1
 install %{SOURCE1} .
 
+perl -pi -e 's|%%CONFDIR%%|%{_sysconfdir}/openldap/|g;\
+	s|%%INSTDIR%%|%{_datadir}/openldap/migration/|g' *.pl *.sh README
+
 %install
 rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_sysconfdir}/openldap,%{_datadir}/openldap/migration}
 
-install -d $RPM_BUILD_ROOT%{_datadir}/MigrationTools
-install *.sh *.pl *.ph $RPM_BUILD_ROOT%{_datadir}/MigrationTools
+install *.sh *.pl $RPM_BUILD_ROOT%{_datadir}/openldap/migration
+install migrate_common.ph $RPM_BUILD_ROOT%{_sysconfdir}/openldap
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%files
+%files -n openldap-migration
 %defattr(644,root,root,755)
 %doc MigrationTools.txt README
-%dir %{_datadir}/MigrationTools
-%attr(755,root,root) %{_datadir}/MigrationTools/*.sh
-%attr(755,root,root) %{_datadir}/MigrationTools/*.pl
-%config(noreplace) %verify(not md5 mtime size) %{_datadir}/MigrationTools/*.ph
+%dir %{_datadir}/openldap/migration
+%attr(755,root,root) %{_datadir}/openldap/migration/*.sh
+%attr(755,root,root) %{_datadir}/openldap/migration/*.pl
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/openldap/migrate_common.ph
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -64,6 +94,14 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.20  2007/11/05 16:48:35  baggins
+- updtaed to 47
+- renamed to MigrationTools...
+- ...but build openldap-migration package
+- more patches from FC
+- moved migrate_common.ph config to /etc/openldap
+- cut down changelog
+
 Revision 1.19  2007/02/13 06:46:50  glen
 - tabs in preamble
 
@@ -93,35 +131,3 @@
 Revision 1.11  2003/07/14 17:22:01  baggins
 - version 44
 - added patches from RH requires for openldap 2.1.x
-
-Revision 1.10  2003/05/28 12:59:26  malekith
-- massive attack: source-md5
-
-Revision 1.9  2003/05/25 05:49:41  misi3k
-- massive attack s/pld.org.pl/pld-linux.org/
-
-Revision 1.8  2002/11/27 21:10:40  juandon
-- new %%doc
-
-Revision 1.7  2002/03/27 10:58:32  roman
-s/Custom/custom in License
-
-Revision 1.6  2002/02/23 03:26:00  kloczek
-- adapterized.
-
-Revision 1.5  2002/02/22 23:29:10  kloczek
-- removed all Group fields translations (oure rpm now can handle translating
-  Group field using gettext).
-
-Revision 1.4  2002/01/18 02:13:36  kloczek
-perl -pi -e "s/pld-list\@pld.org.pl/feedback\@pld.org.pl/"
-
-Revision 1.3  2001/12/03 10:31:00  qboosh
-- adapterized, pl translations, cosmetics
-
-Revision 1.2  2001/04/17 12:04:43  baggins
-- release 2
-- rebuild with perl 5.6.1
-
-Revision 1.1  2000/09/12 13:54:52  jajcus
-- initial spec, separated from any other packages, as it requires perl
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/ldap-MigrationTools.spec?r1=1.19&r2=1.20&f=u



More information about the pld-cvs-commit mailing list