QOwnNotes/obs/qownnotes.spec

73 lines
2 KiB
RPMSpec
Raw Normal View History

2016-01-02 12:43:33 +01:00
#
# spec file for package qownnotes
#
Name: qownnotes
BuildRequires: libqt5-qtbase-devel update-desktop-files fdupes
%if 0%{?suse_version} > 1310
BuildRequires: libqt5-qtscript-devel libqt5-qtsvg-devel
%else
BuildRequires: libQt5Script-devel libQt5Svg-devel
%endif
License: GPL-2.0
Group: System/GUI/Productivity
Summary: A note-taking app and todo list manager that can synchronize with your owncloud notes
Url: http://www.qownnotes.org/
Version: VERSION-STRING
Release: 1
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Source0: %{name}-%{version}.tar.xz
%debug_package
%description
QOwnNotes is the open source notepad for GNU/Linux, Mac OS X and Windows, that works together with the default notes application of ownCloud.
So you are able to write down your thoughts with QOwnNotes and edit or search for them later from your mobile device (like with CloudNotes or the ownCloud web-service.
The notes are stored as plain text files and are synced with ownCloud's file sync functionality. Of course other software, like Dropbox can be used too.
I like the concept of having notes accessible in plain text files, like it is done in the ownCloud notes app, to gain a maximum of freedom, but I was not able to find a decent desktop note taking tool or a text editor, that handles them well. Out of this need QOwnNotes was born.
%prep
%setup -q
mkdir build
pushd build
qmake-qt5 ../src
popd
%build
pushd build
CFLAGS=$RPM_OPT_FLAGS CCFLAGS=$CFLAGS
%make_jobs
popd
%install
pushd build
install -D -m 0755 QOwnNotes $RPM_BUILD_ROOT/%{_prefix}/bin/QOwnNotes
popd
install -D -m 0644 icons/icon.png $RPM_BUILD_ROOT/%{_datadir}/pixmaps/QOwnNotes.png
%suse_update_desktop_file -c QOwnNotes QOwnNotes QOwnNotes QOwnNotes QOwnNotes "Utility;SyncUtility;"
%fdupes $RPM_BUILD_ROOT/%{_prefix}
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%doc LICENSE README.md CHANGELOG.md SHORTCUTS.md
%{_bindir}/QOwnNotes
%{_datadir}//pixmaps/QOwnNotes.png
%{_datadir}/applications/QOwnNotes.desktop
%changelog