[krop/f19] Initial SETUP.
Christopher Meng
cicku at fedoraproject.org
Mon Aug 26 17:09:04 UTC 2013
commit 702a195056f69341d23d5580757bab9cf6e0aaaf
Author: Koji <koji at fedoraproject.org>
Date: Tue Aug 27 01:07:34 2013 +0800
Initial SETUP.
.gitignore | 1 +
krop.spec | 63 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
3 files changed, 65 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..a7d7f00 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/krop-0.4.4.tar.gz
diff --git a/krop.spec b/krop.spec
new file mode 100644
index 0000000..ad249be
--- /dev/null
+++ b/krop.spec
@@ -0,0 +1,63 @@
+Name: krop
+Version: 0.4.4
+Release: 1%{?dist}
+Summary: A tool to crop PDF files with an eye towards eReaders
+License: GPLv3+
+URL: http://arminstraub.com/computer/krop
+Source0: http://arminstraub.com/downloads/%{name}/%{name}-%{version}.tar.gz
+BuildRequires: desktop-file-utils
+BuildRequires: python2-devel python-setuptools
+Requires: pyPdf
+Requires: PyQt4
+Requires: python-poppler-qt4
+BuildArch: noarch
+
+%description
+krop is a simple graphical tool to crop the pages of PDF files. It is written
+in Python and relies on PyQT, python-poppler-qt4 and pyPDF for its
+functionality.
+
+A unique feature of krop is its ability to automatically split pages into
+subpages to fit the limited screen size of devices such as eReaders. This is
+particularly useful, if your eReader does not support convenient scrolling.
+
+%prep
+%setup -q
+
+%build
+%{__python} setup.py build
+
+%install
+%{__python} setup.py install -O1 --prefix %{_prefix} --skip-build --root %{buildroot}
+desktop-file-install --dir=%{buildroot}%{_datadir}/applications %{name}.desktop
+sed -i '1d' %{buildroot}%{python_sitelib}/%{name}/krop.py
+
+%check
+%{__python} setup.py check
+
+%post
+update-desktop-database &> /dev/null || :
+
+%postun
+update-desktop-database &> /dev/null || :
+
+%files
+%doc ChangeLog LICENSE README
+%{_bindir}/%{name}
+%{_datadir}/applications/%{name}.desktop
+%{python_sitelib}/%{name}-%{version}-py%{python_version}.egg-info
+%{python_sitelib}/%{name}
+
+%changelog
+* Sun Aug 25 2013 Christopher Meng <rpm at cicku.me> - 0.4.4-1
+- Update to new version.
+
+* Wed Aug 14 2013 Christopher Meng <rpm at cicku.me> - 0.4.3-1
+- Update to new version.
+- Correct desktop MIME update script.
+
+* Wed Jul 31 2013 Christopher Meng <rpm at cicku.me> - 0.4.1-1
+- Update to new version.
+
+* Sat Nov 12 2011 Christopher Meng <rpm at cicku.me> - 0.3.0-1
+- Initial Package.
diff --git a/sources b/sources
index e69de29..a54eb09 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+fa33ad5da5c53721fd0a70e9bb704d1d krop-0.4.4.tar.gz
More information about the scm-commits
mailing list