summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario Blättermann <mario.blaettermann@gmail.com>2015-02-17 22:30:26 +0100
committerMario Blättermann <mario.blaettermann@gmail.com>2015-02-17 22:30:26 +0100
commit3c4fc45ae57745f7f07bdf27bab0966c26323c68 (patch)
tree5cc6b09f2f0be1acb8f65f464d04c124cc054cc0
parentd3fc5a6f2a3184ce50741021ef9717f56e949812 (diff)
downloadnovprog-3c4fc45ae57745f7f07bdf27bab0966c26323c68.tar.gz
novprog-3c4fc45ae57745f7f07bdf27bab0966c26323c68.tar.xz
novprog-3c4fc45ae57745f7f07bdf27bab0966c26323c68.zip
Initial commit
-rw-r--r--.gitignore1
-rw-r--r--novprog.spec68
-rw-r--r--sources1
3 files changed, 70 insertions, 0 deletions
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 <mario.blaettermann@gmail.com> - 3.0.0-2
+- Add unowned directory to %%files
+
+* Sun Feb 15 2015 Mario Blättermann <mario.blaettermann@gmail.com> - 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