From 6a78d03208869b7f2c192092e4e7b089d5b36632 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 1 Nov 2017 08:58:38 +0100 Subject: New package --- .gitignore | 8 +++ Makefile | 4 ++ composer.json | 24 +++++++++ php-icewind-searchdav.spec | 118 +++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 154 insertions(+) create mode 100644 .gitignore create mode 100644 Makefile create mode 100644 composer.json create mode 100644 php-icewind-searchdav.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..fc9aa8c --- /dev/null +++ b/.gitignore @@ -0,0 +1,8 @@ +clog +package-*.xml +*.tgz +*.tar.gz +*.tar.xz +*.tar.xz.asc +*.src.rpm +*/*rpm diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..13af741 --- /dev/null +++ b/Makefile @@ -0,0 +1,4 @@ +SRCDIR := $(shell pwd) +NAME := $(shell basename $(SRCDIR)) +include ../../../common/Makefile + diff --git a/composer.json b/composer.json new file mode 100644 index 0000000..2d5da56 --- /dev/null +++ b/composer.json @@ -0,0 +1,24 @@ +{ + "name": "icewind/searchdav", + "description": "sabre/dav plugin to implement rfc5323 SEARCH", + "license": "AGPL", + "authors": [ + { + "name": "Robin Appelman", + "email": "robin@icewind.nl" + } + ], + "require": { + "php": ">=5.6", + "sabre/dav": "^3.2.0" + }, + "require-dev": { + "phpunit/phpunit": "^4.8" + }, + "autoload": { + "psr-4": { + "SearchDAV\\": "src/", + "SearchDAV\\Test\\": "tests/" + } + } +} diff --git a/php-icewind-searchdav.spec b/php-icewind-searchdav.spec new file mode 100644 index 0000000..c1d3a5d --- /dev/null +++ b/php-icewind-searchdav.spec @@ -0,0 +1,118 @@ +# remirepo/fedora spec file for php-icewind-searchdav +# +# Copyright (c) 2017 Remi Collet +# License: CC-BY-SA +# http://creativecommons.org/licenses/by-sa/4.0/ +# +# Please, preserve the changelog entries +# +# Github information +%global gh_commit 3071937c64a5e45d23c2600e5524538694e03042 +%global gh_short %(c=%{gh_commit}; echo ${c:0:7}) +%global gh_owner icewind1991 +%global gh_project SearchDAV +# Packagist information +%global pk_vendor icewind +%global pk_name searchdav +# Namespace information (vendor added to make a better tree) +%global ns_vendor Icewind +%global ns_name SearchDAV + +Name: php-%{pk_vendor}-%{pk_name} +Version: 0.3.1 +Release: 1%{?dist} +Summary: A sabre/dav plugin to implement rfc5323 SEARCH + +Group: Development/Libraries +License: AGPL +URL: https://github.com/%{gh_owner}/%{gh_project} +Source0: %{url}/archive/%{gh_commit}/%{name}-%{version}-%{gh_short}.tar.gz + +BuildArch: noarch +# For tests +BuildRequires: php(language) >= 5.6 +BuildRequires: php-composer(sabre/dav) < 4 +BuildRequires: php-composer(sabre/dav) >= 3.2 +# From composer.json, "require-dev": { +# "phpunit/phpunit": "^4.8" +BuildRequires: php-composer(phpunit/phpunit) >= 4.8 +# Autoloader +BuildRequires: php-composer(fedora/autoloader) + +# From composer.json, "require": { +# "php": ">=5.6", +# "sabre/dav": "^3.2.0" +Requires: php(language) >= 5.6 +Requires: php-composer(sabre/dav) < 4 +Requires: php-composer(sabre/dav) >= 3.2 +# From phpcompatinfo report for version 0.3.1 +Requires: php-spl +# Autoloader +Requires: php-composer(fedora/autoloader) + +Provides: php-composer(%{pk_vendor}/%{pk_name}) = %{version} + + +%description +A sabre/dav plugin to implement rfc5323 SEARCH. + +See: https://tools.ietf.org/search/rfc5323 + +Autoloader: '%{_datadir}/php/%{ns_vendor}/%{ns_name}/autoload.php'; + + +%prep +%setup -q -n %{gh_project}-%{gh_commit} + +cat << 'EOF' | tee src/autoload.php + - 0.3.1-1 +- initial package, version 0.3.1 +- open https://github.com/icewind1991/SearchDAV/issues/2 - LICENSE -- cgit