wxformbuilder/wxformbuilder.spec

98 lines
3.1 KiB
RPMSpec

Name: wxformbuilder
Version: 3.10.1
Release: 1mamba
Summary: A RAD tool for wxWidgets GUI design
Group: Graphical Desktop/Applications/Development
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://github.com/wxFormBuilder/wxFormBuilder
Source: https://github.com/wxFormBuilder/wxFormBuilder.git/v%{version}/wxFormBuilder-%{version}.tar.bz2
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libgcc
BuildRequires: libstdc++6-devel
BuildRequires: libwx_baseu-devel
BuildRequires: libwx_gtk3u-devel
## AUTOBUILDREQ-END
%description
wxFormBuilder is a RAD tool for wxWidgets GUI design.
Features:
- Visual design of wxWidgets dialogs, frames, panels, toolbars and menubars
- Source code generation for C++, Python, PHP, Lua and XRC
- Support for AUI-managed frames
- Support for wxWidgets 3.0 widgets
- Available from Ubuntu PPA (ppa:wxformbuilder/release, ppa:wxformbuilder/wxwidgets)
- Available from wxPack (https://github.com/rjpcomputing/wxpack/wiki)
%debug_package
%prep
%setup -q -n wxFormBuilder-%{version}
#sh ./create_build_files5.sh
%build
%cmake -d build \
-DwxWidgets_CONFIG_EXECUTABLE=%{_bindir}/wx-config-unicode-3
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall -C build
:<< __OLD
install -d -m0755 %{buildroot}%{_datadir} %{buildroot}%{_bindir}
cp -a source/output %{buildroot}%{_datadir}/wxformbuilder
ln -s %{_datadir}/wxformbuilder/bin/wxformbuilder %{buildroot}%{_bindir}/wxformbuilder
rm -f %{buildroot}%{_datadir}/wxformbuilder/share/wxformbuilder
ln -sf .. %{buildroot}%{_datadir}/wxformbuilder/share/wxformbuilder
install -d -m0755 %{buildroot}%{_datadir}/applications
cat >> %{buildroot}%{_datadir}/applications/wxformbuilder.desktop << _EOF
[Desktop Entry]
Type=Application
Encoding=UTF-8
Name=wxFormBuilder
GenericName=RAD
Comment=Designer, GUI Builder, and RAD Tool For wxWidgets
Comment[it]=Designer, GUI Builder e strumento RAD per wxWidgets
Exec=wxformbuilder
Terminal=False
Icon=%{_datadir}/wxformbuilder/resources/icons/logo.png
Categories=Application;Development
_EOF
__OLD
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files
%defattr(-,root,root)
%{_bindir}/wxformbuilder
%dir %{_libdir}/wxformbuilder
%{_libdir}/wxformbuilder/lib*.so
%{_datadir}/applications/org.wxformbuilder.wxFormBuilder.desktop
%{_datadir}/icons/hicolor/*/apps/org.wxformbuilder.wxFormBuilder.png
%{_datadir}/icons/hicolor/*/mimetypes/org.wxformbuilder.wxFormBuilder.application-x-wxformbuilder.png
%{_datadir}/metainfo/org.wxformbuilder.wxFormBuilder.metainfo.xml
%{_datadir}/mime/packages/org.wxformbuilder.wxFormBuilder.xml
%dir %{_datadir}/wxformbuilder
%{_datadir}/wxformbuilder/Changelog.txt
%dir %{_datadir}/wxformbuilder
%{_datadir}/wxformbuilder/*
%doc LICENSE
%changelog
* Sun Jan 09 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 3.10.1-1mamba
- update to 3.10.1
* Tue May 17 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 3.5.0-1mamba
- update to 3.5.0
* Mon Mar 24 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 3.4.2-1mamba
- package created using the webbuild interface