[packages/netbeans-ide: 1/2] new, version 7.4

glen glen at pld-linux.org
Wed Jan 8 09:54:21 CET 2014


commit fec77b63fa22c60e29c7f74d497148581a12321f
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Tue Jan 7 22:00:18 2014 +0000

    new, version 7.4
    
    based on opensuse package

 netbeans-ide.spec | 246 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 246 insertions(+)
---
diff --git a/netbeans-ide.spec b/netbeans-ide.spec
new file mode 100644
index 0000000..fc6931d
--- /dev/null
+++ b/netbeans-ide.spec
@@ -0,0 +1,246 @@
+# TODO
+# - split to subpackages if possible? Java SE, Java EE, C/C++, PHP
+Summary:	NetBeans IDE - The Smarter and Faster Way to Code
+Name:		netbeans-ide
+Version:	7.4
+Release:	0.1
+License:	CDDL v1.0 and GPL v2 and others
+Group:		Development/Tools
+# https://netbeans.org/downloads/zip.html
+Source0:	http://download.netbeans.org/netbeans/7.4/final/zip/netbeans-%{version}-201310111528.zip
+# NoSource0-md5:	c78db3817710d8c1639664d212b505ce
+# NoSource, because huge download
+NoSource:	0
+URL:		https://netbeans.org/features/
+BuildRequires:	jpackage-utils
+BuildRequires:	rpm-javaprov
+BuildRequires:	rpmbuild(macros) >= 1.300
+BuildRequires:	unzip
+Requires:	jre >= 1.7
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define		_appdir		%{_prefix}/lib/%{name}
+
+%description
+NetBeans IDE lets you quickly and easily develop Java desktop, mobile,
+and web applications, as well as HTML5 applications with HTML,
+JavaScript, and CSS.
+
+The IDE also provides a great set of tools for PHP and C/C++
+developers. It is free and open source and has a large community of
+users and developers around the world.
+
+%package javase
+Summary:	NetBeans Java development
+Group:		Development/Tools
+Requires:	%{name} = %{version}-%{release}
+Requires:	%{name}-websvc = %{version}-%{release}
+
+%description javase
+This package contains the Java related parts of NetBeans.
+
+%package cpp
+Summary:	NetBeans C++ development
+Group:		Development/Tools
+Requires:	%{name} = %{version}-%{release}
+
+%description cpp
+This package contains the C++ related parts of NetBeans.
+
+%package javacard
+Summary:	NetBeans C++ development
+Group:		Development/Tools
+Requires:	%{name} = %{version}-%{release}
+Requires:	%{name}-javase = %{version}-%{release}
+
+%description javacard
+This package contains the Javacard related parts of NetBeans.
+
+%package ruby
+Summary:	NetBeans Ruby development
+Group:		Development/Tools
+Requires:	%{name} = %{version}-%{release}
+
+%description ruby
+This package contains the Ruby related parts of NetBeans.
+
+%package groovy
+Summary:	NetBeans Groovy development
+Group:		Development/Tools
+Requires:	%{name} = %{version}-%{release}
+
+%description groovy
+This package contains the Groovy related parts of NetBeans.
+
+%package php
+Summary:	NetBeans PHP development
+Group:		Development/Tools
+Requires:	%{name} = %{version}-%{release}
+
+%description php
+This package contains the PHP related parts of NetBeans.
+
+%package mobile
+Summary:	NetBeans Java Mobile development
+Group:		Development/Tools
+Requires:	%{name} = %{version}-%{release}
+Requires:	%{name}-javase = %{version}-%{release}
+
+%description mobile
+This package contains the Java Mobile related parts of NetBeans.
+
+%package java
+Summary:	NetBeans Java Enterprise development
+Group:		Development/Tools
+Requires:	%{name} = %{version}-%{release}
+Requires:	%{name}-javase = %{version}-%{release}
+Requires:	%{name}-mobile = %{version}-%{release}
+
+%description java
+This package contains the Java Enterprise related parts of NetBeans.
+
+%package websvc
+Summary:	NetBeans websvccommon
+Group:		Development/Tools
+Requires:	%{name} = %{version}-%{release}
+
+%description websvc
+This package contains the websvccommon related parts of Netbeans
+
+%package javafx
+Summary:	NetBeans javafx
+Group:		Development/Tools
+Requires:	%{name} = %{version}-%{release}
+
+%description javafx
+This package contains the javafx related parts of Netbeans
+
+%prep
+%setup -qc
+mv netbeans/* .; rmdir netbeans
+
+# remove windows executables and libraries
+find -type f -name "*.exe" -print -delete
+find -type f -name "*.bat" -print -delete
+find -type f -name "*.dll" -print -delete
+# remove macos executables and libraries
+find -type f -name "*.cmd" -print -delete
+find -type f -name "*.dylib" -print -delete
+# remove NON-Linux libraries
+find -type d -maxdepth 5 -name "*SunOS*" | xargs rm -rfv
+find -type d -maxdepth 5 -name "*MacOSX*" | xargs rm -rfv
+find -type d -maxdepth 5 -name "*Windows*" | xargs rm -rfv
+find -type d -maxdepth 5 -name "*windows*" | xargs rm -rfv
+find -type d -maxdepth 5 -name "*hpux*" | xargs rm -rfv
+find -type d -maxdepth 5 -name "*solaris*" | xargs rm -rfv
+# Worround
+rm -r profiler/lib/deployed/
+
+# delete redundant files:
+find -type f -name ".lastModified" -print -delete
+find -type f -name ".document" -print -delete
+
+%ifnarch %{ix86}
+rm -rv ide/bin/nativeexecution/Linux-x86
+rm -rv cnd/bin/Linux-x86
+rm -rv platform/modules/lib/i386
+%endif
+%ifnarch %{x8664}
+rm -rv ide/bin/nativeexecution/Linux-x86_64
+rm -rv cnd/bin/Linux-x86_64
+rm -rv platform/modules/lib/amd64
+%endif
+
+# fix +x
+chmod +x platform/modules/lib/*/linux/libjnidispatch-*.so
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_bindir},%{_appdir}}
+
+# hardlink test
+cp -l LICENSE.txt $RPM_BUILD_ROOT/cp-test && l=l && rm -f $RPM_BUILD_ROOT/cp-test
+cp -a$l . $RPM_BUILD_ROOT%{_appdir}
+
+# move conf file to etc
+for a in $RPM_BUILD_ROOT%{_appdir}/etc/*; do
+	f=${a##*/}
+	mv $a $RPM_BUILD_ROOT%{_sysconfdir}
+	ln -s %{_sysconfdir}/$a $RPM_BUILD_ROOT%{_appdir}/etc
+done
+
+# install executable
+ln -sf %{_appdir}/bin/netbeans $RPM_BUILD_ROOT%{_bindir}/netbeans
+
+# documenation
+%{__rm} $RPM_BUILD_ROOT%{_appdir}/{README.html,CREDITS.html,LICENSE.txt,THIRDPARTYLICENSE.txt}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README.html CREDITS.html LICENSE.txt THIRDPARTYLICENSE.txt
+%defattr(-,root,root,755)
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/netbeans.conf
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/netbeans.clusters
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/netbeans.import
+%attr(755,root,root) %{_bindir}/netbeans
+%dir %{_appdir}
+%{_appdir}/bin
+%{_appdir}/etc
+%{_appdir}/harness
+%{_appdir}/ide
+%{_appdir}/nb
+%{_appdir}/platform
+%{_appdir}/extide
+
+%files javase
+%defattr(644,root,root,755)
+%defattr(-,root,root,755)
+%{_appdir}/apisupport
+%{_appdir}/java
+%{_appdir}/profiler
+
+%files cpp
+%defattr(644,root,root,755)
+%defattr(-,root,root,755)
+%{_appdir}/cnd
+%{_appdir}/dlight
+
+%files javacard
+%defattr(644,root,root,755)
+%defattr(-,root,root,755)
+%{_appdir}/javacard
+
+%files php
+%defattr(644,root,root,755)
+%defattr(-,root,root,755)
+%{_appdir}/php
+
+%files groovy
+%defattr(644,root,root,755)
+%defattr(-,root,root,755)
+%{_appdir}/groovy
+
+%files websvc
+%defattr(644,root,root,755)
+%defattr(-,root,root,755)
+%{_appdir}/websvccommon
+%{_appdir}/webcommon
+
+%files mobile
+%defattr(644,root,root,755)
+%defattr(-,root,root,755)
+%{_appdir}/mobility
+
+%files java
+%defattr(644,root,root,755)
+%defattr(-,root,root,755)
+%{_appdir}/enterprise
+%{_appdir}/ergonomics
+
+%files javafx
+%defattr(644,root,root,755)
+%defattr(-,root,root,755)
+%{_appdir}/javafx
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/netbeans-ide.git/commitdiff/716333c69f57dd14a7c0edc3a305edb7bceec0aa



More information about the pld-cvs-commit mailing list