summaryrefslogtreecommitdiffstats
path: root/composer-generators.spec
blob: 65e3eb03a6da9a119b244ee0da43be145bd50f9e (plain)
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
46
47
48
49
50
51
52
53
54
55
56
57
58
# remirepo/fedora spec file for composer-generators
#
# Copyright (c) 2024 Remi Collet
# License: GPL-2.0-or-later
# https://www.gnu.org/licenses/gpl-2.0.en.html
#
# Please, preserve the changelog entries
#

Name:           composer-generators
Version:        0.1.0
Release:        1%{?dist}
# Use same license than RPM
License:        GPL-2.0-or-later
URL:            https://git.remirepo.net/cgit/rpms/composer-generators.git/
Summary:        Tools for composer enabled applications packager

# tar czv composer-generators-0.1.0.tgz LICENSE NEWS composer.prov composer.attr
Source0:        %{name}-%{version}.tgz

BuildArch:      noarch
BuildRequires:  php-cli

Requires:       php-cli


%description
This package provides RPM generators which are used for
getting provides from composer enabled applications.

* find main project name and provide it
* find bundled libraries and provide them


%prep
%setup -q -c


%install
install -Dpm 755 composer.prov %{buildroot}%{_rpmconfigdir}/composer.prov
install -Dpm 644 composer.attr %{buildroot}%{_fileattrsdir}/composer.attr


%check
: Syntax check only
%{_bindir}/php -l %{buildroot}%{_rpmconfigdir}/composer.prov


%files
%license LICENSE
%doc NEWS
%{_rpmconfigdir}/composer.prov
%{_fileattrsdir}/composer.attr


%changelog
* Fri Oct 11 2024 Remi Collet <remi@remirepo.net> - 0.1.0-1
- Initial package