-
Notifications
You must be signed in to change notification settings - Fork 468
/
libphonenumber-for-php.spec
45 lines (36 loc) · 1.37 KB
/
libphonenumber-for-php.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Define version and release number
%define version @PACKAGE_VERSION@
%define release 1
%define php_version 53
Name: libphonenumber-for-php
Version: %{version}
Release: %{release}.php%{php_version}%{?dist}
Summary: libphonenumber for PHP
# See https://github.com/giggsey/libphonenumber-for-php/blob/master/LICENSE
License: Apache 2.0
Group: Development/Libraries
URL: https://github.com/giggsey/libphonenumber-for-php
# Get the source files from https://github.com/giggsey/libphonenumber-for-php/tags
Source: %{name}-%{version}.tar.gz
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root
%description
A PHP library for parsing, formatting, storing and validating international phone numbers.
This library is based on Google's libphonenumber and forked from a version by Davide Mendolia.
%prep
%setup -q
%build
# Clean the buildroot so that it does not contain any stuff from previous builds
[ "%{buildroot}" != "/" ] && %{__rm} -rf %{buildroot}
# Install the extension
install -d %{buildroot}
# Prepare files
mkdir -p %{buildroot}/usr/share/php
cp -a src/libphonenumber/ %{buildroot}/usr/share/php
%clean
[ "%{buildroot}" != "/" ] && %{__rm} -rf %{buildroot}
%files
%defattr(-,root,root,-)
/usr/share/php/libphonenumber
%changelog
* Wed Apr 16 2014 Adrian Siminiceanu <adrian.siminiceanu@gmail.com>
- Initial spec file