This commit is contained in:
2015-07-04 15:28:51 +03:00
688 changed files with 59894 additions and 402 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")
+170
View File
@@ -0,0 +1,170 @@
<?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>cups-devel</Dependency>
<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>cups</Dependency>
<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":
+4 -3
View File
@@ -21,8 +21,8 @@
<Dependency>zlib-devel</Dependency>
<Dependency>libusb-devel</Dependency>
<Dependency>libgcc</Dependency>
<Dependency>avahi-devel</Dependency>
<Dependency>cups-filters</Dependency>
<!--<Dependency>avahi-devel</Dependency>--><!--not needed? -->
<!--<Dependency>cups-filters</Dependency>--><!--çember ? -->
<Dependency>mit-kerberos</Dependency>
<Dependency>libpaper-devel</Dependency>
</BuildDependencies>
@@ -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>
@@ -133,6 +133,7 @@
<Dependency>glibc-32bit</Dependency>
<Dependency>zlib-32bit</Dependency>
<Dependency>openssl-32bit</Dependency>
<Dependency>libgcc</Dependency>
<Dependency release="current">cups</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>
+10 -1
View File
@@ -14,10 +14,16 @@
<Summary>The Advanced Linux Sound Architecture (ALSA) library</Summary>
<Description>alsa-lib provides ALSA runtime libraries to simplify application programming and provide higher level functionality as well as support for the older OSS API, providing binary compatibility for most OSS programs.</Description>
<Archive sha1sum="9b81d20417170db2a91452bfe537d0893ef4df89" type="tarbz2">ftp://ftp.alsa-project.org/pub/lib/alsa-lib-1.0.29.tar.bz2</Archive>
<BuildDependencies>
<Dependency>python-devel</Dependency>
</BuildDependencies>
</Source>
<Package>
<Name>alsa-lib</Name>
<RuntimeDependencies>
<Dependency>python</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="library">/usr/lib</Path>
<Path fileType="executable">/usr/bin</Path>
@@ -47,8 +53,11 @@
<PartOf>emul32</PartOf>
<Summary>32-bit shared libraries for alsa-lib</Summary>
<BuildType>emul32</BuildType>
<BuildDependencies>
<Dependency>glibc-32bit</Dependency>
</BuildDependencies>
<RuntimeDependencies>
<Dependency release="current">alsa-lib</Dependency>
<Dependency>glibc-32bit</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="library">/usr/lib32</Path>