From f67fcfcf7a5e591bea67e0ee7c43429a43dbf7f9 Mon Sep 17 00:00:00 2001
From: Martin Gansser <mgansser(a)alice.de>
Date: Sun, 31 Jan 2016 22:40:35 +0100
Subject: Initial import (#1293735).
---
.gitignore | 1 +
boomaga.spec | 165 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
3 files changed, 167 insertions(+)
create mode 100644 boomaga.spec
diff --git a/.gitignore b/.gitignore
index e69de29..47ea1dc 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/boomaga-9a6aa75.tar.gz
diff --git a/boomaga.spec b/boomaga.spec
new file mode 100644
index 0000000..a1fd2e9
--- /dev/null
+++ b/boomaga.spec
@@ -0,0 +1,165 @@
+#https://github.com/Boomaga/boomaga/commit/9a6aa75dbbcc139b982e00b5b32bdfe62e70dcb6
+%global commit0 9a6aa75dbbcc139b982e00b5b32bdfe62e70dcb6
+%global shortcommit0 %(c=%{commit0}; echo ${c:0:7})
+
+Name: boomaga
+Version: 0.7.1
+Release: 6.git%{shortcommit0}%{?dist}
+Summary: A virtual printer for viewing a document before printing
+
+License: GPLv2 and LGPLv2+
+URL: http://www.boomaga.org
+# wget https://github.com/Boomaga/boomaga/archive/9a6aa75dbbcc139b982e00b5b32bdfe6…
+Source0: https://github.com/Boomaga/boomaga/archive/%{commit0}/%{name}-%{commit0}.ta…
+
+BuildRequires: cmake
+BuildRequires: cups-devel
+BuildRequires: desktop-file-utils
+BuildRequires: poppler-devel
+BuildRequires: poppler-cpp-devel
+BuildRequires: qt5-qtbase-devel
+BuildRequires: qt5-qttools-devel
+BuildRequires: snappy-devel
+Requires: cups
+Requires: shared-mime-info
+
+%description
+Boomaga (BOOklet MAnager) is a virtual printer for viewing a document
+before printing it out using the physical printer.
+The program is very simple to work with.
+Running any program, click "print" and select "Boomaga" to see in several
+seconds (CUPS takes some time to respond) the Boomaga window open.
+If you print out one more document,
+it gets added to the previous one, and you can also print them out as one,
+and you can also print them out as one.
+Regardless of whether your printer supports duplex printing or not,
+you would be able to easily print on both sides of the sheet.
+If your printer does not support duplex printing,
+point this out in the settings, and Booklet would ask you to turn
+over the pages half way through printing your document.
+
+The program can also help you get your documents prepared a bit
+before printing. At this stage Boomaga makes it possible to:
+
+ * Paste several documents together.
+ * Print several pages on one sheet.
+ * 1, 2, 4, 8 pages per sheet
+ * Booklet. Folding the sheets in two, you'll get a book.
+
+
+%prep
+%setup -qn %{name}-%{commit0}
+
+# delete unused directories and files
+find -name .gitignore -type f -or -name .travis.yml -type f | xargs rm -rfv
+
+%build
+%cmake \
+ -DUSE_QT5=Yes \
+ -DCUPS_BACKEND_DIR=%{_cups_serverbin}/backend \
+ -DCUPS_FILTER_DIR=%{_cups_serverbin}/filter \
+ .
+
+make %{?_smp_mflags}
+
+%install
+%make_install
+mkdir -p %{buildroot}%{_datadir}/%{name}/scripts
+install -m 755 scripts/installPrinter.sh %{buildroot}%{_datadir}/%{name}/scripts/
+chmod +x %{buildroot}%{_datadir}/%{name}/scripts/installPrinter.sh
+
+%find_lang %{name} --with-qt
+
+%check
+desktop-file-validate %{buildroot}%{_datadir}/applications/*.desktop
+
+%pre
+# Start cups if is stopped
+if [ "$(systemctl is-active cups.service)" != "active" ]; then
+ systemctl start cups
+ sleep 2
+fi
+
+%post
+/usr/bin/update-desktop-database &> /dev/null || :
+# Install the printer to cups backends
+if [ $1 = 1 ]; then
+ sh %{_datadir}/%{name}/scripts/installPrinter.sh
+fi
+/bin/touch --no-create %{_datadir}/icons/hicolor &> /dev/null || :
+/bin/touch --no-create %{_datadir}/mime/packages &> /dev/null || :
+/usr/bin/update-mime-database %{_datadir}/mime &> /dev/null || :
+
+
+%postun
+/usr/bin/update-desktop-database &> /dev/null || :
+if [ $1 -eq 0 ] ; then
+ /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null
+ /bin/touch --no-create %{_datadir}/mime/packages &>/dev/null
+ /usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
+ /usr/bin/update-mime-database %{?fedora:-n} %{_datadir}/mime &> /dev/null || :
+fi
+
+%posttrans
+/usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
+/usr/bin/update-mime-database %{?fedora:-n} %{_datadir}/mime &> /dev/null || :
+
+%preun
+# Uninstall the printer
+if [ $1 = 0 ] ; then
+ lpadmin -x "Boomaga"
+fi
+
+
+%files -f %{name}.lang
+%doc README.md
+%license COPYING GPL LGPL
+%{_bindir}/%{name}
+
+%defattr(755,root,root,-)
+%{_cups_serverbin}/backend/%{name}
+%defattr(-,root,root,-)
+%{_cups_serverbin}/filter/boomaga_pstopdf
+
+%dir %{_libdir}/%{name}
+%{_libdir}/%{name}/boomagabackend
+%{_libdir}/%{name}/boomagamerger
+%{_datadir}/applications/%{name}.desktop
+%{_datadir}/dbus-1/services/org.%{name}.service
+
+%{_datadir}/icons/hicolor/*/apps/%{name}.png
+%{_datadir}/mime/packages/%{name}.xml
+
+%dir %{_datadir}/ppd/%{name}
+%{_datadir}/ppd/%{name}/%{name}.ppd
+
+%dir %{_datadir}/%{name}
+%dir %{_datadir}/%{name}/scripts
+%dir %{_datadir}/%{name}/translations/
+%{_datadir}/%{name}/scripts/installPrinter.sh
+%{_mandir}/man1/%{name}.1.gz
+
+%changelog
+* Thu Jan 28 2016 Martin Gansser <martinkg(a)fedoraproject.org> - 0.7.1-6.git9a6aa75
+- Dropped %%Patch0
+- Update to new git version
+
+* Thu Jan 28 2016 Martin Gansser <martinkg(a)fedoraproject.org> - 0.7.1-5.git2928eef
+- Dropped link for %%{_bindir}/boomagamerger
+- Added %%{name}-0.7.1-NONGUI_DIR.patch
+
+* Sat Jan 09 2016 Martin Gansser <martinkg(a)fedoraproject.org> - 0.7.1-4.git2928eef
+- used %%{_cups_serverbin} macro provided by cups-devel
+- Update to new git version
+
+* Sat Dec 26 2015 Martin Gansser <martinkg(a)fedoraproject.org> - 0.7.1-3.git8ca78b2
+- Follow https://fedoraproject.org/wiki/Packaging:SourceURL
+- corrected cups backend and filter directories
+- use if condition in %%preun script
+- linked missing %%{_bindir}/boomagamerger
+
+* Fri Dec 25 2015 Martin Gansser <martinkg(a)fedoraproject.org> - 0.7.1-2.git8ca78b2
+- Rebuilt for new git release
+
+* Tue Dec 22 2015 Martin Gansser <martinkg(a)fedoraproject.org> - 0.7.1-1.git8ca78b2
+- Initial version of the package
diff --git a/sources b/sources
index e69de29..a204f7d 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+402d6db2c6964d529436e75a8a1cb3f3 boomaga-9a6aa75.tar.gz
--
cgit v0.11.2
http://pkgs.fedoraproject.org/cgit/boomaga.git/commit/?h=f23&id=f67fcfcf7a5…
From f67fcfcf7a5e591bea67e0ee7c43429a43dbf7f9 Mon Sep 17 00:00:00 2001
From: Martin Gansser <mgansser(a)alice.de>
Date: Sun, 31 Jan 2016 22:40:35 +0100
Subject: Initial import (#1293735).
---
.gitignore | 1 +
boomaga.spec | 165 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
3 files changed, 167 insertions(+)
create mode 100644 boomaga.spec
diff --git a/.gitignore b/.gitignore
index e69de29..47ea1dc 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/boomaga-9a6aa75.tar.gz
diff --git a/boomaga.spec b/boomaga.spec
new file mode 100644
index 0000000..a1fd2e9
--- /dev/null
+++ b/boomaga.spec
@@ -0,0 +1,165 @@
+#https://github.com/Boomaga/boomaga/commit/9a6aa75dbbcc139b982e00b5b32bdfe62e70dcb6
+%global commit0 9a6aa75dbbcc139b982e00b5b32bdfe62e70dcb6
+%global shortcommit0 %(c=%{commit0}; echo ${c:0:7})
+
+Name: boomaga
+Version: 0.7.1
+Release: 6.git%{shortcommit0}%{?dist}
+Summary: A virtual printer for viewing a document before printing
+
+License: GPLv2 and LGPLv2+
+URL: http://www.boomaga.org
+# wget https://github.com/Boomaga/boomaga/archive/9a6aa75dbbcc139b982e00b5b32bdfe6…
+Source0: https://github.com/Boomaga/boomaga/archive/%{commit0}/%{name}-%{commit0}.ta…
+
+BuildRequires: cmake
+BuildRequires: cups-devel
+BuildRequires: desktop-file-utils
+BuildRequires: poppler-devel
+BuildRequires: poppler-cpp-devel
+BuildRequires: qt5-qtbase-devel
+BuildRequires: qt5-qttools-devel
+BuildRequires: snappy-devel
+Requires: cups
+Requires: shared-mime-info
+
+%description
+Boomaga (BOOklet MAnager) is a virtual printer for viewing a document
+before printing it out using the physical printer.
+The program is very simple to work with.
+Running any program, click "print" and select "Boomaga" to see in several
+seconds (CUPS takes some time to respond) the Boomaga window open.
+If you print out one more document,
+it gets added to the previous one, and you can also print them out as one,
+and you can also print them out as one.
+Regardless of whether your printer supports duplex printing or not,
+you would be able to easily print on both sides of the sheet.
+If your printer does not support duplex printing,
+point this out in the settings, and Booklet would ask you to turn
+over the pages half way through printing your document.
+
+The program can also help you get your documents prepared a bit
+before printing. At this stage Boomaga makes it possible to:
+
+ * Paste several documents together.
+ * Print several pages on one sheet.
+ * 1, 2, 4, 8 pages per sheet
+ * Booklet. Folding the sheets in two, you'll get a book.
+
+
+%prep
+%setup -qn %{name}-%{commit0}
+
+# delete unused directories and files
+find -name .gitignore -type f -or -name .travis.yml -type f | xargs rm -rfv
+
+%build
+%cmake \
+ -DUSE_QT5=Yes \
+ -DCUPS_BACKEND_DIR=%{_cups_serverbin}/backend \
+ -DCUPS_FILTER_DIR=%{_cups_serverbin}/filter \
+ .
+
+make %{?_smp_mflags}
+
+%install
+%make_install
+mkdir -p %{buildroot}%{_datadir}/%{name}/scripts
+install -m 755 scripts/installPrinter.sh %{buildroot}%{_datadir}/%{name}/scripts/
+chmod +x %{buildroot}%{_datadir}/%{name}/scripts/installPrinter.sh
+
+%find_lang %{name} --with-qt
+
+%check
+desktop-file-validate %{buildroot}%{_datadir}/applications/*.desktop
+
+%pre
+# Start cups if is stopped
+if [ "$(systemctl is-active cups.service)" != "active" ]; then
+ systemctl start cups
+ sleep 2
+fi
+
+%post
+/usr/bin/update-desktop-database &> /dev/null || :
+# Install the printer to cups backends
+if [ $1 = 1 ]; then
+ sh %{_datadir}/%{name}/scripts/installPrinter.sh
+fi
+/bin/touch --no-create %{_datadir}/icons/hicolor &> /dev/null || :
+/bin/touch --no-create %{_datadir}/mime/packages &> /dev/null || :
+/usr/bin/update-mime-database %{_datadir}/mime &> /dev/null || :
+
+
+%postun
+/usr/bin/update-desktop-database &> /dev/null || :
+if [ $1 -eq 0 ] ; then
+ /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null
+ /bin/touch --no-create %{_datadir}/mime/packages &>/dev/null
+ /usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
+ /usr/bin/update-mime-database %{?fedora:-n} %{_datadir}/mime &> /dev/null || :
+fi
+
+%posttrans
+/usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
+/usr/bin/update-mime-database %{?fedora:-n} %{_datadir}/mime &> /dev/null || :
+
+%preun
+# Uninstall the printer
+if [ $1 = 0 ] ; then
+ lpadmin -x "Boomaga"
+fi
+
+
+%files -f %{name}.lang
+%doc README.md
+%license COPYING GPL LGPL
+%{_bindir}/%{name}
+
+%defattr(755,root,root,-)
+%{_cups_serverbin}/backend/%{name}
+%defattr(-,root,root,-)
+%{_cups_serverbin}/filter/boomaga_pstopdf
+
+%dir %{_libdir}/%{name}
+%{_libdir}/%{name}/boomagabackend
+%{_libdir}/%{name}/boomagamerger
+%{_datadir}/applications/%{name}.desktop
+%{_datadir}/dbus-1/services/org.%{name}.service
+
+%{_datadir}/icons/hicolor/*/apps/%{name}.png
+%{_datadir}/mime/packages/%{name}.xml
+
+%dir %{_datadir}/ppd/%{name}
+%{_datadir}/ppd/%{name}/%{name}.ppd
+
+%dir %{_datadir}/%{name}
+%dir %{_datadir}/%{name}/scripts
+%dir %{_datadir}/%{name}/translations/
+%{_datadir}/%{name}/scripts/installPrinter.sh
+%{_mandir}/man1/%{name}.1.gz
+
+%changelog
+* Thu Jan 28 2016 Martin Gansser <martinkg(a)fedoraproject.org> - 0.7.1-6.git9a6aa75
+- Dropped %%Patch0
+- Update to new git version
+
+* Thu Jan 28 2016 Martin Gansser <martinkg(a)fedoraproject.org> - 0.7.1-5.git2928eef
+- Dropped link for %%{_bindir}/boomagamerger
+- Added %%{name}-0.7.1-NONGUI_DIR.patch
+
+* Sat Jan 09 2016 Martin Gansser <martinkg(a)fedoraproject.org> - 0.7.1-4.git2928eef
+- used %%{_cups_serverbin} macro provided by cups-devel
+- Update to new git version
+
+* Sat Dec 26 2015 Martin Gansser <martinkg(a)fedoraproject.org> - 0.7.1-3.git8ca78b2
+- Follow https://fedoraproject.org/wiki/Packaging:SourceURL
+- corrected cups backend and filter directories
+- use if condition in %%preun script
+- linked missing %%{_bindir}/boomagamerger
+
+* Fri Dec 25 2015 Martin Gansser <martinkg(a)fedoraproject.org> - 0.7.1-2.git8ca78b2
+- Rebuilt for new git release
+
+* Tue Dec 22 2015 Martin Gansser <martinkg(a)fedoraproject.org> - 0.7.1-1.git8ca78b2
+- Initial version of the package
diff --git a/sources b/sources
index e69de29..a204f7d 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+402d6db2c6964d529436e75a8a1cb3f3 boomaga-9a6aa75.tar.gz
--
cgit v0.11.2
http://pkgs.fedoraproject.org/cgit/boomaga.git/commit/?h=master&id=f67fcfcf…