QOwnNotes/obs/qownnotes.spec

185 lines
7.4 KiB
RPMSpec
Raw Normal View History

2016-01-02 12:43:33 +01:00
#
# Spec file for package qownnotes for openSUSE Linux ,Fedora Linux and CentOS 7
2016-01-02 13:40:38 +01:00
#
# Check for Linux distribution version numbers here:
# https://en.opensuse.org/openSUSE:Build_Service_cross_distribution_howto
2016-01-02 12:43:33 +01:00
#
Name: qownnotes
2016-01-04 10:06:47 +01:00
BuildRequires: gcc gcc-c++ fdupes
2016-01-02 12:43:33 +01:00
# This is for all Fedora CentOS 7
%if 0%{?fedora} || 0%{?rhel} >= 7 || 0%{?centos} >= 7
2016-01-04 10:06:47 +01:00
BuildRequires: qt5-qtbase
BuildRequires: qt5-qtbase-devel
BuildRequires: qt5-qtbase-gui
#BuildRequires: qt5-qtwebkit-devel
BuildRequires: qt5-qttools qt5-qttools-devel
BuildRequires: qt5-qtsvg-devel
2016-05-04 18:36:41 +02:00
BuildRequires: qt5-qtdeclarative-devel
2016-01-04 10:06:47 +01:00
BuildRequires: desktop-file-utils
2016-01-04 09:31:47 +01:00
Requires: qt5-qtsvg
2016-01-04 10:06:47 +01:00
%else
# This is for all SUSE
2016-05-05 07:33:29 +02:00
BuildRequires: libqt5-qtbase-devel libqt5-qtdeclarative-devel libQt5Svg-devel
2016-01-04 10:06:47 +01:00
BuildRequires: update-desktop-files
Requires: libQt5Svg5 libQt5Declarative5 libQt5Sql5 libQt5Sql5-sqlite libQt5Gui5 libQt5Network5 libQt5Widgets5 libQt5Xml5 libQt5PrintSupport5
2016-01-04 10:06:47 +01:00
2016-01-04 09:31:47 +01:00
%endif
2016-01-02 12:43:33 +01:00
License: GPL-2.0
Group: System/GUI/Productivity
2016-01-27 10:06:53 +01:00
Summary: Note-taking app and todo list manager with ownCloud integration
2016-01-02 12:43:33 +01:00
Url: http://www.qownnotes.org/
Version: VERSION-STRING
Release: 1
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Source0: %{name}-%{version}.tar.xz
%description
2016-01-03 09:12:27 +01:00
QOwnNotes is the open source notepad and todo list manager, that works together with the default notes application of ownCloud.
2016-01-02 12:43:33 +01:00
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.
2016-01-04 10:06:47 +01:00
www.qownnotes.org
Author
======
Patrizio Bekerle <patrizio@bekerle.com>
2016-01-02 12:43:33 +01:00
%prep
%setup -q
mkdir build
pushd build
2016-01-31 08:28:05 +01:00
qmake-qt5 ..
2016-01-02 12:43:33 +01:00
popd
%build
2016-01-04 10:06:47 +01:00
echo centos_version 0%{?centos_version}
echo rhel_version 0%{?rhel_version}
echo fedora 0%{?fedora}
echo suse_version 0%{?suse_version}
2016-01-02 12:43:33 +01:00
pushd build
CFLAGS=$RPM_OPT_FLAGS CCFLAGS=$CFLAGS
2016-01-04 11:04:42 +01:00
%if 0%{?fedora} || 0%{?rhel} >= 7 || 0%{?centos} >= 7
2016-01-04 11:04:42 +01:00
make
%else
2016-01-02 12:43:33 +01:00
%make_jobs
2016-01-04 11:04:42 +01:00
%endif
2016-01-02 12:43:33 +01:00
popd
%install
pushd build
install -D -m 0755 QOwnNotes $RPM_BUILD_ROOT/%{_prefix}/bin/QOwnNotes
popd
# manually install desktop file for Fedora
%if 0%{?fedora} || 0%{?rhel} >= 7 || 0%{?centos} >= 7
2016-01-31 08:28:05 +01:00
install -D -m 0644 QOwnNotes.desktop $RPM_BUILD_ROOT/%{_datadir}/applications/QOwnNotes.desktop
%endif
2016-01-31 08:28:05 +01:00
install -D -m 0644 images/icons/128x128/QOwnNotes.png $RPM_BUILD_ROOT/%{_datadir}/pixmaps/QOwnNotes.png
install -D -m 0644 images/icons/16x16/QOwnNotes.png $RPM_BUILD_ROOT/%{_datadir}/icons/hicolor/16x16/apps/QOwnNotes.png
install -D -m 0644 images/icons/24x24/QOwnNotes.png $RPM_BUILD_ROOT/%{_datadir}/icons/hicolor/24x24/apps/QOwnNotes.png
install -D -m 0644 images/icons/32x32/QOwnNotes.png $RPM_BUILD_ROOT/%{_datadir}/icons/hicolor/32x32/apps/QOwnNotes.png
install -D -m 0644 images/icons/48x48/QOwnNotes.png $RPM_BUILD_ROOT/%{_datadir}/icons/hicolor/48x48/apps/QOwnNotes.png
install -D -m 0644 images/icons/64x64/QOwnNotes.png $RPM_BUILD_ROOT/%{_datadir}/icons/hicolor/64x64/apps/QOwnNotes.png
install -D -m 0644 images/icons/96x96/QOwnNotes.png $RPM_BUILD_ROOT/%{_datadir}/icons/hicolor/96x96/apps/QOwnNotes.png
install -D -m 0644 images/icons/128x128/QOwnNotes.png $RPM_BUILD_ROOT/%{_datadir}/icons/hicolor/128x128/apps/QOwnNotes.png
install -D -m 0644 images/icons/256x256/QOwnNotes.png $RPM_BUILD_ROOT/%{_datadir}/icons/hicolor/256x256/apps/QOwnNotes.png
install -D -m 0644 images/icons/512x512/QOwnNotes.png $RPM_BUILD_ROOT/%{_datadir}/icons/hicolor/512x512/apps/QOwnNotes.png
install -D -m 0644 languages/QOwnNotes_en.qm $RPM_BUILD_ROOT/%{_datadir}/QOwnNotes/languages/QOwnNotes_en.qm
install -D -m 0644 languages/QOwnNotes_de.qm $RPM_BUILD_ROOT/%{_datadir}/QOwnNotes/languages/QOwnNotes_de.qm
install -D -m 0644 languages/QOwnNotes_fr.qm $RPM_BUILD_ROOT/%{_datadir}/QOwnNotes/languages/QOwnNotes_fr.qm
install -D -m 0644 languages/QOwnNotes_pl.qm $RPM_BUILD_ROOT/%{_datadir}/QOwnNotes/languages/QOwnNotes_pl.qm
2016-02-26 13:17:21 +01:00
install -D -m 0644 languages/QOwnNotes_zh.qm $RPM_BUILD_ROOT/%{_datadir}/QOwnNotes/languages/QOwnNotes_zh.qm
install -D -m 0644 languages/QOwnNotes_ru.qm $RPM_BUILD_ROOT/%{_datadir}/QOwnNotes/languages/QOwnNotes_ru.qm
2016-02-20 09:53:52 +01:00
install -D -m 0644 languages/QOwnNotes_pt.qm $RPM_BUILD_ROOT/%{_datadir}/QOwnNotes/languages/QOwnNotes_pt.qm
install -D -m 0644 languages/QOwnNotes_es.qm $RPM_BUILD_ROOT/%{_datadir}/QOwnNotes/languages/QOwnNotes_es.qm
2016-02-29 13:36:00 +01:00
install -D -m 0644 languages/QOwnNotes_nl.qm $RPM_BUILD_ROOT/%{_datadir}/QOwnNotes/languages/QOwnNotes_nl.qm
2016-03-03 15:59:30 +01:00
install -D -m 0644 languages/QOwnNotes_hu.qm $RPM_BUILD_ROOT/%{_datadir}/QOwnNotes/languages/QOwnNotes_hu.qm
install -D -m 0644 languages/QOwnNotes_ja.qm $RPM_BUILD_ROOT/%{_datadir}/QOwnNotes/languages/QOwnNotes_ja.qm
install -D -m 0644 languages/QOwnNotes_it.qm $RPM_BUILD_ROOT/%{_datadir}/QOwnNotes/languages/QOwnNotes_it.qm
2016-01-02 12:43:33 +01:00
2016-01-04 09:43:49 +01:00
%if 0%{?suse_version}
2016-01-02 12:43:33 +01:00
%suse_update_desktop_file -c QOwnNotes QOwnNotes QOwnNotes QOwnNotes QOwnNotes "Utility;SyncUtility;"
2016-01-04 09:43:49 +01:00
%endif
2016-01-02 12:43:33 +01:00
%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
2016-01-03 09:12:27 +01:00
%{_datadir}/pixmaps/QOwnNotes.png
2016-01-03 09:38:09 +01:00
%{_datadir}/icons/hicolor/16x16/apps/QOwnNotes.png
%{_datadir}/icons/hicolor/24x24/apps/QOwnNotes.png
%{_datadir}/icons/hicolor/32x32/apps/QOwnNotes.png
%{_datadir}/icons/hicolor/48x48/apps/QOwnNotes.png
%{_datadir}/icons/hicolor/64x64/apps/QOwnNotes.png
%{_datadir}/icons/hicolor/96x96/apps/QOwnNotes.png
%{_datadir}/icons/hicolor/128x128/apps/QOwnNotes.png
%{_datadir}/icons/hicolor/256x256/apps/QOwnNotes.png
%{_datadir}/icons/hicolor/512x512/apps/QOwnNotes.png
%{_datadir}/QOwnNotes/languages/QOwnNotes_en.qm
%{_datadir}/QOwnNotes/languages/QOwnNotes_de.qm
%{_datadir}/QOwnNotes/languages/QOwnNotes_fr.qm
%{_datadir}/QOwnNotes/languages/QOwnNotes_pl.qm
2016-02-26 13:17:21 +01:00
%{_datadir}/QOwnNotes/languages/QOwnNotes_zh.qm
%{_datadir}/QOwnNotes/languages/QOwnNotes_ru.qm
2016-02-20 09:53:52 +01:00
%{_datadir}/QOwnNotes/languages/QOwnNotes_pt.qm
%{_datadir}/QOwnNotes/languages/QOwnNotes_es.qm
2016-02-29 13:36:00 +01:00
%{_datadir}/QOwnNotes/languages/QOwnNotes_nl.qm
2016-03-03 15:59:30 +01:00
%{_datadir}/QOwnNotes/languages/QOwnNotes_hu.qm
%{_datadir}/QOwnNotes/languages/QOwnNotes_ja.qm
%{_datadir}/QOwnNotes/languages/QOwnNotes_it.qm
2016-01-03 09:38:09 +01:00
%{_datadir}/applications/QOwnNotes.desktop
%dir %{_datadir}/icons/hicolor/512x512/apps
%dir %{_datadir}/icons/hicolor/256x256/apps
%dir %{_datadir}/icons/hicolor/128x128/apps
%dir %{_datadir}/icons/hicolor/96x96/apps
%dir %{_datadir}/icons/hicolor/64x64/apps
%dir %{_datadir}/icons/hicolor/48x48/apps
%dir %{_datadir}/icons/hicolor/32x32/apps
%dir %{_datadir}/icons/hicolor/24x24/apps
%dir %{_datadir}/icons/hicolor/16x16/apps
%dir %{_datadir}/icons/hicolor/512x512
%dir %{_datadir}/icons/hicolor/256x256
%dir %{_datadir}/icons/hicolor/128x128
%dir %{_datadir}/icons/hicolor/96x96
%dir %{_datadir}/icons/hicolor/64x64
%dir %{_datadir}/icons/hicolor/48x48
%dir %{_datadir}/icons/hicolor/32x32
%dir %{_datadir}/icons/hicolor/24x24
%dir %{_datadir}/icons/hicolor/16x16
%dir %{_datadir}/icons/hicolor
%dir %{_datadir}/QOwnNotes/languages
%dir %{_datadir}/QOwnNotes
2016-01-02 12:43:33 +01:00
%changelog