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
CC: (none) => oliver.bgrVersion: 2 => Cauldron
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
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
Thanks for look at it, i did some changes: http://svnweb.mageia.org/packages?view=revision&revision=412779
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
I updated the spec with the version 0.3.0: http://svnweb.mageia.org/packages?view=revision&revision=556717
CC: (none) => shlomifAssignee: bugsquad => dglent
Updated also the snappy to 1.1.1 http://svnweb.mageia.org/packages?view=revision&revision=556733 I will submit both the next days
Submitted, thanks very much for the help http://pkgsubmit.mageia.org/uploads/done/cauldron/core/release/20131215070033.dglent.valstar.24662
Status: NEW => RESOLVEDResolution: (none) => FIXED
*** Bug 15957 has been marked as a duplicate of this bug. ***
CC: (none) => pavelfric