works por deps fixed...

This commit is contained in:
Ertuğrul Erata
2015-06-20 22:07:39 +03:00
parent e5bb900715
commit 35cada22bf
102 changed files with 5695 additions and 10 deletions
+32
View File
@@ -0,0 +1,32 @@
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt
from pisi.actionsapi import get
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
def setup():
pisitools.dosed("configure", "localstatedir/run/cups", "localstatedir/cups")
autotools.configure("--prefix=/usr \
--sysconfdir=/etc \
--sbindir=/usr/bin \
--with-rcdir=no \
--localstatedir=/run \
--with-browseremoteprotocols=DNSSD,CUPS \
--with-test-font-path=/usr/share/fonts/dejavu/DejaVuSans.ttf")
pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
def build():
autotools.make()
def check():
autotools.make("check")
def install():
autotools.rawInstall("DESTDIR=%s" % get.installDIR())
pisitools.dodoc("AUTHORS", "ChangeLog", "COPYING", "README")
+168
View File
@@ -0,0 +1,168 @@
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pardus.org.tr/projeler/pisi/pisi-spec.dtd">
<PISI>
<Source>
<Name>cups-filters</Name>
<Homepage>http://www.openprinting.org</Homepage>
<Packager>
<Name>Marcin Bojara</Name>
<Email>marcin@pisilinux.org</Email>
</Packager>
<License>GPLv2</License>
<License>GPLv3</License>
<License>GPLv2+</License>
<License>GPLv3+</License>
<License>LGPLv2+</License>
<License>MIT</License>
<IsA>data</IsA>
<IsA>library</IsA>
<IsA>app:console</IsA>
<Summary>OpenPrinting CUPS filters and backends</Summary>
<Description>Contains backends, filters, and other software that was once part of the core CUPS distribution but is no longer maintained by Apple Inc. In addition it contains additional filters developed independently of Apple, especially filters for the PDF-centric printing workflow introduced by OpenPrinting.</Description>
<Archive sha1sum="ddd0386be361f72ad2e8f7851753dc89016ff7be" type="tarxz">http://www.openprinting.org/download/cups-filters/cups-filters-1.0.66.tar.xz</Archive>
<BuildDependencies>
<Dependency>tiff-devel</Dependency>
<Dependency>ghostscript</Dependency>
<Dependency>lcms2-devel</Dependency>
<Dependency>gnutls-devel</Dependency>
<Dependency>mit-kerberos</Dependency>
<Dependency>fontconfig-devel</Dependency>
<Dependency>libjpeg-turbo-devel</Dependency>
<Dependency versionFrom="5.1.2">qpdf-devel</Dependency>
<Dependency releaseFrom="6">ghostscript-devel</Dependency>
<Dependency versionFrom="0.31.0">poppler-devel</Dependency>
</BuildDependencies>
</Source>
<Package>
<Name>cups-filters</Name>
<RuntimeDependencies>
<Dependency>tiff</Dependency>
<Dependency>lcms2</Dependency>
<Dependency>gnutls</Dependency>
<Dependency>fontconfig</Dependency>
<Dependency>foomatic-db</Dependency>
<Dependency>mit-kerberos</Dependency>
<Dependency>libjpeg-turbo</Dependency>
<Dependency versionFrom="5.1.2">qpdf</Dependency>
<Dependency releaseFrom="6">ghostscript</Dependency>
<Dependency versionFrom="0.31.0">poppler</Dependency>
</RuntimeDependencies>
<Conflicts>
<Package releaseTo="4">cups</Package>
<Package>foomatic-filters</Package>
</Conflicts>
<Replaces>
<Package>foomatic-filters</Package>
</Replaces>
<Files>
<Path fileType="library">/usr/lib</Path>
<Path fileType="man">/usr/share/man</Path>
<Path fileType="doc">/usr/share/doc</Path>
<Path fileType="data">/usr/share/ppd</Path>
<Path fileType="executable">/usr/bin</Path>
<Path fileType="data">/usr/share/cups</Path>
<Path fileType="config">/etc/cups/cups-browsed.conf</Path>
<Path fileType="config">/etc/fonts/conf.d/99pdftoopvp.conf</Path>
</Files>
</Package>
<Package>
<Name>cups-filters-devel</Name>
<Summary>Cups-filters için geliştirme dosyaları</Summary>
<RuntimeDependencies>
<Dependency release="current">cups-filters</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="header">/usr/include</Path>
<Path fileType="library">/usr/lib/pkgconfig</Path>
</Files>
</Package>
<History>
<Update release="12">
<Date>2015-03-08</Date>
<Version>1.0.66</Version>
<Comment>Version bump.</Comment>
<Name>Ertuğrul Erata</Name>
<Email>ertugrulerata@gmail.com</Email>
</Update>
<Update release="11">
<Date>2015-02-15</Date>
<Version>1.0.65</Version>
<Comment>Version bump.</Comment>
<Name>Hakan Yıldız</Name>
<Email>hknyldz93@gmail.com</Email>
</Update>
<Update release="10">
<Date>2014-09-25</Date>
<Version>1.0.58</Version>
<Comment>Verison bump.</Comment>
<Name>Serdar Soytetir</Name>
<Email>kaptan@pisilinux.org</Email>
</Update>
<Update release="9">
<Date>2014-05-17</Date>
<Version>1.0.53</Version>
<Comment>Verison bump.</Comment>
<Name>Alihan Öztürk</Name>
<Email>alihan@pisilinux.org</Email>
</Update>
<Update release="8">
<Date>2014-02-05</Date>
<Version>1.0.44</Version>
<Comment>Rebuild to replace foomatic-filters.</Comment>
<Name>Yusuf Aydemir</Name>
<Email>yusuf.aydemir@pisilinux.org</Email>
</Update>
<Update release="7">
<Date>2014-01-28</Date>
<Version>1.0.44</Version>
<Comment>rebuild for unused and runtime dep.</Comment>
<Name>Yusuf Aydemir</Name>
<Email>yusuf.aydemir@pisilinux.org</Email>
</Update>
<Update release="6">
<Date>2014-01-18</Date>
<Version>1.0.44</Version>
<Comment>Version bump.</Comment>
<Name>Yusuf Aydemir</Name>
<Email>yusuf.aydemir@pisilinux.org</Email>
</Update>
<Update release="5">
<Date>2013-11-02</Date>
<Version>1.0.41</Version>
<Comment>Version bump.</Comment>
<Name>Yusuf Aydemir</Name>
<Email>yusuf.aydemir@pisilinux.org</Email>
</Update>
<Update release="4">
<Date>2013-10-16</Date>
<Version>1.0.40</Version>
<Comment>Version bump.</Comment>
<Name>Yusuf Aydemir</Name>
<Email>yusuf.aydemir@pisilinux.org</Email>
</Update>
<Update release="3">
<Date>2013-10-10</Date>
<Version>1.0.39</Version>
<Comment>Cersion bump,rebuil for new poppler.</Comment>
<Name>Serdar Soytetir</Name>
<Email>kaptan@pisilinux.org</Email>
</Update>
<Update release="2">
<Date>2013-07-28</Date>
<Version>1.0.35</Version>
<Comment>Dep Fixed</Comment>
<Name>PisiLinux Community</Name>
<Email>admins@pisilinux.org</Email>
</Update>
<Update release="1">
<Date>2013-07-01</Date>
<Version>1.0.35</Version>
<Comment>First release.</Comment>
<Name>Marcin Bojara</Name>
<Email>marcin@pisilinux.org</Email>
</Update>
</History>
</PISI>
@@ -0,0 +1,14 @@
<?xml version="1.0" ?>
<PISI>
<Source>
<Name>cups-filters</Name>
<Summary xml:lang="en">OpenPrinting CUPS filters and backends</Summary>
<Description xml:lang="en">Contains backends, filters, and other software that was once part of the core CUPS distribution but is no longer maintained by Apple Inc. In addition it contains additional filters developed independently of Apple, especially filters for the PDF-centric printing workflow introduced by OpenPrinting.</Description>
</Source>
<Package>
<Name>cups-filters-devel</Name>
<Summary xml:lang="tr">Cups-filters için geliştirme dosyaları</Summary>
<Summary xml:lang="en">Development files for cups-filters</Summary>
</Package>
</PISI>
-2
View File
@@ -32,7 +32,6 @@ def setup():
--enable-libpaper \
--enable-libusb=yes \
--enable-debug \
--enable-avahi \
--enable-gssapi \
--enable-dbus \
--enable-pam=yes \
@@ -56,7 +55,6 @@ def setup():
if get.buildTYPE() == "emul32":
options += ' \
--enable-libusb=no \
--disable-avahi \
--disable-dnssd \
--disable-gssapi \
--disable-dbus \
+1 -1
View File
@@ -12,7 +12,7 @@ PIDFILE = "/run/cups/cupsd.pid"
@synchronized
def start():
# FIXME: After avahi before hal
startDependencies("avahi")
# startDependencies("avahi")
# Load ppdev and lp drivers if wanted
if config.get("LOAD_LP_MODULE") == "yes":
+2 -2
View File
@@ -21,7 +21,7 @@
<Dependency>zlib-devel</Dependency>
<Dependency>libusb-devel</Dependency>
<Dependency>libgcc</Dependency>
<Dependency>avahi-devel</Dependency>
<!--<Dependency>avahi-devel</Dependency>--><!--not needed? -->
<Dependency>cups-filters</Dependency>
<Dependency>mit-kerberos</Dependency>
<Dependency>libpaper-devel</Dependency>
@@ -69,7 +69,7 @@
<Dependency>libusb</Dependency>
<Dependency>libgcc</Dependency>
<Dependency>libpaper</Dependency>
<Dependency>avahi-libs</Dependency>
<!--<Dependency>avahi-libs</Dependency>-->
<Dependency>mit-kerberos</Dependency>
</RuntimeDependencies>
<Files>
+27
View File
@@ -0,0 +1,27 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt
from pisi.actionsapi import shelltools
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
def setup():
autotools.configure('--disable-static')
# Disable rpath
pisitools.dosed("libtool", "^hardcode_libdir_flag_spec=.*", "hardcode_libdir_flag_spec=\"\"")
pisitools.dosed("libtool", "^runpath_var=LD_RUN_PATH", "runpath_var=DIE_RPATH_DIE")
def build():
autotools.make()
def install():
autotools.install()
for lang in shelltools.ls("debian/po/*.po"):
pisitools.domo(lang, shelltools.baseName(lang).replace(".po", ""), "libpaper.mo")
pisitools.dodoc("README", "ChangeLog")
@@ -0,0 +1,12 @@
diff -up libpaper-1.1.23+nmu1/lib/paperspecs.BAD libpaper-1.1.23+nmu1/lib/paperspecs
--- libpaper-1.1.23+nmu1/lib/paperspecs.BAD 2008-08-22 16:49:16.000000000 -0400
+++ libpaper-1.1.23+nmu1/lib/paperspecs 2008-08-22 16:49:25.000000000 -0400
@@ -40,7 +40,7 @@ c5 162 229 mm
c6 114 162 mm
c7 81 114 mm
c8 57 81 mm
-DL 312 624
+DL 110 220 mm
Comm10 297 684
Monarch 279 540
archE 2592 3456
@@ -0,0 +1,80 @@
diff -ru libpaper-1.1.23.orig/lib/paper.c libpaper-1.1.23/lib/paper.c
--- libpaper-1.1.23.orig/lib/paper.c 2008-08-12 13:20:48.000000000 +0100
+++ libpaper-1.1.23/lib/paper.c 2008-08-12 14:26:44.000000000 +0100
@@ -22,6 +22,9 @@
#include <stdlib.h>
+#include <locale.h>
+#include <langinfo.h>
+
#include "paper.h"
struct paper {
@@ -110,6 +113,27 @@
}
const char* defaultpapername(void) {
+#if defined(LC_PAPER) && defined(_GNU_SOURCE)
+
+#define NL_PAPER_GET(x) \
+ ((union { char *string; unsigned int word; })nl_langinfo(x)).word
+
+#define PT_TO_MM(v) (unsigned int)((v * 2.54 * 10 / 72) + 0.5)
+
+ const struct paper* pp;
+
+ unsigned int w = NL_PAPER_GET(_NL_PAPER_WIDTH);
+ unsigned int h = NL_PAPER_GET(_NL_PAPER_HEIGHT);
+
+ for (pp = paperfirst(); pp; pp = papernext(pp)) {
+ if (
+ PT_TO_MM(pp->pswidth) == w &&
+ PT_TO_MM(pp->psheight) == h
+ ) {
+ return pp->name;
+ }
+ }
+#endif
return PAPERSIZE;
}
diff -ru libpaper-1.1.23.orig/man/paperconf.1.in libpaper-1.1.23/man/paperconf.1.in
--- libpaper-1.1.23.orig/man/paperconf.1.in 2008-08-12 13:20:48.000000000 +0100
+++ libpaper-1.1.23/man/paperconf.1.in 2008-08-12 14:34:06.000000000 +0100
@@ -48,10 +48,12 @@
.B @PAPERSIZEVAR@
environment variable, at the contents of the file specified by the
.B @PAPERCONFVAR@
-environment variable, at the contects of
+environment variable, at the contents of the file
.B @PAPERCONF@
-or by using
-.B letter
+, consulting the values controlled by the
+.B LC_PAPER
+locale setting, or by using
+.B @PAPERSIZE@
as a fall-back value if none of the other alternatives are successful.
By default, width and height of the paper are printed in PostScript points.
.SH OPTIONS
diff -ru libpaper-1.1.23.orig/src/paperconf.c libpaper-1.1.23/src/paperconf.c
--- libpaper-1.1.23.orig/src/paperconf.c 2008-08-12 13:20:48.000000000 +0100
+++ libpaper-1.1.23/src/paperconf.c 2008-08-12 14:13:33.000000000 +0100
@@ -13,6 +13,7 @@
#include <errno.h>
#include <paper.h>
+#include <locale.h>
/* needed for GNU/Hurd */
@@ -99,6 +100,8 @@
const char* progname;
+ setlocale(LC_ALL, "");
+
progname = strrchr(*argv, '/');
if (progname) {
++progname;
@@ -0,0 +1,2 @@
# this is the default papersize for libpaper
a4
+66
View File
@@ -0,0 +1,66 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
<Source>
<Name>libpaper</Name>
<Homepage>http://packages.debian.org/unstable/source/libpaper</Homepage>
<Packager>
<Name>PisiLinux Community</Name>
<Email>admins@pisilinux.org</Email>
</Packager>
<License>GPLv2</License>
<IsA>library</IsA>
<Summary>Library for handling paper characteristics</Summary>
<Description>Libpaper is a programming library for handling paper characteristics.</Description>
<Archive sha1sum="6927f75d126373d32d89751d2a7fe3e99cc9b4a1" type="targz">http://ftp.debian.org/debian/pool/main/libp/libpaper/libpaper_1.1.24.tar.gz</Archive>
<Patches>
<Patch level="1">libpaper-1.1.23-debianbug475683.patch</Patch>
<Patch level="1">libpaper-useglibcfallback.patch</Patch>
</Patches>
</Source>
<Package>
<Name>libpaper</Name>
<Files>
<Path fileType="executable">/usr/bin</Path>
<Path fileType="executable">/usr/sbin</Path>
<Path fileType="library">/usr/lib</Path>
<Path fileType="config">/etc/</Path>
<Path fileType="man">/usr/share/man</Path>
<Path fileType="doc">/usr/share/doc</Path>
<Path fileType="localedata">/usr/share/locale</Path>
</Files>
<AdditionalFiles>
<AdditionalFile owner="root" permission="0644" target="/etc/papersize">papersize</AdditionalFile>
</AdditionalFiles>
</Package>
<Package>
<Name>libpaper-devel</Name>
<Summary>Development files for libpaper</Summary>
<RuntimeDependencies>
<Dependency release="current">libpaper</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="header">/usr/include</Path>
<Path fileType="man">/usr/share/man/man3</Path>
</Files>
</Package>
<History>
<Update release="2">
<Date>2014-05-21</Date>
<Version>1.1.24</Version>
<Comment>rebuild</Comment>
<Name>Kamil Atlı</Name>
<Email>suvarice@gmail.com</Email>
</Update>
<Update release="1">
<Date>2010-10-13</Date>
<Version>1.1.24</Version>
<Comment>First release</Comment>
<Name>Pisi Linux Admins</Name>
<Email>admins@pisilinux.org</Email>
</Update>
</History>
</PISI>
@@ -0,0 +1,14 @@
<?xml version="1.0" ?>
<PISI>
<Source>
<Name>libpaper</Name>
<Summary xml:lang="tr">Kağıt özelliklerini düzenlemek için kitaplık</Summary>
<Description xml:lang="tr">libpaper, kağıt özelliklerini düzenlemek için bir programlama kitaplığıdır.</Description>
<Description xml:lang="es">Libpaper es una librería de programación para manejar características de papel.</Description>
</Source>
<Package>
<Name>libpaper-devel</Name>
<Summary xml:lang="tr">libpaper için geliştirme dosyaları</Summary>
</Package>
</PISI>