Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:twotaps:branches:home:Herbster0815
Netbeans
netbeans.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File netbeans.spec of Package Netbeans
%define install_dir %{_libdir}/%{name} %if 0%{?fedora} || 0%{?centos_version} %global _missing_build_ids_terminate_build 0 %define debug_package %{nil} %endif Name: netbeans Version: 9.0 Release: 2.0 Group: Development/Tools/IDE License: Apache-2.0 Summary: A World-Class Development Environment Written in Java Url: https://netbeans.apache.org/ Source0: http://ftp.fau.de/apache/incubator/netbeans/incubating-netbeans-java/incubating-9.0/incubating-netbeans-java-9.0-bin.zip Source1: netbeans.desktop Patch0: %{name}_disable_antialiasing.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: update-desktop-files fdupes BuildRequires: unzip BuildRequires: dos2unix Requires: bash Requires: java >= 1.8.0 Requires: java-devel >= 1.8.0 Provides: NetBeans NoSource: 0 Conflicts: %{name}_de %{name}_de-javase %{name}_de-cpp %{name}_de-javacard %{name}_de-groovy %{name}_de-php %{name}_de-mobile %{name}_de-java %{name}_de-websvc %{name}_de-javafx Conflicts: %{name}-javase %{name}-cpp %{name}-javacard %{name}-groovy %{name}-php %{name}-mobile %{name}-java %{name}-websvc %{name}-javafx %description The NetBeans IDE is a world-class development environment written in Java. It can be used to develop code in Java, HTML, XML, JSP, C/C++, and other languages. The IDE is modular and there is a huge variety of commercial and free extensions for it that support various technologies. %prep %setup -q -n netbeans %patch0 -p1 %build # empty for now... %install export NO_BRP_CHECK_BYTECODE_VERSION=true rm -rf $RPM_BUILD_ROOT mkdir %buildroot # remove windows executables and libraries find . -type f -name "*.exe" -delete find . -type f -name "*.bat" -delete find . -type f -name "*.dll" -delete # remove macos executables and libraries find . -type f -name "*.cmd" -delete find . -type f -name "*.dylib" -delete # remove NON-Linux libraries find . -type d -maxdepth 10 -name "*SunOS*" | xargs rm -Rf find . -type d -maxdepth 10 -name "*MacOSX*" | xargs rm -Rf find . -type d -maxdepth 10 -name "*Windows*" | xargs rm -Rf find . -type d -maxdepth 10 -name "*windows*" | xargs rm -Rf find . -type d -maxdepth 10 -name "*hpux*" | xargs rm -Rf find . -type d -maxdepth 10 -name "*solaris*" | xargs rm -Rf find . -type d -maxdepth 10 -name "*sparc*" | xargs rm -Rf find . -type d -maxdepth 10 -name "*FreeBSD*" | xargs rm -Rf find . -type d -maxdepth 10 -name "*linux-arm*" | xargs rm -Rf find . -type d -maxdepth 10 -name "mac" | xargs rm -Rf # Workaround rm -rf profiler/lib/deployed/ # delete redundant files: find . -type f -name ".lastModified" -delete find . -type f -name ".document" -delete rm -rf nb.cluster.*.build || : %ifarch %ix86 rm -rf ide/bin/nativeexecution/Linux-x86_64 rm -rf cnd/bin/Linux-x86_64 rm -rf dlight/tools/Linux-x86_64 %endif %ifarch x86_64 rm -rf ide/bin/nativeexecution/Linux-x86 rm -rf cnd/bin/Linux-x86 rm -rf dlight/tools/Linux-x86 %endif # move conf file to etc install -m 755 -d $RPM_BUILD_ROOT%{_sysconfdir} cp etc/netbeans.conf $RPM_BUILD_ROOT%{_sysconfdir} cp etc/netbeans.clusters $RPM_BUILD_ROOT%{_sysconfdir} cp etc/netbeans.import $RPM_BUILD_ROOT%{_sysconfdir} rm -rf etc/* ln -sf /etc/netbeans.conf etc/ ln -sf /etc/netbeans.clusters etc/ ln -sf /etc/netbeans.import etc/ # documentation FILES_TO_COPY="*.html DEPENDENCIES DISCLAIMER LICENSE NOTICE" mkdir -p $RPM_BUILD_ROOT%{_defaultdocdir}/%{name} cp $FILES_TO_COPY $RPM_BUILD_ROOT%{_defaultdocdir}/%{name} rm $FILES_TO_COPY # remve Executable Bits from doc-Files chmod -x $RPM_BUILD_ROOT%{_defaultdocdir}/%{name}/*.html # ... and finally the rest: install -m 755 -d $RPM_BUILD_ROOT%{install_dir}/ cp -rd * $RPM_BUILD_ROOT%{install_dir}/ # install executable install -m 755 -d $RPM_BUILD_ROOT/usr/bin/ ln -sf %{install_dir}/bin/netbeans $RPM_BUILD_ROOT/usr/bin/netbeans # backward compactibillity ln -sf netbeans $RPM_BUILD_ROOT/usr/bin/netbeans.sh # documenation for dir in `find . -maxdepth 2 -type d -name "docs" -print ` do DOCDIRNAME=`echo $dir | sed 's/^\.//g'` LINKNAME=`dirname $dir | sed 's/^\.//g'` ln -sf %{install_dir}${DOCDIRNAME} $RPM_BUILD_ROOT%{_defaultdocdir}/%{name}$LINKNAME done for dir in `find . -maxdepth 2 -type d -name "licenses" -print ` do DOCDIRNAME=`echo $dir | sed 's/^\.//g'` LINKNAME=`dirname $dir | sed 's/^\.//g'` ln -sf %{install_dir}${DOCDIRNAME} $RPM_BUILD_ROOT%{_defaultdocdir}/%{name}$LINKNAME done # freedesktop.org menu entry for netbeans install -Dm 644 %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/applications/netbeans.desktop %if 0%{?suse_version} %suse_update_desktop_file $RPM_BUILD_ROOT%{_datadir}/applications/netbeans.desktop Development IDE %endif install -dm 755 $RPM_BUILD_ROOT%{_datadir}/pixmaps/ install -Dpm 644 nb/netbeans.png $RPM_BUILD_ROOT%{_datadir}/pixmaps/netbeans.png # remove old backup files find $RPM_BUILD_ROOT%{install_dir} -name "*.bak" -exec rm -rv {} \; # fix executable bits find $RPM_BUILD_ROOT%{install_dir} -name "*.sh" -exec chmod +x {} \; find $RPM_BUILD_ROOT%{install_dir} -name "*.zip" -exec chmod -x {} \; # fix wrong end-of-line-encoding find $RPM_BUILD_ROOT%{install_dir} -name "*.html" -exec dos2unix -c ascii {} \; %fdupes -s %buildroot %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) %dir %{_defaultdocdir}/%{name} %doc %{_defaultdocdir}/%{name}/platform %doc %{_defaultdocdir}/%{name}/*.html %doc %{_defaultdocdir}/%{name}/ide %doc %{_defaultdocdir}/%{name}/nb %doc %{_defaultdocdir}/%{name}/harness %doc %{_defaultdocdir}/%{name}/java %doc %{_defaultdocdir}/%{name}/licenses %doc %{_defaultdocdir}/%{name}/DEPENDENCIES %doc %{_defaultdocdir}/%{name}/DISCLAIMER %doc %{_defaultdocdir}/%{name}/LICENSE %doc %{_defaultdocdir}/%{name}/NOTICE %{_libdir}/%{name}/netbeans.css /usr/bin/* %dir %{install_dir} %{install_dir}/bin %{install_dir}/etc %{install_dir}/harness %{install_dir}/ide %{install_dir}/nb %{install_dir}/platform %{install_dir}/extide %config %{_sysconfdir}/netbeans.conf %config %{_sysconfdir}/netbeans.clusters %config %{_sysconfdir}/netbeans.import %{_datadir}/applications/netbeans.desktop %{_datadir}/pixmaps/netbeans.png %{install_dir}/apisupport %{install_dir}/java %{install_dir}/profiler %{install_dir}/javafx %{install_dir}/licenses %{install_dir}/websvccommon %changelog * Fri Aug 17 2018 - robertherb@arcor.de - updated to final 9.0 - removed all subpackages * Wed Oct 05 2016 - robertherb@arcor.de - updated to final 8.2 * Sun Nov 08 2015 - robertherb@arcor.de - fixed packaging error - added Requires to subpackages * Fri Nov 06 2015 - robertherb@arcor.de - updated to final 8.1 - changed Requires to java >= 1.7 * Sun Jan 25 2015 - robertherb@arcor.de - updated to final 8.0.2 * Tue Sep 30 2014 - robertherb@arcor.de - updated to final 8.0.1 * Fri Mar 21 2014 - robertherb@arcor.de - updated to final 8.0 * Thu Oct 24 2013 - robertherb@arcor.de - updated to final 7.4 * Sat Jun 22 2013 - robertherb@arcor.de - updated to final 7.3.1 * Sun Mar 17 2013 - robertherb@arcor.de - updated to final 7.3 * Sat Aug 11 2012 - robertherb@arcor.de - updated to final 7.2 * Wed Mar 14 2012 - robertherb@arcor.de - updated to final 7.1.1 * Fri Jan 06 2012 - robertherb@arcor.de - updated to final 7.1 - added subpackage netbeans-javafx * Tue Aug 02 2011 - robertherb@arcor.de - updated to final 7.0.1 * Sat May 07 2011 - robertherb@arcor.de - added Localizations * Wed Apr 20 2011 - robertherb@arcor.de - updated to final 7.0 * Fri Aug 06 2010 - robertherb@arcor.de - updated to final 6.9.1 * Sun Jul 25 2010 - robertherb@arcor.de - renamed package to netbeans_de - fixed required packages of subpackage netbeans-java * Tue Jun 17 2010 - robertherb@arcor.de - updated to final 6.9 - added javacard subpackage * Mon Feb 15 2010 - gerrit.beine@gmx.de - updated to final 6.8 - removed webcommon subpackage * Sat Sep 05 2009 - gerrit.beine@gmx.de - updated to final 6.7 - removed extra subpackage - introducted websvccommon subpackage * Sun Dec 28 2008 - gerrit.beine@gmx.de - updated to final 6.5 - introduced groovy and php subpackages * Sat Jun 21 2008 - gerrit.beine@gmx.de - updated to final 6.1 - fixed rpmlint problems - removed non-linux files from packages * Thu May 01 2008 - gerrit.beine@gmx.de - update to 6.1 * Sun Feb 17 2008 - gerrit.beine@gmx.de - update to v6.0.1 * Sat Feb 02 2008 - gerrit.beine@gmx.de - moved to openSUSE Build Service * Thu Dec 06 2007 - gerrit.beine@gmx.de - update to v6.0 - splitted installation packages * Fri Nov 09 2007 - gerrit.beine@gmx.de - update to v5.5.1 * Mon Nov 20 2006 - dbornkessel@suse.de - include setclasspath.sh in tomcat package (Bug #205743) - exclude *.bat files * Wed Feb 08 2006 - dbornkessel@suse.de - update to v5.0 - created a menu entry for netbeans - created links to all documentation included in the package - calling netbeans via symbolic link instead of script * Wed Jan 25 2006 - mls@suse.de - converted neededforbuild to BuildRequires * Tue Nov 08 2005 - dmueller@suse.de - don't build as root * Thu Sep 09 2004 - skh@suse.de - update to 3.6 - no longer use setJava * Tue Nov 04 2003 - ro@suse.de - update to 3.5.1 * Thu Mar 13 2003 - pmladek@suse.cz - do not longer prefere SDK from IBM: * removed from Requires * fixed wrapper * Tue Aug 06 2002 - pmladek@suse.cz - updated to version 3.3.2 - improved netbeans launcher to use SDK really with version 1.3.x or higher * Fri Jul 05 2002 - kukuk@suse.de - Use %%ix86 macro * Mon Feb 04 2002 - pmladek@suse.cz - updated to version 3.3.1 - java2 in Requires replaced with IBMJava2-SDK for i386, ppc and with sdk1.3.x for other architectures - IBMJava2 is prefered in netbeans IDE launcher - fixed symbolic links from absolute paths to relative paths * Mon Nov 26 2001 - pmladek@suse.cz - updated to version 3.2.1 - removed obsolete patch - added URL - added BuildRoot * Thu Sep 20 2001 - pmladek@suse.cz - fixed path to java - netbeans only works with jdk1.1.8 * Tue Apr 10 2001 - ro@suse.de - added group tag * Mon Sep 13 1999 - bs@suse.de - ran old prepare_spec on spec file to switch to new prepare_spec. * Fri Mar 19 1999 - lr@suse.de - new version 2.1 * Tue Dec 01 1998 - lr@suse.de - initial version
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor