upgpkg: thumbor 7.7.4-2
drop socketfromfd dep
This commit is contained in:
@@ -1,14 +1,19 @@
|
|||||||
pkgbase = thumbor
|
pkgbase = thumbor
|
||||||
pkgdesc = open-source photo thumbnail service
|
pkgdesc = open-source photo thumbnail service
|
||||||
pkgver = 7.7.4
|
pkgver = 7.7.4
|
||||||
pkgrel = 1
|
pkgrel = 2
|
||||||
url = https://github.com/thumbor/thumbor
|
url = https://github.com/thumbor/thumbor
|
||||||
arch = x86_64
|
arch = x86_64
|
||||||
license = MIT
|
license = MIT
|
||||||
checkdepends = python-pytest
|
checkdepends = python-pytest
|
||||||
checkdepends = python-preggy
|
checkdepends = python-preggy
|
||||||
checkdepends = python-pyssim
|
checkdepends = python-pyssim
|
||||||
|
checkdepends = python-pytz
|
||||||
|
checkdepends = python-sentry_sdk
|
||||||
|
checkdepends = python-redis
|
||||||
|
checkdepends = python-pytest-asyncio
|
||||||
makedepends = python-setuptools
|
makedepends = python-setuptools
|
||||||
|
depends = glibc
|
||||||
depends = python
|
depends = python
|
||||||
depends = python-colorama
|
depends = python-colorama
|
||||||
depends = python-pycurl
|
depends = python-pycurl
|
||||||
@@ -18,13 +23,16 @@ pkgbase = thumbor
|
|||||||
depends = gifsicle
|
depends = gifsicle
|
||||||
depends = python-libthumbor
|
depends = python-libthumbor
|
||||||
depends = python-derpconf
|
depends = python-derpconf
|
||||||
depends = python-socketfromfd
|
|
||||||
depends = python-piexif
|
depends = python-piexif
|
||||||
depends = python-jpegiptc
|
depends = python-jpegiptc
|
||||||
|
depends = python-pillow
|
||||||
|
depends = python-numpy
|
||||||
backup = etc/thumbor.conf
|
backup = etc/thumbor.conf
|
||||||
source = thumbor-7.7.4.tar.gz::https://github.com/thumbor/thumbor/archive/7.7.4.tar.gz
|
source = thumbor-7.7.4.tar.gz::https://github.com/thumbor/thumbor/archive/7.7.4.tar.gz
|
||||||
source = thumbor.service
|
source = thumbor.service
|
||||||
|
source = arch-config.patch
|
||||||
b2sums = 5c663f37888bdd9d9002eb3f6b8f7fffb8593b138058174887fef0bd1883a14fa1455ba28b9c4e2814171e7aeb0f946c14fb01283fc1fdcbe174d48ba7a37279
|
b2sums = 5c663f37888bdd9d9002eb3f6b8f7fffb8593b138058174887fef0bd1883a14fa1455ba28b9c4e2814171e7aeb0f946c14fb01283fc1fdcbe174d48ba7a37279
|
||||||
b2sums = 9f5b837710e47654d522c5791cb5c6e01d6452093837a0c57b7158cbc8be6a7a3b5380efe2e975d6396bc1fd23a5f922f6ede9aa921142fd004ff48381f58db3
|
b2sums = 9f5b837710e47654d522c5791cb5c6e01d6452093837a0c57b7158cbc8be6a7a3b5380efe2e975d6396bc1fd23a5f922f6ede9aa921142fd004ff48381f58db3
|
||||||
|
b2sums = 7f84c5e210b21af45b1162fdc80e7016dca8b3c92a4d3ac303f3e35aa6405a476dab26af3840e6cd20e492e814c23380a9838035934adb352c91fcab2fb992ba
|
||||||
|
|
||||||
pkgname = thumbor
|
pkgname = thumbor
|
||||||
|
@@ -2,12 +2,13 @@
|
|||||||
|
|
||||||
pkgname=thumbor
|
pkgname=thumbor
|
||||||
pkgver=7.7.4
|
pkgver=7.7.4
|
||||||
pkgrel=1
|
pkgrel=2
|
||||||
pkgdesc='open-source photo thumbnail service'
|
pkgdesc='open-source photo thumbnail service'
|
||||||
arch=(x86_64)
|
arch=(x86_64)
|
||||||
url='https://github.com/thumbor/thumbor'
|
url='https://github.com/thumbor/thumbor'
|
||||||
license=(MIT)
|
license=(MIT)
|
||||||
depends=(
|
depends=(
|
||||||
|
glibc
|
||||||
python
|
python
|
||||||
python-colorama
|
python-colorama
|
||||||
python-pycurl
|
python-pycurl
|
||||||
@@ -17,36 +18,44 @@ depends=(
|
|||||||
gifsicle
|
gifsicle
|
||||||
python-libthumbor
|
python-libthumbor
|
||||||
python-derpconf
|
python-derpconf
|
||||||
python-socketfromfd
|
|
||||||
python-piexif
|
python-piexif
|
||||||
python-jpegiptc
|
python-jpegiptc
|
||||||
|
python-pillow
|
||||||
|
python-numpy
|
||||||
)
|
)
|
||||||
makedepends=(python-setuptools)
|
makedepends=(python-setuptools)
|
||||||
checkdepends=(python-pytest python-preggy python-pyssim)
|
checkdepends=(python-pytest python-preggy python-pyssim python-pytz python-sentry_sdk python-redis python-pytest-asyncio)
|
||||||
backup=('etc/thumbor.conf')
|
backup=('etc/thumbor.conf')
|
||||||
source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz"
|
source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz"
|
||||||
'thumbor.service')
|
'thumbor.service'
|
||||||
|
'arch-config.patch')
|
||||||
b2sums=('5c663f37888bdd9d9002eb3f6b8f7fffb8593b138058174887fef0bd1883a14fa1455ba28b9c4e2814171e7aeb0f946c14fb01283fc1fdcbe174d48ba7a37279'
|
b2sums=('5c663f37888bdd9d9002eb3f6b8f7fffb8593b138058174887fef0bd1883a14fa1455ba28b9c4e2814171e7aeb0f946c14fb01283fc1fdcbe174d48ba7a37279'
|
||||||
'9f5b837710e47654d522c5791cb5c6e01d6452093837a0c57b7158cbc8be6a7a3b5380efe2e975d6396bc1fd23a5f922f6ede9aa921142fd004ff48381f58db3')
|
'9f5b837710e47654d522c5791cb5c6e01d6452093837a0c57b7158cbc8be6a7a3b5380efe2e975d6396bc1fd23a5f922f6ede9aa921142fd004ff48381f58db3'
|
||||||
|
'7f84c5e210b21af45b1162fdc80e7016dca8b3c92a4d3ac303f3e35aa6405a476dab26af3840e6cd20e492e814c23380a9838035934adb352c91fcab2fb992ba')
|
||||||
|
|
||||||
prepare() {
|
prepare() {
|
||||||
cd $pkgname-$pkgver
|
cd $pkgname-$pkgver
|
||||||
|
|
||||||
# adjust storage/cache paths to match systemd service
|
# adjust storage/cache paths to match systemd service
|
||||||
sed -e "s|FILE_STORAGE_ROOT_PATH = join(home, 'thumbor', 'storage' )|FILE_STORAGE_ROOT_PATH = '/var/lib/thumbor'|" \
|
patch -p1 < ../arch-config.patch
|
||||||
-e "s|RESULT_STORAGE_FILE_STORAGE_ROOT_PATH = join(home, 'thumbor', 'result_storage')|RESULT_STORAGE_FILE_STORAGE_ROOT_PATH = '/var/cache/thumbor'|" \
|
|
||||||
-i $pkgname/$pkgname.conf
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# skip tests for now, they are utterly broken and require sentry.io sdk
|
# tests are disabled for now
|
||||||
|
# many of them are failing or require whole new dependency chains
|
||||||
#check(){
|
#check(){
|
||||||
# cd "$pkgname-$pkgver"
|
# cd $pkgname-$pkgver
|
||||||
# pytest
|
# pytest -vvs \
|
||||||
|
# --ignore=tests/detectors/test_queued_detector.py \
|
||||||
|
# --ignore=tests/optimizers/test_gifv.py \
|
||||||
|
# --ignore=tests/handlers/test_base_handler_with_gifv.py \
|
||||||
|
# --ignore=tests/metrics/test_statsd_metrics.py \
|
||||||
|
# --ignore=tests/handlers/test_base_handler_with_result_storage.py
|
||||||
|
# --deselect integration_tests/pil_test.py::PILTest::test_single_params
|
||||||
#}
|
#}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd $pkgname-$pkgver
|
cd $pkgname-$pkgver
|
||||||
python setup.py build
|
python setup.py build_ext -i
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
|
21
thumbor/arch-config.patch
Normal file
21
thumbor/arch-config.patch
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
diff --git a/thumbor/thumbor.conf b/thumbor/thumbor.conf
|
||||||
|
index 24a9986..ee7d5cc 100644
|
||||||
|
--- a/thumbor/thumbor.conf
|
||||||
|
+++ b/thumbor/thumbor.conf
|
||||||
|
@@ -114,14 +114,14 @@ STORAGE = "thumbor.storages.file_storage"
|
||||||
|
# STORAGE = "thumbor.compatibility.storage"
|
||||||
|
|
||||||
|
## root path of the file storage
|
||||||
|
-FILE_STORAGE_ROOT_PATH = join(home, "thumbor", "storage")
|
||||||
|
+FILE_STORAGE_ROOT_PATH = "/var/lib/thumbor"
|
||||||
|
|
||||||
|
## If you want to cache results, use this options to specify how to cache it
|
||||||
|
## Set Expiration seconds to ZERO if you want them not to expire.
|
||||||
|
RESULT_STORAGE = "thumbor.result_storages.file_storage"
|
||||||
|
# RESULT_STORAGE = "thumbor.compatibility.result_storage"
|
||||||
|
RESULT_STORAGE_EXPIRATION_SECONDS = 60 * 60 * 24 # one day
|
||||||
|
-RESULT_STORAGE_FILE_STORAGE_ROOT_PATH = join(home, "thumbor", "result_storage")
|
||||||
|
+RESULT_STORAGE_FILE_STORAGE_ROOT_PATH = "/var/cache/thumbor"
|
||||||
|
|
||||||
|
RESULT_STORAGE_STORES_UNSAFE = False
|
||||||
|
|
Reference in New Issue
Block a user