Name: juffed
Version: 0.10
Release: alt3.git7746772.1
Summary: Simple tabbed text editor
License: GPL-2.0+
Group: Editors
URL: https://github.com/Mezomish/juffed
Source: %name-%version.tar
Patch1: %name-%version-fedora-cmake.patch
BuildRequires(pre): cmake rpm-macros-ninja-build
BuildRequires: gcc-c++
BuildRequires: ninja-build
BuildRequires: qt5-base-devel
BuildRequires: qt5-tools-devel
BuildRequires: libqscintilla2-qt5-devel
BuildRequires: libenca-devel
BuildRequires: chrpath
Provides: %name-plugins = %EVR
Obsoletes: %name-plugins < %EVR
%description
Simple tabbed text editor with syntax highlighting for C++, Python,
HTML, PHP, XML, TeX, Makefiles, ini-files and patch-files
%package devel
Summary: Includes for juffed
Group: Development/KDE and QT
Requires: %name = %EVR
BuildArch: noarch
%description devel
%{summary}
See http://code.google.com/p/juffed-plugins/wiki/JuffEd_Plugins_Tutorial
for details.
%prep
%setup
#patch1 -p1
%build
%cmake -GNinja \
-DUSE_QT5=TRUE \
-DUSE_ENCA=TRUE \
-DQSCINTILLA_NAMES=qscintilla2_qt5
%ninja_build -C "%_cmake__builddir"
%install
%ninja_install -C "%_cmake__builddir"
#chrpath -d %buildroot%_bindir/%name
#chrpath -d %buildroot%_libdir/libjuff.so
#mkdir -p %buildroot/%_libdir/%name/plugins
%files
%doc COPYING ChangeLog README
%_bindir/%name
%_libdir/libjuff.*
%_libdir/libjuffed-engine-qsci.so*
%dir %_datadir/%name
%_datadir/%name
%dir %_libdir/%name/plugins
%_libdir/%name/plugins
%_desktopdir/%name.desktop
%_datadir/pixmaps/%name.png
%files devel
%_includedir/%name
%changelog
* Mon May 31 2021 Arseny Maslennikov <arseny@altlinux.org> 0.10-alt3.git7746772.1
- NMU: spec: adapted to new cmake macros.
* Mon Dec 09 2019 Andrey Cherepanov <cas@altlinux.org> 0.10-alt3.git7746772
- New version from upstream git https://github.com/Mezomish/juffed.
- Build with Qt5 (ALT #37589).
- Fix homepage.
* Tue May 15 2018 Aleksei Nikiforov <darktemplar@altlinux.org> 0.10-alt2
- Fixed build with current toolchain.
* Tue Oct 10 2017 Aleksei Nikiforov <darktemplar@altlinux.org> 0.10-alt1.4
- Rebuilt with qscintilla2 2.10.1.
* Tue Jul 04 2017 Aleksei Nikiforov <darktemplar@altlinux.org> 0.10-alt1.3
- Update spec to build with new toolchain
* Tue Apr 21 2015 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 0.10-alt1.2
- Rebuilt with qscintilla2 2.9
* Sat Nov 16 2013 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 0.10-alt1.1
- Rebuilt with qscintilla2 2.8
* Wed Jul 31 2013 Andrey Cherepanov <cas@altlinux.org> 0.10-alt1
- New version
- Main package includes juffed-plugins and therefore obsoletes separate package
* Fri Dec 21 2012 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 0.8.1-alt5.qa2
- Rebuilt with new qscintilla2
* Fri Sep 21 2012 Repocop Q. A. Robot <repocop@altlinux.org> 0.8.1-alt5.qa1
- NMU (by repocop). See http://www.altlinux.org/Tools/Repocop
- applied repocop fixes:
* vendor-tag for juffed-debuginfo
* vendor-tag for juffed
* vendor-tag for juffed-devel
* Wed Mar 21 2012 Andrey Cherepanov <cas@altlinux.org> 0.8.1-alt5
- Consider %%optflags (thanks sbolshakov@)
* Thu Jan 12 2012 Andrey Cherepanov <cas@altlinux.org> 0.8.1-alt4
- Remove standard library path from library RPATH
* Mon Jul 25 2011 Andrey Cherepanov <cas@altlinux.org> 0.8.1-alt3
- Rebuild for qscintilla2
* Tue Jan 18 2011 Andrey Cherepanov <cas@altlinux.org> 0.8.1-alt2
- juffed-devel should be .noarch.rpm
* Mon Jan 17 2011 Andrey Cherepanov <cas@altlinux.org> 0.8.1-alt1
- Version 0.8.1
- Move plugins to _libdir/juffed/plugins
* Mon Jan 17 2011 Andrey Cherepanov <cas@altlinux.org> 0.8-alt1
- Initial build in Sisyphus