2024-01-05 21:28:00 +01:00
|
|
|
%define libname libcodeblocks
|
|
|
|
|
|
|
|
Name: codeblocks
|
2024-01-05 21:28:02 +01:00
|
|
|
Version: 20.03
|
2024-01-05 21:28:00 +01:00
|
|
|
Release: 1mamba
|
|
|
|
Summary: An open source cross platform free C++ IDE
|
|
|
|
Group: Graphical Desktop/Applications/Development
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
2024-01-05 21:28:02 +01:00
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
|
|
URL: https://www.codeblocks.org/
|
|
|
|
Source: https://sourceforge.net/projects/codeblocks/files/Sources/%{version}/codeblocks-%{version}.tar.xz
|
2024-01-05 21:28:00 +01:00
|
|
|
Patch1: codeblocks-10.05-konsole.patch
|
2024-01-05 21:28:02 +01:00
|
|
|
Patch2: codeblocks-20.03-gcc-11.patch
|
2024-01-05 21:28:00 +01:00
|
|
|
License: GPL
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
BuildRequires: glibc-devel
|
2024-01-05 21:28:02 +01:00
|
|
|
BuildRequires: libX11-devel
|
|
|
|
BuildRequires: libXau-devel
|
|
|
|
BuildRequires: libXdmcp-devel
|
2024-01-05 21:28:00 +01:00
|
|
|
BuildRequires: libatk-devel
|
2024-01-05 21:28:02 +01:00
|
|
|
BuildRequires: libboost-devel
|
|
|
|
BuildRequires: libbrotli-devel
|
|
|
|
BuildRequires: libbsd-devel
|
2024-01-05 21:28:00 +01:00
|
|
|
BuildRequires: libbzip2-devel
|
|
|
|
BuildRequires: libcairo-devel
|
2024-01-05 21:28:02 +01:00
|
|
|
BuildRequires: libexpat-devel
|
2024-01-05 21:28:00 +01:00
|
|
|
BuildRequires: libfontconfig-devel
|
|
|
|
BuildRequires: libfreetype-devel
|
2024-01-05 21:28:02 +01:00
|
|
|
BuildRequires: libgamin-devel
|
2024-01-05 21:28:00 +01:00
|
|
|
BuildRequires: libgcc
|
|
|
|
BuildRequires: libgdk-pixbuf-devel
|
|
|
|
BuildRequires: libglib-devel
|
2024-01-05 21:28:02 +01:00
|
|
|
BuildRequires: libgraphite2-devel
|
|
|
|
BuildRequires: libgtk3-devel
|
|
|
|
BuildRequires: libharfbuzz-devel
|
|
|
|
BuildRequires: libhunspell-devel
|
|
|
|
BuildRequires: libncurses-devel
|
2024-01-05 21:28:00 +01:00
|
|
|
BuildRequires: libpango-devel
|
2024-01-05 21:28:02 +01:00
|
|
|
BuildRequires: libpcre-devel
|
2024-01-05 21:28:00 +01:00
|
|
|
BuildRequires: libpng-devel
|
|
|
|
BuildRequires: libstdc++6-devel
|
2024-01-05 21:28:02 +01:00
|
|
|
BuildRequires: libwx_baseu30-devel
|
|
|
|
BuildRequires: libwx_gtk3u30-devel
|
|
|
|
BuildRequires: libxcb-devel
|
2024-01-05 21:28:00 +01:00
|
|
|
BuildRequires: libz-devel
|
|
|
|
## AUTOBUILDREQ-END
|
|
|
|
BuildRequires: udev-devel
|
|
|
|
Requires: konsole
|
|
|
|
|
|
|
|
%description
|
|
|
|
Code::Blocks is a free C++ IDE built to meet the most demanding needs of its users.
|
|
|
|
It is designed to be very extensible and fully configurable.
|
|
|
|
|
|
|
|
%package -n %{libname}
|
|
|
|
Summary: Shared library for Code::Blocks
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n %{libname}
|
|
|
|
Shared libraries for Code::Blocks.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development headers for Code::Blocks
|
|
|
|
Group: Development/Libraries
|
|
|
|
Requires: %{libname} = %{?epoch:%epoch:}%{version}-%{release}
|
|
|
|
|
|
|
|
%description devel
|
2024-01-05 21:28:02 +01:00
|
|
|
This package contains static libraries and header files needed for development.
|
|
|
|
|
|
|
|
%debug_package
|
2024-01-05 21:28:00 +01:00
|
|
|
|
|
|
|
%prep
|
2024-01-05 21:28:02 +01:00
|
|
|
%setup -q
|
|
|
|
%patch2 -p2
|
2024-01-05 21:28:00 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
%configure \
|
2024-01-05 21:28:00 +01:00
|
|
|
--with-contrib-plugins=all,-MouseSap \
|
2024-01-05 21:28:02 +01:00
|
|
|
--with-wx-config=wx-config-unicode-30 \
|
|
|
|
--with-boost-libdir=%{_libdir}
|
|
|
|
|
|
|
|
#--with-boost-system=boost_system-mt
|
2024-01-05 21:28:00 +01:00
|
|
|
|
|
|
|
%make
|
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
%makeinstall
|
|
|
|
|
|
|
|
# icons
|
|
|
|
install -d %{buildroot}%{_iconsdir}/hicolor/{16x16,32x32,48x48}/apps
|
|
|
|
convert -scale 48x48 src/mime/codeblocks.png \
|
|
|
|
%{buildroot}%{_iconsdir}/hicolor/48x48/apps/%{name}.png
|
|
|
|
convert -scale 32x32 src/mime/codeblocks.png \
|
|
|
|
%{buildroot}%{_iconsdir}/hicolor/32x32/apps/%{name}.png
|
|
|
|
convert -scale 16x16 src/mime/codeblocks.png \
|
|
|
|
%{buildroot}%{_iconsdir}/hicolor/16x16/apps/%{name}.png
|
|
|
|
|
|
|
|
for f in %{buildroot}%{_libdir}/codeblocks/plugins/*.so
|
|
|
|
do
|
|
|
|
[ "$(basename $f .so)" != "libwxsmithcontribitems" ] && \
|
|
|
|
{ chrpath --list $f && chrpath --delete $f || :; }
|
|
|
|
done
|
|
|
|
|
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
|
|
|
%post -n %{libname} -p /sbin/ldconfig
|
|
|
|
%postun -n %{libname} -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_bindir}/cb_console_runner
|
|
|
|
%{_bindir}/cb_share_config
|
|
|
|
%{_bindir}/codeblocks
|
2024-01-05 21:28:00 +01:00
|
|
|
#%{_bindir}/codesnippets
|
2024-01-05 21:28:00 +01:00
|
|
|
%dir %{_datadir}/codeblocks
|
|
|
|
%{_datadir}/codeblocks/*
|
2024-01-05 21:28:00 +01:00
|
|
|
%{_datadir}/appdata/codeblocks-contrib.metainfo.xml
|
|
|
|
%{_datadir}/appdata/codeblocks.appdata.xml
|
2024-01-05 21:28:00 +01:00
|
|
|
%{_datadir}/applications/codeblocks.desktop
|
2024-01-05 21:28:02 +01:00
|
|
|
#%{_datadir}/icons/hicolor/*/apps/codeblocks.png
|
2024-01-05 21:28:00 +01:00
|
|
|
%{_datadir}/icons/hicolor/48x48/mimetypes/application-x-codeblocks-workspace.png
|
|
|
|
%{_datadir}/icons/hicolor/48x48/mimetypes/application-x-codeblocks.png
|
|
|
|
%{_datadir}/mime/packages/codeblocks.xml
|
|
|
|
%{_datadir}/pixmaps/codeblocks.png
|
|
|
|
%{_mandir}/man1/cb_console_runner.1*
|
|
|
|
%{_mandir}/man1/cb_share_config.1*
|
|
|
|
%{_mandir}/man1/codeblocks.1*
|
|
|
|
%{_mandir}/man1/codesnippets.1*
|
|
|
|
|
|
|
|
%files -n %{libname}
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/libcodeblocks.so.*
|
|
|
|
%{_libdir}/libwxsmithlib.so.*
|
|
|
|
%dir %{_libdir}/codeblocks
|
|
|
|
%{_libdir}/codeblocks/*
|
|
|
|
%doc AUTHORS COPYING
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%dir %{_includedir}/codeblocks
|
|
|
|
%{_includedir}/codeblocks/*
|
|
|
|
%dir %{_includedir}/wxsmith
|
|
|
|
%{_includedir}/wxsmith/*
|
|
|
|
%{_libdir}/libcodeblocks.la
|
|
|
|
%{_libdir}/libcodeblocks.so
|
|
|
|
%{_libdir}/libwxsmithlib.la
|
|
|
|
%{_libdir}/libwxsmithlib.so
|
|
|
|
%{_libdir}/pkgconfig/*.pc
|
2024-01-05 21:28:02 +01:00
|
|
|
#%doc BUGS ChangeLog NEWS README TODO
|
|
|
|
#%doc COMPILERS
|
2024-01-05 21:28:00 +01:00
|
|
|
|
|
|
|
%changelog
|
2024-01-05 21:28:02 +01:00
|
|
|
* Wed Feb 10 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 20.03-1mamba
|
|
|
|
- update to 20.03
|
|
|
|
|
2024-01-05 21:28:00 +01:00
|
|
|
* Sun Jul 29 2018 Silvan Calarco <silvan.calarco@mambasoft.it> 17.12-1mamba
|
|
|
|
- update to 17.12
|
|
|
|
|
2024-01-05 21:28:00 +01:00
|
|
|
* Sat Feb 27 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 16.01-1mamba
|
|
|
|
- update to 16.01
|
|
|
|
|
2024-01-05 21:28:00 +01:00
|
|
|
* Sun Dec 29 2013 Automatic Build System <autodist@mambasoft.it> 13.12-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Sat May 11 2013 Automatic Build System <autodist@mambasoft.it> 12.11-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Fri Feb 25 2011 Stefano Cotta Ramusino <stefano.cotta@openmamba.org> 10.05-1mamba
|
|
|
|
- package created by autospec
|