mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-06-03 22:03:27 -06:00
- Fix Core and TheIde search paths accordingly git-svn-id: svn://ultimatepp.org/upp/trunk@12723 f0d560ea-af0d-0410-9eb7-867de7ffcac7
254 lines
6.6 KiB
RPMSpec
254 lines
6.6 KiB
RPMSpec
# How to build snapshots binary: rpmbuild -tb upp-x11-src-12662M.tar.gz
|
|
# How to build snapshots src.rpm: rpmbuild -ts upp-x11-src-12662M.tar.gz
|
|
# If upp.spec inside the tarball comes unmodified from svn: rpmbuild -tb --define 'version 12662M' --define "date $(LC_TIME=En date '+%a %b %d %Y')" upp-x11-src-12662M.tar.gz
|
|
|
|
#define version 12662
|
|
#define date $(LC_TIME=En date '+%a %b %d %Y')
|
|
|
|
%define debug_package %{nil}
|
|
|
|
Summary: Ultimate C++ cross-platform rapid application development suite
|
|
Name: upp
|
|
Version: %version
|
|
Release: 1%{?dist}
|
|
License: BSD-2-Clause
|
|
Group: Development/Tools
|
|
URL: http://www.ultimatepp.org
|
|
Source0: http://www.ultimatepp.org/downloads/%{name}-x11-src-%{version}.tar.gz
|
|
Obsoletes: upp-devel < %{version}-%{release}
|
|
|
|
# Common BuildRequires
|
|
BuildRequires: gtk2-devel gnome-shell libnotify-devel pkgconfig
|
|
|
|
# Mandriva specific BuildRequires
|
|
%if 0%{?mandriva_version}
|
|
BuildRequires: clang X11-devel bzip2-devel
|
|
|
|
# OpenSuse specific BuildRequires
|
|
%else
|
|
%if 0%{?suse_version}
|
|
BuildRequires: clang patch make xorg-x11-devel libbz2-devel
|
|
|
|
# Redhat specific BuildRequires
|
|
%else
|
|
%if 0%{?rhel_version}
|
|
BuildRequires: clang bzip2-devel
|
|
|
|
# Fedora specific BuildRequires
|
|
%else
|
|
%if 0%{?fedora_version} || 0%{?fedora}
|
|
BuildRequires: gcc gcc-c++ xorg-x11-server-devel fedora-logos bzip2-devel
|
|
|
|
# Other rpm based distro specific BuildRequires
|
|
%else
|
|
BuildRequires: clang xorg-x11-server-devel bzip2-devel
|
|
|
|
%endif
|
|
%endif
|
|
%endif
|
|
%endif
|
|
|
|
# -----
|
|
Requires: gtk2-devel libnotify-devel
|
|
Requires: valgrind xterm
|
|
|
|
# Mandriva specific Requires
|
|
%if 0%{?mandriva_version}
|
|
Requires: clang X11-devel bzip2-devel
|
|
|
|
# OpenSuse specific Requires
|
|
%else
|
|
%if 0%{?suse_version}
|
|
Requires: clang patch make xorg-x11-devel libbz2-devel
|
|
|
|
%else
|
|
%if 0%{?rhel_version}
|
|
Requires: clang bzip2-devel
|
|
|
|
# Fedora specific Requires
|
|
%else
|
|
%if 0%{?fedora_version} || 0%{?fedora}
|
|
Requires: gcc gcc-c++ xorg-x11-server-devel fedora-logos bzip2-devel
|
|
|
|
# Other rpm based distro specific Requires
|
|
%else
|
|
Requires: clang xorg-x11-server-devel bzip2-devel
|
|
|
|
%endif
|
|
%endif
|
|
%endif
|
|
%endif
|
|
|
|
# -------
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-%{_arch}-buildroot
|
|
|
|
#-----------
|
|
%description
|
|
The U++ integrated development environment introduces modular concepts
|
|
to C++ programming. It provides:
|
|
|
|
- TheIDE, a visual designers for U++ libraries
|
|
- Topic++, for documenting code and creating rich text resources
|
|
- Assist++, a powerful C++ code analyzer providing code completion,
|
|
navigation and transformation
|
|
- BLITZ-build technology to speedup C++ rebuilds up to 4 times
|
|
|
|
#----
|
|
|
|
%package devel
|
|
Summary: Development files for %{name}
|
|
Group: Development/Libraries
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
%description devel
|
|
The %{name}-devel package contains source and header files for
|
|
developing applications that use %{name}.
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{name}-x11-src-%{version}
|
|
|
|
|
|
# ----
|
|
%build
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
#-------
|
|
%install
|
|
rm -rf %{buildroot}
|
|
make DESTDIR="%{buildroot}" prefix="%{_prefix}" bindir="%{_bindir}" datadir="%{_datadir}" mandir="%{_mandir}" docdir="%{_datadir}/doc" install
|
|
|
|
# We create our own GCC.bm
|
|
# cp -p uppsrc/ide/GCC.bm %{buildroot}/%{_datadir}/%{name}/
|
|
|
|
INCLUDEDIR=$( pkg-config --cflags gtk+-2.0 libnotify x11 | awk ' { gsub ( /-pthread /, "" ) ; gsub ( / /, "" ) ; gsub ( /-I/, ";" ) ; sub ( /;/, "" ) ; print $0 }' )
|
|
LIBDIR=$( pkg-config --libs-only-L gtk+-2.0 libnotify x11 | awk ' { gsub ( / /, "" ) ; gsub ( /-I/, ";" ) ; sub ( /;/, "" ) ; print $0 }' )
|
|
|
|
%if 0%{?fedora_version} || 0%{?fedora}
|
|
LINK="$(pkg-config --libs libpng freetype2)"
|
|
%else
|
|
LINK=""
|
|
%endif
|
|
|
|
cat > %{buildroot}/%{_datadir}/%{name}/GCC.bm << EOF
|
|
BUILDER = "GCC";
|
|
COMPILER = "g++";
|
|
COMMON_CPP_OPTIONS = "-std=c++11";
|
|
DEBUG_INFO = "2";
|
|
DEBUG_BLITZ = "1";
|
|
DEBUG_LINKMODE = "1";
|
|
DEBUG_LINK = "$LINK";
|
|
DEBUG_OPTIONS = "-O0";
|
|
DEBUG_FLAGS = "";
|
|
RELEASE_BLITZ = "0";
|
|
RELEASE_LINKMODE = "1";
|
|
RELEASE_OPTIONS = "-O3 -ffunction-sections -fdata-sections";
|
|
RELEASE_SIZE_OPTIONS = "-Os -finline-limit=20 -ffunction-sections -fdata-sections";
|
|
RELEASE_FLAGS = "";
|
|
RELEASE_LINK = "-Wl,--gc-sections $LINK";
|
|
DEBUGGER = "gdb";
|
|
PATH = "";
|
|
INCLUDE = "$INCLUDEDIR";
|
|
LIB = "$LIBDIR";
|
|
REMOTE_HOST = "";
|
|
REMOTE_OS = "";
|
|
REMOTE_TRANSFER = "";
|
|
REMOTE_MAP = "";
|
|
LINKMODE_LOCK = "0";
|
|
EOF
|
|
|
|
cat > %{buildroot}/%{_datadir}/%{name}/CLANG.bm << EOF
|
|
BUILDER = "CLANG";
|
|
COMPILER = "clang++";
|
|
COMMON_OPTIONS = "-Wno-logical-op-parentheses";
|
|
COMMON_CPP_OPTIONS = "-std=c++11";
|
|
COMMON_C_OPTIONS = "";
|
|
COMMON_FLAGS = "";
|
|
DEBUG_INFO = "2";
|
|
DEBUG_BLITZ = "1";
|
|
DEBUG_LINKMODE = "1";
|
|
DEBUG_OPTIONS = "-O0";
|
|
DEBUG_FLAGS = "";
|
|
DEBUG_LINK = "$LINK";
|
|
RELEASE_BLITZ = "0";
|
|
RELEASE_LINKMODE = "1";
|
|
RELEASE_OPTIONS = "-O3 -ffunction-sections -fdata-sections";
|
|
RELEASE_SIZE_OPTIONS = "-Os -ffunction-sections -fdata-sections";
|
|
RELEASE_FLAGS = "";
|
|
RELEASE_LINK = "-Wl,--gc-sections $LINK";
|
|
DEBUGGER = "gdb";
|
|
PATH = "";
|
|
INCLUDE = "$INCLUDEDIR";
|
|
LIB = "$LIBDIR";
|
|
REMOTE_HOST = "";
|
|
REMOTE_OS = "";
|
|
REMOTE_TRANSFER = "";
|
|
REMOTE_MAP = "";
|
|
LINKMODE_LOCK = "0";
|
|
ALLOW_PRECOMPILED_HEADERS = "0";
|
|
EOF
|
|
|
|
#-----
|
|
%clean
|
|
rm -fr %{buildroot}
|
|
|
|
#-----
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%license uppsrc/ide/Copying
|
|
%doc readme.md
|
|
%doc %{_mandir}/man1/*
|
|
%{_bindir}/theide
|
|
%{_bindir}/umk
|
|
%{_datadir}/applications/theide.desktop
|
|
%{_datadir}/icons/hicolor/48x48/apps/theide.png
|
|
%{_datadir}/pixmaps/theide.png
|
|
%dir %{_datadir}/%{name}
|
|
%{_datadir}/%{name}/CLANG.bm
|
|
%{_datadir}/%{name}/GCC.bm
|
|
%dir %{_datadir}/%{name}/speller
|
|
%{_datadir}/%{name}/speller/*
|
|
|
|
#-----
|
|
%files devel
|
|
%{_datadir}/%{name}/bazaar
|
|
%{_datadir}/%{name}/examples
|
|
%{_datadir}/%{name}/reference
|
|
%{_datadir}/%{name}/tutorial
|
|
%{_datadir}/%{name}/uppsrc
|
|
|
|
#---------
|
|
%changelog
|
|
* %date Amrein-Marie Christophe <camreinmarie@free.fr> %version-1
|
|
- New snapshot
|
|
- Rename main package (upp-devel -> upp)
|
|
- Add devel package containing source only
|
|
- Add dictionary files used by theide speller
|
|
|
|
* Sat Dec 09 2017 Amrein-Marie Christophe <camreinmarie@free.fr> 2017.2-1
|
|
- New release (rev 11540)
|
|
|
|
* Tue Jan 31 2017 Amrein-Marie Christophe <camreinmarie@free.fr> 2017.1-1
|
|
- New release (rev 10804)
|
|
- Rename package (upp -> upp-devel)
|
|
- Obsoletes old upp package
|
|
- Use default Makefile to build and install U++
|
|
- Update BuildRequires and Requires for all platforms
|
|
- Enable clang++ for distribution with gcc version < 4.9.0
|
|
- Build and add umk binary
|
|
- Add theide and umk man pages
|
|
|
|
* Thu Nov 08 2012 Amrein-Marie Christophe <camreinmarie@free.fr> 5485-1
|
|
- New release
|
|
|
|
* Fri Oct 26 2012 Amrein-Marie Christophe <camreinmarie@free.fr> 5431-1
|
|
- New release
|
|
|
|
* Tue Jan 31 2012 Amrein-Marie Christophe <camreinmarie@free.fr> 4193-1
|
|
- New release
|
|
|
|
* Fri Aug 15 2008 Amrein-Marie Christophe <camreinmarie@free.fr> 2008.1-1
|
|
- First package
|