From b77d6259396da2c8665c7e7c82424641599c2c91 Mon Sep 17 00:00:00 2001
From: Dennis Gilmore dennis@ausil.us
Date: Wed, 17 Jun 2015 13:40:11 +0000
Subject: - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
---
krop.spec | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/krop.spec b/krop.spec
index c94104e..97cb1c8 100644
--- a/krop.spec
+++ b/krop.spec
@@ -1,6 +1,6 @@
Name: krop
Version: 0.4.7
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: Tool to crop PDF files with an eye towards eReaders
License: GPLv3+
URL: http://arminstraub.com/software/krop
@@ -56,6 +56,9 @@ update-desktop-database &> /dev/null || :
%{python2_sitelib}/%{name}/
%changelog
+* Wed Jun 17 2015 Fedora Release Engineering rel-eng@lists.fedoraproject.org - 0.4.7-2
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
+
* Tue Feb 17 2015 Christopher Meng rpm@cicku.me - 0.4.7-1
- Update to 0.4.7
--
cgit v0.12
From df21868370095253eaad0ab17735cc5a8b1e9d21 Mon Sep 17 00:00:00 2001
From: Christopher Meng
rpm@cicku.me
Date: Tue, 21 Jul 2015 19:32:50 +0800
Subject: Update to 0.4.8
---
.gitignore | 1 +
krop.spec | 43 ++++++++++++++++++++++++++++++-------------
sources | 2 +-
3 files changed, 32 insertions(+), 14 deletions(-)
diff --git a/.gitignore b/.gitignore
index 3f1b3ff..9c89fb0 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,3 +2,4 @@
/krop-0.4.5.tar.gz
/krop-0.4.6.tar.gz
/krop-0.4.7.tar.gz
+/krop-0.4.8.tar.gz
diff --git a/krop.spec b/krop.spec
index 97cb1c8..2d3b46e 100644
--- a/krop.spec
+++ b/krop.spec
@@ -1,6 +1,18 @@
+# More convenient than %%fedora/%%rhel/%%centos.
+#global osname %(cat /etc/redhat-release | sed -e 's/ release.*//')
+# Sed is not safe? Awk is here.
+%global osname %(cat /etc/redhat-release | awk '{sub(/ release.*/,""); print}')
+
+# yum still works, however I'd like to shake it off the memory.
+%if (0%{?fedora} && 0%{?fedora} >= 21) || (0%{?rhel} && 0%{?rhel} >= 8)
+%global pkgmgr dnf
+%else
+%global pkgmgr yum
+%endif
+
Name: krop
-Version: 0.4.7
-Release: 2%{?dist}
+Version: 0.4.8
+Release: 1%{?dist}
Summary: Tool to crop PDF files with an eye towards eReaders
License: GPLv3+
URL:
http://arminstraub.com/software/krop
@@ -15,27 +27,28 @@ Requires: PyQt4
Requires: python-poppler-qt4
%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.
+Krop is a simple graphical tool to crop the pages of PDF files. 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
+# In terms of OS available on Koji. "of" is needed since Ubuntu appears as font.
+find . -type f -name '*.py' -exec sed -i -e 's/of ubuntu/of %{osname}/Ig' \
+-e 's|apt-get|%{pkgmgr}|g' -e 's|python-pypdf|pyPdf|g' '{}' +
%build
%{__python2} setup.py build
%install
%{__python2} setup.py install -O1 --prefix %{_prefix} --skip-build --root %{buildroot}
+
desktop-file-install --dir=%{buildroot}%{_datadir}/applications %{name}.desktop
+
sed -i '1d' %{buildroot}%{python2_sitelib}/%{name}/krop.py
-mkdir -p %{buildroot}%{_datadir}/appdata
-install -pm 644 %{name}.appdata.xml %{buildroot}%{_datadir}/appdata
-#DESTDIR="%{buildroot}" appstream-util install %{name}.appdata.xml
+
+DESTDIR="%{buildroot}" appstream-util install %{name}.appdata.xml
%check
%{__python2} setup.py check
@@ -48,7 +61,8 @@ update-desktop-database &> /dev/null || :
update-desktop-database &> /dev/null || :
%files
-%doc ChangeLog LICENSE README
+%doc ChangeLog README
+%license LICENSE
%{_bindir}/%{name}
%{_datadir}/appdata/%{name}.appdata.xml
%{_datadir}/applications/%{name}.desktop
@@ -56,6 +70,9 @@ update-desktop-database &> /dev/null || :
%{python2_sitelib}/%{name}/
%changelog
+* Thu Jul 16 2015 Christopher Meng
rpm@cicku.me - 0.4.8-1
+- Update to 0.4.8
+
* Wed Jun 17 2015 Fedora Release Engineering
rel-eng@lists.fedoraproject.org - 0.4.7-2
- Rebuilt for
https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
diff --git a/sources b/sources
index 75fd9c3..2f6148e 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-43b7c11f09b484a5516bcaf24cd0919e krop-0.4.7.tar.gz
+ed909e3852e6c31bf5c9944b08f33389 krop-0.4.8.tar.gz
--
cgit v0.12
http://pkgs.fedoraproject.org/cgit/krop.git/commit/?h=f24&id=34f7a283829...