LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File ste.spec of Package ste (Project home:zhonghuaren)

Name:           ste
Version:        0.4.0
Release:        1
License:        GPL-2.0+
Summary:        Powerful Plain Text Editor
URL:            http://ste.sintegrial.com
Group:          Productivity/Text/Editors
Source0:        http://ste-editor.googlecode.com/files/%{name}-%{version}-src.7z
# PATCH-FIX-UPSTREAM ste-0.4.0-ste-uncrustify_includes.patch lazy.kent@opensuse.org -- add missing includes
Patch0:         ste-0.4.0-ste-uncrustify_includes.patch
# PATCH-FIX-UPSTREAM ste-0.4.0-gcc47.patch lazy.kent@opensuse.org -- fix compilation with GCC 4.7
Patch1:         ste-0.4.0-gcc47.patch
BuildRequires:  hicolor-icon-theme
BuildRequires:  icoutils
BuildRequires:  cxxtools-devel
BuildRequires:  p7zip
BuildRequires:  pkgconfig(QtCore)
BuildRequires:  pkgconfig(QtGui)
BuildRequires:  pkgconfig(QtNetwork)
BuildRequires:  pkgconfig(QtWebKit)
BuildRequires:  pkgconfig(enca)
Requires:       enca
Requires:       tidy
Requires:       astyle
Requires:       csstidy

S.T.E. is easy-to-use and feature-rich plain text editor. It is completely
free-of-charge for everybody (licensed under GPL). S.T.E. is a multiplatform
application (runs on Windows, Linux and other platforms). Therefore, it has
the same look-and-feel everywhere.

%setup -qn %{name}-%{version}-src
icotool -x -o . application/ste.ico
sed -i 's/\r$//' LICENSE.GPL2

qmake-qt4 \
    QMAKE_CFLAGS+="%{optflags}" \
    QMAKE_CXXFLAGS+="%{optflags}" \
make %{?_smp_mflags}

make INSTALL_ROOT=%{buildroot} install
# Create desktop-file
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
GenericName=Powerful Plain Text Editor
GenericName[ru]=Мощный текстовый редактор
Exec=ste %U
Comment=Feature-rich Plain Text Editor
Comment[ru]=Многофункциональный текстовый редактор

install -Dm 0644 *_16x16x32.png \
install -Dm 0644 *_32x32x32.png \
install -Dm 0644 *_48x48x32.png \
rm -rf %{buildroot}{%{_datadir}/qt4,%{_includedir},%{_libdir}}


* Tue Oct 15 2013 Huaren Zhong <huaren.zhong@gmail.com> 0.4.0
- Rebuild for Fedora
* Fri Apr 27 2012 lazy.kent@opensuse.org
- Patch to fix compilation with GCC 4.7.
- Use pkgconfig(*) as build dependencies.
- Removed check for unsupported openSUSE versions.
* Thu Nov 10 2011 lazy.kent@opensuse.org
- Corrected License tag.
- spec clean up.
* Fri Jun  3 2011 lazy.kent@opensuse.org
- Patch to add missing includes to 3rdparty/uncrustify.
- Added qmake optflags.
- Use full URL as a source.
- Added desktop_database_post/un and icon_theme_cache_post/un
- Don't install any qscintilla files.
- Don't install icon to pixmaps.
* Sat Nov  6 2010 lazy.kent.suse@gmail.com
- Fix directories owner.
- Add icon to pixmaps.
* Wed Nov  3 2010 lazy.kent.suse@gmail.com
- Initial package created - 0.4.0.