packages: 389-admin-console/389-admin-console.spec - pldize, add missing ma...

glen glen at pld-linux.org
Wed Feb 24 13:04:20 CET 2010


Author: glen                         Date: Wed Feb 24 12:04:21 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- pldize, add missing major_version macro, no need for %doc in -doc package

---- Files affected:
packages/389-admin-console:
   389-admin-console.spec (1.1 -> 1.2) 

---- Diffs:

================================================================
Index: packages/389-admin-console/389-admin-console.spec
diff -u packages/389-admin-console/389-admin-console.spec:1.1 packages/389-admin-console/389-admin-console.spec:1.2
--- packages/389-admin-console/389-admin-console.spec:1.1	Tue Feb 23 18:35:08 2010
+++ packages/389-admin-console/389-admin-console.spec	Wed Feb 24 13:04:13 2010
@@ -1,66 +1,71 @@
-Name: 389-admin-console
-Version: 1.1.4
-Release: 1
-Summary: 389 Admin Server Management Console
-
-Group: Applications/System
-License: GPLv2
-URL: http://port389.org
-
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-BuildArch: noarch
-Source: http://port389.org/sources/%{name}-%{version}.tar.bz2
-Requires: 389-admin
-BuildRequires: ant >= 1.6.2
-BuildRequires: ldapjdk
-BuildRequires: idm-console-framework
-BuildRequires: java-devel >= 1:1.6.0
-Provides: fedora-ds-admin-console = %{version}-%{release}
-Obsoletes: fedora-ds-admin-console < 1.1.4-1
+# $Revision$, $Date$
+# TODO
+# - merge with fedora-ds-console.spec
+
+%define		major_version 1.1
+Summary:	389 Admin Server Management Console
+Name:		389-admin-console
+Version:	1.1.4
+Release:	1
+License:	GPL v2
+Group:		Applications/System
+URL:		http://port389.org/
+Source0:	http://port389.org/sources/%{name}-%{version}.tar.bz2
+# Source0-md5:	55c661be949c27b9ff2f754abbc2607f
+BuildRequires:	ant >= 1.6.2
+BuildRequires:	idm-console-framework
+BuildRequires:	jdk >= 1:1.6.0
+BuildRequires:	jpackage-utils
+BuildRequires:	ldapsdk
+BuildRequires:	rpmbuild(macros) >= 1.300
+Requires:	389-admin
+Provides:	fedora-ds-admin-console = %{version}-%{release}
+Obsoletes:	fedora-ds-admin-console < 1.1.4-1
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
-A Java based remote management console used for Managing 389
-Admin Server.  Requires the 389 Console to load and run the
-jar files.
-
-%package          doc
-Summary:          Web docs for 389 Admin Server Management Console
-Group:            Documentation
-Requires:         %{name} = %{version}-%{release}
+A Java based remote management console used for Managing 389 Admin
+Server. Requires the 389 Console to load and run the jar files.
 
-%description      doc
+%package doc
+Summary:	Web docs for 389 Admin Server Management Console
+Group:		Documentation
+Requires:	%{name} = %{version}-%{release}
+
+%description doc
 Web docs for 389 Admin Server Management Console
 
 %prep
 %setup -q
-                                                                                
+
 %build
-%{ant} \
-    -Dconsole.location=%{_javadir} \
-    -Dbuilt.dir=`pwd`/built
+%ant \
+	-Dconsole.location=%{_javadir} \
+	-Dbuilt.dir=$(pwd)/built
 
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT%{_datadir}/dirsrv/html/java
-install -m644 built/package/389-admin* $RPM_BUILD_ROOT%{_datadir}/dirsrv/html/java
+cp -a built/package/389-admin* $RPM_BUILD_ROOT%{_datadir}/dirsrv/html/java
+
 install -d $RPM_BUILD_ROOT%{_datadir}/dirsrv/manual/en/admin/help
-install -m644 help/en/*.html $RPM_BUILD_ROOT%{_datadir}/dirsrv/manual/en/admin
-install -m644 help/en/tokens.map $RPM_BUILD_ROOT%{_datadir}/dirsrv/manual/en/admin
-install -m644 help/en/help/*.html $RPM_BUILD_ROOT%{_datadir}/dirsrv/manual/en/admin/help
+cp -a help/en/*.html $RPM_BUILD_ROOT%{_datadir}/dirsrv/manual/en/admin
+cp -a help/en/tokens.map $RPM_BUILD_ROOT%{_datadir}/dirsrv/manual/en/admin
+cp -a help/en/help/*.html $RPM_BUILD_ROOT%{_datadir}/dirsrv/manual/en/admin/help
 
 # create symlinks
-pushd $RPM_BUILD_ROOT%{_datadir}/dirsrv/html/java
+cd $RPM_BUILD_ROOT%{_datadir}/dirsrv/html/java
 ln -s 389-admin-%{version}.jar 389-admin-%{major_version}.jar
 ln -s 389-admin-%{version}.jar 389-admin.jar
 ln -s 389-admin-%{version}_en.jar 389-admin-%{major_version}_en.jar
 ln -s 389-admin-%{version}_en.jar 389-admin_en.jar
-popd
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
-%defattr(-,root,root,-)
+%defattr(644,root,root,755)
 %doc LICENSE
 %{_datadir}/dirsrv/html/java/389-admin-%{version}.jar
 %{_datadir}/dirsrv/html/java/389-admin-%{major_version}.jar
@@ -70,10 +75,20 @@
 %{_datadir}/dirsrv/html/java/389-admin_en.jar
 
 %files doc
-%defattr(-,root,root,-)
+%defattr(644,root,root,755)
 %dir %{_datadir}/dirsrv/manual/en/admin
-%doc %{_datadir}/dirsrv/manual/en/admin/tokens.map
-%doc %{_datadir}/dirsrv/manual/en/admin/*.html
-%doc %{_datadir}/dirsrv/manual/en/admin/help/*.html
+%{_datadir}/dirsrv/manual/en/admin/tokens.map
+%{_datadir}/dirsrv/manual/en/admin/*.html
+%{_datadir}/dirsrv/manual/en/admin/help/*.html
 
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.2  2010/02/24 12:04:13  glen
+- pldize, add missing major_version macro, no need for %doc in -doc package
+
+Revision 1.1  2010/02/23 17:35:08  aredridel
+- added
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/389-admin-console/389-admin-console.spec?r1=1.1&r2=1.2&f=u



More information about the pld-cvs-commit mailing list