codeblocks/codeblocks.spec

172 lines
5.0 KiB
RPMSpec
Raw Normal View History

%define libname libcodeblocks
Name: codeblocks
Version: 20.03
Release: 1mamba
Summary: An open source cross platform free C++ IDE
Group: Graphical Desktop/Applications/Development
Vendor: openmamba
Distribution: openmamba
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
Patch1: codeblocks-10.05-konsole.patch
Patch2: codeblocks-20.03-gcc-11.patch
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libX11-devel
BuildRequires: libXau-devel
BuildRequires: libXdmcp-devel
BuildRequires: libatk-devel
BuildRequires: libboost-devel
BuildRequires: libbrotli-devel
BuildRequires: libbsd-devel
BuildRequires: libbzip2-devel
BuildRequires: libcairo-devel
BuildRequires: libexpat-devel
BuildRequires: libfontconfig-devel
BuildRequires: libfreetype-devel
BuildRequires: libgamin-devel
BuildRequires: libgcc
BuildRequires: libgdk-pixbuf-devel
BuildRequires: libglib-devel
BuildRequires: libgraphite2-devel
BuildRequires: libgtk3-devel
BuildRequires: libharfbuzz-devel
BuildRequires: libhunspell-devel
BuildRequires: libncurses-devel
BuildRequires: libpango-devel
BuildRequires: libpcre-devel
BuildRequires: libpng-devel
BuildRequires: libstdc++6-devel
BuildRequires: libwx_baseu30-devel
BuildRequires: libwx_gtk3u30-devel
BuildRequires: libxcb-devel
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
This package contains static libraries and header files needed for development.
%debug_package
%prep
%setup -q
%patch2 -p2
%build
%configure \
--with-contrib-plugins=all,-MouseSap \
--with-wx-config=wx-config-unicode-30 \
--with-boost-libdir=%{_libdir}
#--with-boost-system=boost_system-mt
%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
#%{_bindir}/codesnippets
%dir %{_datadir}/codeblocks
%{_datadir}/codeblocks/*
%{_datadir}/appdata/codeblocks-contrib.metainfo.xml
%{_datadir}/appdata/codeblocks.appdata.xml
%{_datadir}/applications/codeblocks.desktop
#%{_datadir}/icons/hicolor/*/apps/codeblocks.png
%{_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
#%doc BUGS ChangeLog NEWS README TODO
#%doc COMPILERS
%changelog
* Wed Feb 10 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 20.03-1mamba
- update to 20.03
* Sun Jul 29 2018 Silvan Calarco <silvan.calarco@mambasoft.it> 17.12-1mamba
- update to 17.12
* Sat Feb 27 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 16.01-1mamba
- update to 16.01
* 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