Bug 9725 - Add new rpm of Boomaga (a virtual printer) which depends on snappy
Summary: Add new rpm of Boomaga (a virtual printer) which depends on snappy
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: New RPM package request (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Dimitrios Glentadakis
QA Contact:
URL:
Whiteboard:
Keywords:
: 15957 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-04-14 13:20 CEST by Dimitrios Glentadakis
Modified: 2015-05-16 10:30 CEST (History)
5 users (show)

See Also:
Source RPM:
CVE:
Status comment:


Attachments
Spec file of Boomaga (2.05 KB, text/x-rpm-spec)
2013-04-14 13:20 CEST, Dimitrios Glentadakis
Details

Description Dimitrios Glentadakis 2013-04-14 13:20:56 CEST
Created attachment 3740 [details]
Spec file of Boomaga

Boomaga is a virtual printer for viewing documents
http://kde-apps.org/content/show.php?content=156796

Description of the program:
"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.
 
 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."

It is a qt based program
To compile it needs the snappy compression/decompression library which we don't have in Mageia 2.

I have prepared a rpm:
http://www.mageia-gr.org/rpm/2/SRPMS/boomaga-0.1.0-1mgr2.src.rpm

I used the snappy from fedora:
http://www.mageia-gr.org/rpm/2/SRPMS/snappy-1.1.0-1mgr2.src.rpm
Dimitrios Glentadakis 2013-04-14 13:22:33 CEST

CC: (none) => oliver.bgr
Version: 2 => Cauldron

Comment 1 Dimitrios Glentadakis 2013-04-17 16:53:12 CEST
Import boomaga
http://svnweb.mageia.org/packages/cauldron/boomaga/current/?view=log

Import snappy
http://svnweb.mageia.org/packages/cauldron/snappy/current/?view=log

The snappy spec file i took it directly from fedora.
Oliver or anyelse, could you please have an eye too to see if it fits the mageia package policy too ?

Thanks
Comment 2 Jani Välimaa 2013-05-09 09:41:50 CEST
Looked at snappy a bit and biggest problem is currently it doesn't follow our library policy [1]. This is pretty normal "problem" when importing pkgs with libraries from Fedora.

There're also other minor things needing some cleaning. At least these:
1) unneeded %post and %postun
2) macro available for 'make' and 'make install'
3) normally we should use %configure2_5x macro instead of %configure
4) groups doesn't fit to our group policy

[1] https://wiki.mageia.org/en/Libraries_policy

CC: (none) => jani.valimaa

Comment 3 Dimitrios Glentadakis 2013-05-09 15:03:07 CEST
Thanks for look at it, i did some changes:
http://svnweb.mageia.org/packages?view=revision&revision=412779
Comment 4 Funda Wang 2013-09-02 07:46:40 CEST
For snappy, theoretically speaking, src.rpm is a noarch package, so we tend to not use %{_lib}gtest-devel as buildrequires. Instead, we use its virtual provides gtest-devel as buildrequires.

As for the devel sub package, as the %{_libdir}/libsnappy.so is a symlink to %{_libdir}/libsnappy.so.%{major}, only 'Requires: %{name}' is not so enough. Because libsnappy1 will also satisfy it in an 64-bit environment, where is should be lib64snappy1. So I would suggest that the Requires become %{libname}.

Regarding boomaga, the only problem is that there are postun scriptlet to run. I guess the virtual printer should be deleted before the package being removed rather than after. So, the scriptlet should be preun. If i'm wrong, please correct me. Another problem is, `lpadmin` belongs to cups-common package, so there should be a "Requires(preun): cups-common" in the spec file, so that cups-common will not be removed before boomaga. If there are other requirements in installPrinter.sh, those should be put into Requires(post).

CC: (none) => fundawang

Comment 5 Dimitrios Glentadakis 2013-12-14 07:28:52 CET
I updated the spec with the version 0.3.0:
http://svnweb.mageia.org/packages?view=revision&revision=556717

CC: (none) => shlomif
Assignee: bugsquad => dglent

Comment 6 Dimitrios Glentadakis 2013-12-14 07:41:14 CET
Updated also the snappy to 1.1.1
http://svnweb.mageia.org/packages?view=revision&revision=556733

I will submit both the next days
Comment 7 Dimitrios Glentadakis 2013-12-15 09:04:02 CET
Submitted, thanks very much for the help
http://pkgsubmit.mageia.org/uploads/done/cauldron/core/release/20131215070033.dglent.valstar.24662

Status: NEW => RESOLVED
Resolution: (none) => FIXED

Comment 8 Rémi Verschelde 2015-05-16 10:30:39 CEST
*** Bug 15957 has been marked as a duplicate of this bug. ***

CC: (none) => pavelfric


Note You need to log in before you can comment on or make changes to this bug.