Files
notepadqq/notepadqq.spec

94 lines
3.0 KiB
RPMSpec
Raw Permalink Normal View History

#
# spec file for package notepadqq
#
# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: notepadqq
Version: 2.0.0~20201022T180930.03cdde0
Release: 0
Summary: Notepad++-like editor
License: GPL-3.0-or-later
Group: Productivity/Text/Editors
URL: https://notepadqq.com/
Source: %{name}-%{version}.tar.xz
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: hicolor-icon-theme
BuildRequires: libqt5-linguist
BuildRequires: pkgconfig
BuildRequires: update-desktop-files
BuildRequires: pkgconfig(Qt5Core)
BuildRequires: pkgconfig(Qt5DBus)
BuildRequires: pkgconfig(Qt5Gui)
BuildRequires: pkgconfig(Qt5Network)
BuildRequires: pkgconfig(Qt5PrintSupport)
BuildRequires: pkgconfig(Qt5Svg)
BuildRequires: pkgconfig(Qt5Test)
BuildRequires: pkgconfig(Qt5WebChannel)
BuildRequires: pkgconfig(Qt5WebEngineWidgets)
BuildRequires: pkgconfig(Qt5WebSockets)
BuildRequires: pkgconfig(Qt5Widgets)
BuildRequires: pkgconfig(uchardet)
%description
Text editor with support for multiple programming languages,
multiple encodings, and plugins.
%prep
%setup -q
find src/extension_tools/node_modules/ -type f -name '*.js' -exec sed -i '1s/^\(#!.\+\)env /\1/' {} \;
sed -i '1s/^\(#!.\+\)env /\1/' src/extension_tools/node_modules/shelljs/bin/shjs
pushd src/extension_tools/node_modules/archiver/node_modules
chmod 0755 tar-stream/node_modules/bl/test/sauce.js
chmod 0755 glob/node_modules/minimatch/node_modules/brace-expansion/test/generate.sh
popd
chmod 0644 src/editor/libs/codemirror/mode/sas/sas.js
# W: script-without-shebang
chmod -x src/editor/libs/throttle-debounce/*
%build
%qmake5 \
PREFIX=%{_prefix} \
QMAKE_CXXFLAGS="%{optflags}" \
LRELEASE=%{_libqt5_bindir}/lrelease \
notepadqq.pro
%make_build
%install
%qmake5_install
%suse_update_desktop_file -r %{name} Utility TextEditor
Accepting request 596561 from home:enzokiel:branches:editors - Update to 1.3.4: * feat: add Japanese translation * fix: Load simple.js to avoid CodeMirror.defineSimpleMode errors. (#600) * feat: Save custom indentation mode for sessions. (#606) * feat: Add '--line' and '--column' commandline arguments. (#604) * feat: ask user to allow us to collect anonymous usage statistics (#607) * feat: Add warning when opening large files. (#610) - Version 1.3.2: * revert - Version 1.3.1: * fix crash on start on Ubuntu 14.04 - Version 1.3.0: * Added Spanish Translation by inukaze. Fixes #507. (#508) * Fix Qt5 version detection. * Ability to disable saving search history (#528) * Advanced Search Dock * Support loading Qt 5.10 through /opt/ or ~/ * Update CodeMirror to 5.33.0 * Add menu options to toggle visibility of toolbar and menubar. * Add option to quit Nqq when closing last open tab. (#550) * Improve high Dpi looks * Fix infinite loop when searching for 0-length regex * Fix editor focus issues (fixes #265) * Back references now working for regex search using the search dock. * Add help dialog about regular expression use * Prevent appmenu-qt5 from removing our menubar * feat: implement --allow-root and prohibit running as root by default. * feat: Add customizable Toolbar * feat: Enable basic document printing * fix: Prefer GTK's icon theme if XDG_CURRENT_DESKTOP is not set * feat: allow horizontal scrolling when holding shift + mouse wheel (closes #582) - Removed notepadqq-1.2.0-fix-qt-5.10.patch, fixed upstream. - Delete all hidden files from %{buildroot}. OBS-URL: https://build.opensuse.org/request/show/596561 OBS-URL: https://build.opensuse.org/package/show/editors/notepadqq?expand=0&rev=17
2018-04-14 20:32:54 +00:00
find %{buildroot}/ -name '.*' -print0 | xargs -0 rm -rf
sed -i '1 s|^#!%{_bindir}/env bash|#!%{_bindir}/bash|' %{buildroot}%{_datadir}/%{name}/extension_tools/node_modules/archiver/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/generate.sh
%fdupes %{buildroot}%{_datadir}/
%files
%license COPYING
%doc CONTRIBUTING.md README.md
%{_bindir}/%{name}
%{_prefix}/lib/%{name}/
%{_datadir}/%{name}/
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/*/apps/%{name}.*
Accepting request 596561 from home:enzokiel:branches:editors - Update to 1.3.4: * feat: add Japanese translation * fix: Load simple.js to avoid CodeMirror.defineSimpleMode errors. (#600) * feat: Save custom indentation mode for sessions. (#606) * feat: Add '--line' and '--column' commandline arguments. (#604) * feat: ask user to allow us to collect anonymous usage statistics (#607) * feat: Add warning when opening large files. (#610) - Version 1.3.2: * revert - Version 1.3.1: * fix crash on start on Ubuntu 14.04 - Version 1.3.0: * Added Spanish Translation by inukaze. Fixes #507. (#508) * Fix Qt5 version detection. * Ability to disable saving search history (#528) * Advanced Search Dock * Support loading Qt 5.10 through /opt/ or ~/ * Update CodeMirror to 5.33.0 * Add menu options to toggle visibility of toolbar and menubar. * Add option to quit Nqq when closing last open tab. (#550) * Improve high Dpi looks * Fix infinite loop when searching for 0-length regex * Fix editor focus issues (fixes #265) * Back references now working for regex search using the search dock. * Add help dialog about regular expression use * Prevent appmenu-qt5 from removing our menubar * feat: implement --allow-root and prohibit running as root by default. * feat: Add customizable Toolbar * feat: Enable basic document printing * fix: Prefer GTK's icon theme if XDG_CURRENT_DESKTOP is not set * feat: allow horizontal scrolling when holding shift + mouse wheel (closes #582) - Removed notepadqq-1.2.0-fix-qt-5.10.patch, fixed upstream. - Delete all hidden files from %{buildroot}. OBS-URL: https://build.opensuse.org/request/show/596561 OBS-URL: https://build.opensuse.org/package/show/editors/notepadqq?expand=0&rev=17
2018-04-14 20:32:54 +00:00
%{_datadir}/metainfo/notepadqq.appdata.xml
%changelog