From 3c4fc45ae57745f7f07bdf27bab0966c26323c68 Mon Sep 17 00:00:00 2001 From: Mario Blättermann Date: Tue, 17 Feb 2015 22:30:26 +0100 Subject: Initial commit --- .gitignore | 1 + novprog.spec | 68 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 70 insertions(+) create mode 100644 novprog.spec diff --git a/.gitignore b/.gitignore index e69de29..c53a18a 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/novprog-3.0.0-src.tar.bz2 diff --git a/novprog.spec b/novprog.spec new file mode 100644 index 0000000..4defec6 --- /dev/null +++ b/novprog.spec @@ -0,0 +1,68 @@ +Name: novprog +Version: 3.0.0 +Release: 2%{?dist} +Summary: Tool to graph your progress in writing a NaNoWriMo style novel + +License: GPLv3+ +URL: http://gottcode.org/%{name}/ +Source: http://gottcode.org/%{name}/%{name}-%{version}-src.tar.bz2 + +BuildRequires: desktop-file-utils +BuildRequires: libappstream-glib +BuildRequires: qt5-qttools-devel + +Requires: hicolor-icon-theme + +%description +NovProg is a tool to graph your progress in writing a NaNoWriMo style novel. +You enter your wordcount and it updates a graph showing you how much progress +you have made. It also shows you how far you are through your daily goal, +and your total goal. Mousing over a bar in the graph will show a tooltip +with that day’s wordcount. + +%prep +%setup -q + + +%build +%{qmake_qt5} PREFIX=%{_prefix} +make %{?_smp_mflags} + + +%install +%make_install INSTALL_ROOT=%{buildroot} + +%find_lang %{name} --with-qt --without-mo + +%check +desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}.desktop || : +appstream-util validate-relax --nonet %{buildroot}%{_datadir}/appdata/%{name}.appdata.xml || : + +%post +touch --no-create %{_datadir}/icons/hicolor &>/dev/null || : + +%postun +if [ $1 -eq 0 ] ; then + touch --no-create %{_datadir}/icons/hicolor &>/dev/null + gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : +fi + +%posttrans +gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : + +%files -f %{name}.lang +%doc ChangeLog CREDITS NEWS README +%license COPYING +%{_bindir}/%{name} +%{_datadir}/appdata/%{name}.appdata.xml +%{_datadir}/applications/%{name}.desktop +%{_datadir}/icons/hicolor/*/apps/%{name}.* +%dir %{_datadir}/%{name}/ +%dir %{_datadir}/%{name}/translations/ + +%changelog +* Tue Feb 17 2015 Mario Blättermann - 3.0.0-2 +- Add unowned directory to %%files + +* Sun Feb 15 2015 Mario Blättermann - 3.0.0-1 +- Initial package diff --git a/sources b/sources index e69de29..ed6b402 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +c40308d6e185e1de49e851f08f6e7317 novprog-3.0.0-src.tar.bz2 -- cgit